Файловый менеджер - Редактировать - /home/clickysoft/public_html/calvary-p2.clickysoft.net/storage/framework/views/9d43b5b886003feba8124c9e3fd049d0.php
Назад
<?php $__env->startSection('title', 'Events'); ?> <?php $__env->startPush('admin-styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/datatables-bs5/datatables.bootstrap5.css')); ?>" /> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.css')); ?>" /> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="container-xxl flex-grow-1 container-p-y"> <div class="card"> <div class="card-header"> <h5 class="float-start">Events</h5> <a href="<?php echo e(route('event.add')); ?>" class="btn btn-primary float-end redirect-btn">Add</a> </div> <div class="card-datatable text-nowrap"> <div class="row"> <div class="col-md-12"> <?php echo $__env->make('partials.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <table id="custom_datatable" class="table table-bordered table-responsive"></table> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('admin-scripts'); ?> <script src="<?php echo e(asset('assets/admin/vendor/libs/datatables/jquery.dataTables.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/vendor/libs/datatables-bs5/datatables-bootstrap5.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/vendor/libs/datatables-responsive/datatables.responsive.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/js/axios.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/admin/js/sweetalert.min.js')); ?>"></script> <script> $(function() { $('#custom_datatable').DataTable({ "processing": true, "serverSide": true, "iDisplayLength": 50, "orderMulti": true, "scrollX": true, "ajax": "<?php echo e(route('manage.events')); ?>", "columns": [{ "data": "image", "title": "Thumbnail", "orderable": false, "searchable": false }, { "data": "title", "title": "Title", "orderable": true, "searchable": true }, { "data": "time_start", "title": "Time Start", "orderable": false, "searchable": false }, { "data": "time_end", "title": "Time End", "orderable": false, "searchable": false }, { "data": "date", "title": "Date", "orderable": true, "searchable": true }, { "data": "organizer", "title": "Organizer", "orderable": true, "searchable": true }, { "data": "location", "title": "Location", "orderable": false, "searchable": false }, { "data": "total_tickets", "title": "Total Tickets", "orderable": true, "searchable": true }, { "data": "remaining_tickets", "title": "Remaining Tickets", "orderable": true, "searchable": false }, { "data": "status", "title": "Status", "orderable": true, "searchable": true }, { "data": "action", "title": "Actions", "orderable": false, "searchable": false, "width": "190px" }, ] }); }); function changeStatus(route) { axios.get(route) .then(function(response) { swal({ title: response.data.msg, icon: "success", closeOnClickOutside: false }).then((successBtn) => { if (successBtn) { $('#custom_datatable').DataTable().ajax.reload(); } }); }) .catch(function(error) { swal({ title: error.response.data.msg, icon: "error", dangerMode: true, closeOnClickOutside: false }); }); } $(document).on('click', '.event-report', function() { const id = $(this).attr('data-id') var route = `<?php echo e(URL::to('admin/event-report/get-event-report')); ?>/${id}` window.location = route; }) </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clickysoft/public_html/calvary-p2.clickysoft.net/resources/views/admin/event/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка