Your IP : 216.73.216.79


Current Path : /var/www/html/bookstack/storage/framework/views/
Upload File :
Current File : /var/www/html/bookstack/storage/framework/views/931e86db641367de4b01750e8a212f5b21dc3523.php

<?php $__env->startSection('body'); ?>
    <div class="container">

        <div class="my-s">
            <?php echo $__env->make('entities.breadcrumbs', ['crumbs' => [
                $page->book,
                $page->chapter,
                $page,
                $page->getUrl('/revisions') => [
                    'text' => trans('entities.pages_revisions'),
                    'icon' => 'history',
                ]
            ]], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>

        <main class="card content-wrap">
            <h1 class="list-heading"><?php echo e(trans('entities.pages_revisions')); ?></h1>
            <?php if(count($page->revisions) > 0): ?>

                <table class="table">
                    <tr>
                        <th width="40"><?php echo e(trans('entities.pages_revisions_number')); ?></th>
                        <th>
                            <?php echo e(trans('entities.pages_name')); ?> / <?php echo e(trans('entities.pages_revisions_editor')); ?>

                        </th>
                        <th colspan="2"><?php echo e(trans('entities.pages_revisions_created_by')); ?> / <?php echo e(trans('entities.pages_revisions_date')); ?></th>
                        <th><?php echo e(trans('entities.pages_revisions_changelog')); ?></th>
                        <th class="text-right"><?php echo e(trans('common.actions')); ?></th>
                    </tr>
                    <?php $__currentLoopData = $page->revisions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $revision): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($revision->revision_number == 0 ? '' : $revision->revision_number); ?></td>
                            <td>
                                <?php echo e($revision->name); ?>

                                <br>
                                <small class="text-muted">(<?php echo e($revision->markdown ? 'Markdown' : 'WYSIWYG'); ?>)</small>
                            </td>
                            <td style="line-height: 0;" width="30">
                                <?php if($revision->createdBy): ?>
                                    <img class="avatar" src="<?php echo e($revision->createdBy->getAvatar(30)); ?>" alt="<?php echo e($revision->createdBy->name); ?>">
                                <?php endif; ?>
                            </td>
                            <td width="260">
                                <?php if($revision->createdBy): ?> <?php echo e($revision->createdBy->name); ?> <?php else: ?> <?php echo e(trans('common.deleted_user')); ?> <?php endif; ?>
                                    <br>
                                <div class="text-muted">
                                    <small><?php echo e($revision->created_at->formatLocalized('%e %B %Y %H:%M:%S')); ?></small>
                                    <small>(<?php echo e($revision->created_at->diffForHumans()); ?>)</small>
                                </div>
                            </td>
                            <td>
                                <?php echo e($revision->summary); ?>

                            </td>
                            <td class="actions text-small text-right">
                                <a href="<?php echo e($revision->getUrl('changes')); ?>" target="_blank" rel="noopener"><?php echo e(trans('entities.pages_revisions_changes')); ?></a>
                                <span class="text-muted">&nbsp;|&nbsp;</span>


                                <?php if($index === 0): ?>
                                    <a target="_blank" rel="noopener" href="<?php echo e($page->getUrl()); ?>"><i><?php echo e(trans('entities.pages_revisions_current')); ?></i></a>
                                <?php else: ?>
                                    <a href="<?php echo e($revision->getUrl()); ?>" target="_blank" rel="noopener"><?php echo e(trans('entities.pages_revisions_preview')); ?></a>
                                    <span class="text-muted">&nbsp;|&nbsp;</span>
                                    <div component="dropdown" class="dropdown-container">
                                        <a refs="dropdown@toggle" href="#" aria-haspopup="true" aria-expanded="false"><?php echo e(trans('entities.pages_revisions_restore')); ?></a>
                                        <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
                                            <li class="px-m py-s"><small class="text-muted"><?php echo e(trans('entities.revision_restore_confirm')); ?></small></li>
                                            <li>
                                                <form action="<?php echo e($revision->getUrl('/restore')); ?>" method="POST">
                                                    <?php echo csrf_field(); ?>

                                                    <input type="hidden" name="_method" value="PUT">
                                                    <button type="submit" class="text-primary icon-item">
                                                        <?php echo icon('history'); ?>
                                                        <div><?php echo e(trans('entities.pages_revisions_restore')); ?></div>
                                                    </button>
                                                </form>
                                            </li>
                                        </ul>
                                    </div>
                                    <span class="text-muted">&nbsp;|&nbsp;</span>
                                    <div component="dropdown" class="dropdown-container">
                                        <a refs="dropdown@toggle" href="#" aria-haspopup="true" aria-expanded="false"><?php echo e(trans('common.delete')); ?></a>
                                        <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
                                            <li class="px-m py-s"><small class="text-muted"><?php echo e(trans('entities.revision_delete_confirm')); ?></small></li>
                                            <li>
                                                <form action="<?php echo e($revision->getUrl('/delete/')); ?>" method="POST">
                                                    <?php echo csrf_field(); ?>

                                                    <input type="hidden" name="_method" value="DELETE">
                                                    <button type="submit" class="text-neg icon-item">
                                                        <?php echo icon('delete'); ?>
                                                        <div><?php echo e(trans('common.delete')); ?></div>
                                                    </button>
                                                </form>
                                            </li>
                                        </ul>
                                    </div>
                                <?php endif; ?>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </table>

            <?php else: ?>
                <p><?php echo e(trans('entities.pages_revisions_none')); ?></p>
            <?php endif; ?>
        </main>

    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.simple', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/bookstack/resources/views/pages/revisions.blade.php ENDPATH**/ ?>