Файловый менеджер - Редактировать - /home/clickysoft/public_html/standup.clickysoft.net/storage/framework/views/b8a2625daaf63f7d9589da996402e34655c5c7e3.php
Назад
<?php $__env->startSection('content'); ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('project_create')): ?> <div style="margin-bottom: 10px;" class="row"> <div class="col-lg-6"> <a class="btn btn-info" href="<?php echo e(route('admin.projects.create')); ?>"> <?php echo e(trans('global.add')); ?> <?php echo e(trans('cruds.project.title_singular')); ?> </a> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('import_worksnap_projects')): ?> <div class="col-lg-6 text-right"> <a class="btn btn-success" href="<?php echo e(route('admin.projects.import')); ?>"> <?php echo e(trans('cruds.project.import_from_worksnap')); ?> </a> </div> <?php endif; ?> </div> <?php endif; ?> <div class="card"> <div class="card-header"> <?php echo e(trans('cruds.project.title_singular')); ?> <?php echo e(trans('global.list')); ?> </div> <div class="card-body"> <table class=" table table-bordered table-striped table-hover ajaxTable datatable datatable-Project"> <thead> <tr> <th width="10"> </th> <th> <?php echo e(trans('cruds.project.fields.id')); ?> </th> <th> <?php echo e(trans('cruds.project.fields.project_name')); ?> </th> <th> <?php echo e(trans('cruds.project.fields.client_name')); ?> </th> <th> <?php echo e(trans('cruds.project.fields.date_arrive')); ?> </th> <th> </th> </tr> <tr> <td> </td> <td> <input class="search" type="text" placeholder="<?php echo e(trans('global.search')); ?>"> </td> <td> <input class="search" type="text" placeholder="<?php echo e(trans('global.search')); ?>"> </td> <td> <input class="search" type="text" placeholder="<?php echo e(trans('global.search')); ?>"> </td> <td> </td> <td> </td> </tr> </thead> </table> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <?php echo \Illuminate\View\Factory::parentPlaceholder('scripts'); ?> <script> $(function () { let dtButtons = $.extend(true, [], $.fn.dataTable.defaults.buttons) <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('project_delete')): ?> let deleteButtonTrans = '<?php echo e(trans('global.datatables.delete')); ?>'; let deleteButton = { text: deleteButtonTrans, url: "<?php echo e(route('admin.projects.massDestroy')); ?>", className: 'btn-danger', action: function (e, dt, node, config) { var ids = $.map(dt.rows({ selected: true }).data(), function (entry) { return entry.id }); if (ids.length === 0) { alert('<?php echo e(trans('global.datatables.zero_selected')); ?>') return } if (confirm('<?php echo e(trans('global.areYouSure')); ?>')) { $.ajax({ headers: {'x-csrf-token': _token}, method: 'POST', url: config.url, data: { ids: ids, _method: 'DELETE' }}) .done(function () { location.reload() }) } } } dtButtons.push(deleteButton) <?php endif; ?> let dtOverrideGlobals = { buttons: dtButtons, processing: true, serverSide: true, retrieve: true, aaSorting: [], ajax: "<?php echo e(route('admin.projects.index')); ?>", columns: [ { data: 'placeholder', name: 'placeholder' }, { data: 'id', name: 'id' }, { data: 'project_name', name: 'project_name' }, { data: 'client_name', name: 'client_name' }, { data: 'date_arrive', name: 'date_arrive' }, { data: 'actions', name: '<?php echo e(trans('global.actions')); ?>' } ], orderCellsTop: true, order: [[ 1, 'desc' ]], pageLength: 100, }; let table = $('.datatable-Project').DataTable(dtOverrideGlobals); $('a[data-toggle="tab"]').on('shown.bs.tab click', function(e){ $($.fn.dataTable.tables(true)).DataTable() .columns.adjust(); }); let visibleColumnsIndexes = null; $('.datatable thead').on('input', '.search', function () { let strict = $(this).attr('strict') || false let value = strict && this.value ? "^" + this.value + "$" : this.value let index = $(this).parent().index() if (visibleColumnsIndexes !== null) { index = visibleColumnsIndexes[index] } table .column(index) .search(value, strict) .draw() }); table.on('column-visibility.dt', function(e, settings, column, state) { visibleColumnsIndexes = [] table.columns(":visible").every(function(colIdx) { visibleColumnsIndexes.push(colIdx); }); }) }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clickysoft/public_html/standup.clickysoft.net/resources/views/admin/projects/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка