<?php $__env->startSection('header'); ?>
    <?php echo e(trans('admin.head.cron_log')); ?>


    &nbsp;&nbsp;

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

<?php $__env->startSection('main'); ?>
    <div class="row">
        <div class="col-md-12">

            <div class="panel">
                <div class="table-primary">
                    <table class="table table-striped table-bordered" id="cron-log-table" width="100%">
                        <thead>
                        <tr>
                            <th><?php echo e(trans('admin.fields.id')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.command')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.expression')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.next_execution')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.start_at')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.end_at')); ?></th>
                            <th><?php echo e(trans('admin.cron_log.execution_time')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot>
                        <tr>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                            <th class="column-searchable"><input class="form-control table-footer-search" /></th>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <style>
        th{
            vertical-align: center;
        }
        td{
            vertical-align: center;
        }
    </style>
    <script>
        $(function() {
            var cron_log_table = $('#cron-log-table').DataTable({
                "processing": true,
                "serverSide": true,
                "pageLength": 20,
                "lengthMenu": [[15, 30], [15, 30]],
                "order": [[ 0, "desc" ]],
                "ajax": {
                    "url": "<?php echo e(route('admin.cron.log.list')); ?>"
                },
                "columns": [
                    {data: 'id', name: 'id'},
                    {data: 'command', name: 'command'},
                    {data: 'expression', name: 'expression'},
                    {data: 'next_execution', name: 'next_execution'},
                    {data: 'start_at', name: 'start_at'},
                    {data: 'end_at', name: 'end_at'},
                    {data: 'execution_time', name: 'execution_time'}
                ],
                "initComplete": function () {
                    this.api().columns().every(function () {
                        var column = this;
                        var column_class = column.footer().className;
                        if (column_class === 'column-searchable') {
                            var input = $(column.footer()).find('input');

                            input.on('change', function () {
                                column.search($(this).val(), false, false, true).draw();
                            });
                        }
                    });
                }
            });
        });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin._layout.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views.admin/admin/cron/log_list.blade.php ENDPATH**/ ?>