<?php $__env->startSection('title', $active . ' | ' . admin_trans('Pages')); ?>
<?php $__env->startSection('section', admin_trans('Settings')); ?>
<?php $__env->startSection('link', route('admin.settings.pages.create')); ?>
<?php $__env->startSection('container', 'container-max-lg'); ?>
<?php $__env->startSection('language', true); ?>
<?php $__env->startSection('content'); ?>
    <div class="card">
        <table id="datatable" class="table w-100">
            <thead>
                <tr>
                    <th class="tb-w-2x"><?php echo e(admin_trans('#')); ?></th>
                    <th class="tb-w-2x"><?php echo e(admin_trans('Language')); ?></th>
                    <th class="tb-w-7x"><?php echo e(admin_trans('Page Name')); ?></th>
                    <th class="tb-w-3x"><?php echo e(admin_trans('Views')); ?></th>
                    <th class="tb-w-7x"><?php echo e(admin_trans('Created date')); ?></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="item">
                        <td><?php echo e($page->id); ?></td>
                        <td><a href="<?php echo e(route('admin.settings.languages.translates', $page->lang)); ?>"><i
                                    class="fas fa-language me-2"></i><?php echo e($page->language->name); ?></a>
                        </td>
                        <td>
                            <a href="<?php echo e(route('admin.settings.pages.edit', $page->id)); ?>"
                                class="text-dark"><?php echo e($page->title); ?></a>
                        </td>
                        <td><span class="badge bg-dark"><?php echo e($page->views); ?></span></td>
                        <td><?php echo e(dateFormat($page->created_at)); ?></td>
                        <td>
                            <div class="text-end">
                                <button type="button" class="btn btn-sm rounded-3" data-bs-toggle="dropdown"
                                    aria-expanded="true">
                                    <i class="fa fa-ellipsis-v fa-sm text-muted"></i>
                                </button>
                                <ul class="dropdown-menu dropdown-menu-sm-end" data-popper-placement="bottom-end">
                                    <li>
                                        <a class="dropdown-item" href="<?php echo e(route('page', $page->slug)); ?>" target="_blank"><i
                                                class="fa fa-eye me-2"></i><?php echo e(admin_trans('Preview')); ?></a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item"
                                            href="<?php echo e(route('admin.settings.pages.edit', $page->id)); ?>"><i
                                                class="fa fa-edit me-2"></i><?php echo e(admin_trans('Edit')); ?></a>
                                    </li>
                                    <li>
                                        <hr class="dropdown-divider" />
                                    </li>
                                    <li>
                                        <form action="<?php echo e(route('admin.settings.pages.destroy', $page->id)); ?>"
                                            method="POST">
                                            <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                                            <button class="vironeer-able-to-delete dropdown-item text-danger"><i
                                                    class="far fa-trash-alt me-2"></i><?php echo e(admin_trans('Delete')); ?></button>
                                        </form>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.grid', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/neofiles.codenine.biz.id/resources/views/backend/settings/pages/index.blade.php ENDPATH**/ ?>