<?php $__env->startSection('header_css'); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer_js'); ?>
<!-- Table Drag and Drop -->
<script src="<?php echo e(asset('js/jquery.tablednd_0_5.js')); ?>"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#sidebar li').removeClass('active');
        $('#sidebar a').removeClass('active');
        $('#sidebar').find('#pages').addClass('active');
        $('#sidebar').find('#page').addClass('active');

        /*var oTable = $('#page-table').dataTable({
                // stateSave: false,
                responsive: true,
                // "order": [],
                // "bSort": false,
                "aaSorting": [],
                // "columnDefs": [{
                //               "defaultContent": "-",
                //               "targets": "_all"
                //             }]
            });*/

        var oTalbe = $('#table').dataTable( {
            "responsive": true,
            "order": [[ 0, "asc" ]],
            // "pageLength": "50"
            "iDisplayLength": 50
        } );
    });
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('dynamicdata'); ?>

<div class="row">
    <div class="col-sm-12">
        <section class="panel">
            <header class="panel-heading">
                Home Page Sections
            </header>
            <div class="panel-body">
                <?php echo $__env->make('layout.backend.alert', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="adv-table editable-table ">                 
                    <table class="display table table-bordered table-striped" id="table">
                        <thead>
                            <tr>
                                <th>S N</th>
                                <th>Title</th>
                                <th>Options</th>
                            </tr>
                        </thead>
                        <tbody id="tablebody">
                            <?php $__empty_1 = true; foreach($sections as $index=>$record): $__empty_1 = false; ?>
                            <tr class="gradeX" id="page_<?php echo e($record->id); ?>" >
                                <td>
                                    <?php echo e($index+1); ?>

                                </td>
                                <td class="heading">
                                    <?php echo e($record->title); ?>

                                </td>
                                <td>
                                    <a href="<?php echo route('admin.content.homePageSection.edit', $record->id); ?>" title="Edit Section"><i class="fa fa-edit"></i></a>&nbsp;
                                    <a href="<?php echo route('admin.content.homePageSection.item.index', [$record->id]); ?>" title="View Items"><i class="fa fa-eye"></i></a>&nbsp;
                                </td>
                            </tr>
                                <?php endforeach; if ($__empty_1): ?>
                                <tr>
                                    <td colspan="3">No record found.</td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                        <tfoot>
                            <tr>
                                <th>S N</th>
                                <th>Title</th>
                                <th>Options</th>
                            </tr>
                        </tfoot>
                    </table>

                </div>
            </div>
        </section>
    </div>
</div>

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

<?php echo $__env->make('layout.backend.containerlist', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>