<?php $__env->startSection('content'); ?>
<div class="col-lg-12 col-xl-12 animated fadeIn">


    <div class="block block-rounded block-bordered">
        <div class="block-header block-header-default">
           <h3 class="block-title">
               <i class="fas fa-book-open mr-2"></i> Static Pages
            </h3>
            <a href="<?php echo e(route('admin.page.create')); ?>" class="btn btn-success btn-xs">
                <i class="fa fa-file-alt mr-2"></i> Add New Page
            </a>
        </div>
        <div class="block-content">
            <div class="table-responsive mt-5 mb-5">
                <table class="table table-striped table-bordered " id="page-table">
                    <thead>
                        <tr>
                            <th>Page Name</th>
                            <th>Status</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
     </div>


    </div>
</div>


<div id="deleteModal" class="modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">

        <div class="modal-body">
            <p class="description">Are you sure you want to delete this page [<strong><span id="itemId"></span></strong>]?</p>
            <div class="hasError text-danger d-none"></div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Cancel</button>
            <button type="button" class="btn btn-sm btn-danger" id="confirm_delete"> Delete</button>
        </div>
        </div>
    </div>
</div>


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

<?php $__env->startPush('stylesheet'); ?>
    <?php echo $__env->make('common.datatable-bootstrap-css', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <style>
        .modal-dialog {
            padding-top: 15%;
        }
    </style>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('javascript'); ?>
<script src="<?php echo e(asset('vendor/datatable/js/datatables.min.js')); ?>"></script>
<script>
    $(document).ready(function(){

        window.dcmUri = (window.dcmUri || {});
        window.dcmUri = {
            resource: '<?php echo route("dcm-page-resource.index"); ?>',
        }
    });
</script>
<script src="<?php echo e(mix('js/admin/page.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make( "layouts.master-admin", \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>