
<?php $__env->startSection('title', 'Press Releases'); ?>
<?php $__env->startSection('content'); ?>

<div class="row">
    <div class="card p-4">
        <div class="d-flex justify-content-between">
            <h5 class="card-title">Press Releases</h5>
            <a href="<?php echo e(route('blogs.create')); ?>" class="btn btn-primary">Create</a>
        </div>
        <div class="dropdown-divider py-3"></div>
        <table id="dataTable" class="table" style="width:100%">
            <thead>
                <tr>
                    <th>Thumbnail</th>
                    <th>Publish Date</th>
                    <th>Title</th>
                    <th>Category</th>
                    <th data-orderable="false" style="max-width: 120px;">Action</th>
                </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('extra'); ?>
<script>
    $(function() {
        table = $('#dataTable').dataTable({
            processing: true,
            serverSide: true,
            ordering: false,
            ajax: {
                url: "<?php echo e(route('blogs.list')); ?>",
            },
            columns: [
                {
                    data: "thumbnail",
                },
                {
                    data: "publish_date",
                },
                {
                    data: "title",
                },
                {
                    data: "category",
                },
                {
                    data: "action",
                }
            ],
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/codexxatester/public_html/resources/views/admin/blog/index.blade.php ENDPATH**/ ?>