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/ff53a895181899a73a73174d57ab263501f9e6ab.php

<?php $__env->startSection('container-attrs'); ?>
    component="entity-search"
    option:entity-search:entity-id="<?php echo e($chapter->id); ?>"
    option:entity-search:entity-type="chapter"
<?php $__env->stopSection(); ?>

<?php $__env->startPush('social-meta'); ?>
    <meta property="og:description" content="<?php echo e(Str::limit($chapter->description, 100, '...')); ?>">
<?php $__env->stopPush(); ?>

<?php $__env->startSection('body'); ?>

    <div class="mb-m print-hidden">
        <?php echo $__env->make('entities.breadcrumbs', ['crumbs' => [
            $chapter->book,
            $chapter,
        ]], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>

    <main class="content-wrap card">
        <h1 class="break-text"><?php echo e($chapter->name); ?></h1>
        <div refs="entity-search@contentView" class="chapter-content">
            <p class="text-muted break-text"><?php echo nl2br(e($chapter->description)); ?></p>
            <?php if(count($pages) > 0): ?>
                <div class="entity-list book-contents">
                    <?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $__env->make('pages.parts.list-item', ['page' => $page], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            <?php else: ?>
                <div class="mt-xl">
                    <hr>
                    <p class="text-muted italic mb-m mt-xl"><?php echo e(trans('entities.chapters_empty')); ?></p>

                    <div class="icon-list block inline">
                        <?php if(userCan('page-create', $chapter)): ?>
                            <a href="<?php echo e($chapter->getUrl('/create-page')); ?>" class="icon-list-item text-page">
                                <span class="icon"><?php echo icon('page'); ?></span>
                                <span><?php echo e(trans('entities.books_empty_create_page')); ?></span>
                            </a>
                        <?php endif; ?>
                        <?php if(userCan('book-update', $book)): ?>
                            <a href="<?php echo e($book->getUrl('/sort')); ?>" class="icon-list-item text-book">
                                <span class="icon"><?php echo icon('book'); ?></span>
                                <span><?php echo e(trans('entities.books_empty_sort_current_book')); ?></span>
                            </a>
                        <?php endif; ?>
                    </div>

                </div>
            <?php endif; ?>
        </div>

        <?php echo $__env->make('entities.search-results', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </main>

    <?php echo $__env->make('entities.sibling-navigation', ['next' => $next, 'previous' => $previous], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

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

<?php $__env->startSection('right'); ?>

    <div class="mb-xl">
        <h5><?php echo e(trans('common.details')); ?></h5>
        <div class="blended-links text-small text-muted">
            <?php echo $__env->make('entities.meta', ['entity' => $chapter], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <?php if($book->restricted): ?>
                <div class="active-restriction">
                    <?php if(userCan('restrictions-manage', $book)): ?>
                        <a href="<?php echo e($book->getUrl('/permissions')); ?>"><?php echo icon('lock'); ?><?php echo e(trans('entities.books_permissions_active')); ?></a>
                    <?php else: ?>
                        <?php echo icon('lock'); ?><?php echo e(trans('entities.books_permissions_active')); ?>

                    <?php endif; ?>
                </div>
            <?php endif; ?>

            <?php if($chapter->restricted): ?>
                <div class="active-restriction">
                    <?php if(userCan('restrictions-manage', $chapter)): ?>
                        <a href="<?php echo e($chapter->getUrl('/permissions')); ?>"><?php echo icon('lock'); ?><?php echo e(trans('entities.chapters_permissions_active')); ?></a>
                    <?php else: ?>
                        <?php echo icon('lock'); ?><?php echo e(trans('entities.chapters_permissions_active')); ?>

                    <?php endif; ?>
                </div>
            <?php endif; ?>
        </div>
    </div>

    <div class="actions mb-xl">
        <h5><?php echo e(trans('common.actions')); ?></h5>
        <div class="icon-list text-primary">

            <?php if(userCan('page-create', $chapter)): ?>
                <a href="<?php echo e($chapter->getUrl('/create-page')); ?>" class="icon-list-item">
                    <span><?php echo icon('add'); ?></span>
                    <span><?php echo e(trans('entities.pages_new')); ?></span>
                </a>
            <?php endif; ?>

            <hr class="primary-background"/>

            <?php if(userCan('chapter-update', $chapter)): ?>
                <a href="<?php echo e($chapter->getUrl('/edit')); ?>" class="icon-list-item">
                    <span><?php echo icon('edit'); ?></span>
                    <span><?php echo e(trans('common.edit')); ?></span>
                </a>
            <?php endif; ?>
            <?php if(userCanOnAny('chapter-create')): ?>
                <a href="<?php echo e($chapter->getUrl('/copy')); ?>" class="icon-list-item">
                    <span><?php echo icon('copy'); ?></span>
                    <span><?php echo e(trans('common.copy')); ?></span>
                </a>
            <?php endif; ?>
            <?php if(userCan('chapter-update', $chapter) && userCan('chapter-delete', $chapter)): ?>
                <a href="<?php echo e($chapter->getUrl('/move')); ?>" class="icon-list-item">
                    <span><?php echo icon('folder'); ?></span>
                    <span><?php echo e(trans('common.move')); ?></span>
                </a>
            <?php endif; ?>
            <?php if(userCan('restrictions-manage', $chapter)): ?>
                <a href="<?php echo e($chapter->getUrl('/permissions')); ?>" class="icon-list-item">
                    <span><?php echo icon('lock'); ?></span>
                    <span><?php echo e(trans('entities.permissions')); ?></span>
                </a>
            <?php endif; ?>
            <?php if(userCan('chapter-delete', $chapter)): ?>
                <a href="<?php echo e($chapter->getUrl('/delete')); ?>" class="icon-list-item">
                    <span><?php echo icon('delete'); ?></span>
                    <span><?php echo e(trans('common.delete')); ?></span>
                </a>
            <?php endif; ?>

            <hr class="primary-background"/>

            <?php if(signedInUser()): ?>
                <?php echo $__env->make('entities.favourite-action', ['entity' => $chapter], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
            <?php if(userCan('content-export')): ?>
                <?php echo $__env->make('entities.export-menu', ['entity' => $chapter], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('left'); ?>

    <?php echo $__env->make('entities.search-form', ['label' => trans('entities.chapters_search_this')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <?php if($chapter->tags->count() > 0): ?>
        <div class="mb-xl">
            <?php echo $__env->make('entities.tag-list', ['entity' => $chapter], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    <?php endif; ?>

    <?php echo $__env->make('entities.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>



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