
<?php $__env->startSection('content'); ?>
    <div class="col-sm-12 text-left">
        <h1>Blog Listing</h1>
        <div class="row">
            <div class="col-md-8"></div>
            <div class="col-md-4">
                <a href="<?php echo route('blog-create'); ?>" class="btn btn-success btn-xs pull-right">Create New Blog</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">&nbsp;</div>
        </div>
        <div class="row">
            <div class="col-md-12">
            <table id="blog-listing" class="table table-striped table-hover table-bordered">
                <thead>
                <tr>
                    <th>Title</th>
                    <th>Content</th>
                    <th>Created</th>
                    <th>Status</th>
                    <th>Actions</th>
                </tr>
                </thead>
            </table>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script>
        $(function() {
            $('#blog-listing').DataTable({
                processing: true,
                serverSide: true,
                ajax: '<?php echo route('blog-listings'); ?>',
                columns: [
                    { data: 'title', name: 'title' },
                    { data: 'content', name: 'content' },
                    { data: 'created_at', name: 'created_at' },
                    { data: 'status', name: 'status' },
                    { data: 'actions', name: 'actions', orderable: false, searchable: false }
                ]
            });
        });

    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.default-admin', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>