<?php if (isset($component)) { $__componentOriginalbacdc7ee2ae68d90ee6340a54a5e36f99d0a3040 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AdminLayout::class, []); ?>
<?php $component->withName('admin-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div class="row">
        <div class="col-12 ps-5">
            <h5><?php echo e(Str::ucfirst($page->title)); ?></h5>
        </div>
    </div>
    <div class="row">
        <div class="col-12 pt-0 p-5">
            <div class="card">
                <div class="card-header text-right">
                    <a class="ms-1 btn btn-secondary btn-sm" href="<?php echo e(route("admin.page.settings", $page->name)); ?>"
                        style="float:right">advanced</a>
                    <a class="btn btn-primary btn-sm" href="<?php echo e(route("admin.page.page_item.create", $page->name)); ?>"
                        style="float:right">add</a>
                </div>
                <div class="card-body">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <th scope="col">#</th>
                                <th scope="col">Title</th>
                                <th scope="col">Author</th>
                                <th scope="col">Published</th>
                                <th scope="col" class="text-center">&nbsp;</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $page->page_items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <th scope="row"></th>
                                    <td><?php echo e($page_item['title']); ?></td>
                                    <td><?php echo e($page_item['author']['name']); ?></td>
                                    <td><?php echo e($page_item['publish_date']); ?></td>
                                    <td class="text-center">
                                        <a class="btn btn-primary btn-sm"
                                            href="<?php echo e(route("admin.page.page_item.edit", [$page->name, $page_item])); ?>">edit</a>
                                        <form method="POST"
                                            action="<?php echo e(route("admin.page.page_item.destroy", [$page, $page_item])); ?>"
                                            style="width: fit-content; display: inline;">
                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('DELETE'); ?>
                                            <button type="submit" class="btn btn-danger btn-sm"
                                                onclick="return confirm('Are you sure?')">delete</button>
                                        </form>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbacdc7ee2ae68d90ee6340a54a5e36f99d0a3040)): ?>
<?php $component = $__componentOriginalbacdc7ee2ae68d90ee6340a54a5e36f99d0a3040; ?>
<?php unset($__componentOriginalbacdc7ee2ae68d90ee6340a54a5e36f99d0a3040); ?>
<?php endif; ?>
<?php /**PATH C:\Data\Information Technology\Projects\Nash Vandayar\Nash Vandayar Associates Attorneys\Website\nashvandayarassociates\resources\views\admin\page\index.blade.php ENDPATH**/ ?>