Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/storage/framework/views/bd3da224018bb4b0de190c91db4b729c48c9c8db.php
Назад
<?php $__env->startSection('content'); ?> <div class="content"> <?php if(Session::has('success')): ?> <p class="alert alert-success"> <?php echo \Session::get('success'); ?> </p> <?php endif; ?> <?php if(Session::has('error')): ?> <p class="alert alert-danger"> <?php echo \Session::get('error'); ?> </p> <?php endif; ?> <div id="success"></div> <div style="margin-bottom: 10px;" class="row vertical-align"> <div class="col-sm-4 "> <label for="filter-start-date">Start Date</label> <input class="form-control dat" id="filter-start-date" type="text" autocomplete="off" name="filter-start_date" placeholder="dd-mm-yyyy" value=""> </div> <div class="col-sm-4 "> <label for="filter-end-date">End Date</label> <input class="form-control dat" id="filter-end-date" type="text" autocomplete="off" name="end_date" placeholder="dd-mm-yyyy" value=""> </div> <div class="col-sm-2 "> <a class="btn btn-success float-right view-report"> View Report </a> </div> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('license_create')): ?> <div class="col-sm-2"> <a class="btn btn-success float-right " href="<?php echo e(route('admin.license.create')); ?>"> Add License </a> </div> <?php endif; ?> </div> <div class="row"> <div class="col-md-3 col-sm-3"> <label for="status"> <b>Status</b> </label> <select name=" status" id="status" class="form-control select2"> <option value="show_valid_only" selected>Show Valid Only</option> <option value="show_all">Show All</option> </select> </div> </div> <div class="card"> <div class="card-header"> License List </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered data-table "> <thead> <tr> <th>Id</th> <th>Customer Name</th> <th>S/Manager</th> <th>S/Date</th> <th>E/Date</th> <th>Reseller1</th> <th>Reseller2</th> <th>R/Days</th> <th width="20%" style="width: 140px;">Action</th> </tr> </thead> <tbody> </table> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="modal" tabindex="-1" role="dialog" id="modal"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">License</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close" id="close-btn"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" id="close-btn" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </div> </div> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body"> <embed src="#" frameborder="0" width="100%" height="400px" id="embed"> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> $('.date').datepicker({ format: "d-M-yyyy", }); $('#filter-start-date').datepicker({ format: 'd-M-yyyy' }); $('#filter-end-date').datepicker({ format: 'd-M-yyyy' }); </script> <script type="text/javascript"> var selected_ids = []; var check_id = 0; let bit = 0; var filter_start = $('#filter-start-date').val(); var filter_end = $('#filter-end-date').val(); var select = ''; var table = ''; var state = false; $(function() { if ("<?php echo Session::has('success'); ?>") { state = true; } // $('select option[value="without_disable"]').attr("selected", true); select = $('#status').val(); loadData(filter_start, filter_end, select); $(".table").css("width", "100%"); function loadData(filter_start, filter_end, select) { table = $('.data-table').DataTable({ stateSave: true, processing: false, serverSide: true, ordering: false, cache:false, ajax: { url: "<?php echo e(route('admin.license.index')); ?>", data: { filter_start: filter_start, filter_end: filter_end, select: select } }, columns: [{ data: 'id', name: 'id' }, { data: 'customer_name', name: 'customer_name' }, { data: 'employee', name: 'employee' }, { data: 'start_date', name: 'start_date' }, { data: 'end_date', name: 'end_date' }, { data: 'reseller1_name', name: 'reseller1_name' }, { data: 'reseller2_name', name: 'reseller2_name' }, { data: 'days_left', name: 'days_left' }, { data: 'action', name: 'action', orderable: false, searchable: false }, ], }); } $('.view-report').click(function() { table.destroy(); loadData(filter_start, filter_end, select) }) $('#filter-start-date').change(function() { filter_start = $(this).val(); }); $('#filter-end-date').change(function() { filter_end = $(this).val(); }); $('#status').on('change', function() { var lstatus = $(this).val(); if (lstatus != '') { table.destroy(); loadData(filter_start, filter_end, lstatus); } }); }); //delete permissions $(document).on('click', '#delete', function(event) { var btn = $(this) btn.addClass('focus-none'); btn.prop('focus', false); Swal.fire({ title: 'Are you sure?', showDenyButton: true, showCancelButton: false, confirmButtonText: 'Yes', denyButtonText: `No`, focusDeny: true }).then((result) => { var id = $(this).attr('data-form-id'); if (result.isConfirmed) { document.getElementById('delete-license' + id).submit(); } else if (result.isDenied) { } }) }); $('#delete-selected').on('click', function(e) { var btn = $(this) btn.addClass('focus-none'); btn.prop('focus', false); e.preventDefault(); if (selected_ids.length == 0) { alert("Please Select items from list") } else { if (bit == 0) { Swal.fire({ title: 'Are you sure?', showDenyButton: true, showCancelButton: false, confirmButtonText: 'Yes', denyButtonText: `No`, focusDeny: true }).then((result) => { if (result.isConfirmed) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ beforeSend: function() { bit = 1; }, type: "delete", url: "<?php echo e(route('admin.license.massDestroy')); ?>", data: { ids: selected_ids }, success: function(response) { if (response.status == 200) { $('#success').html( "<p class='alert alert-success'>Licenses deleted successfully</p>" ) location.reload(); } else { location.reload(); } } }) } else if (result.isDenied) { } }) } } }) $('#checkbox').on('click', function() { if (check_id == 0) { check_id = 1; selected_ids = [] $("input[name='checkbox[]']").each(function() { $(this).prop('checked', true); var id = $(this).attr('id'); selected_ids.push(id) }); } else { check_id = 0 $("input[name='checkbox[]']").each(function() { selected_ids = [] $(this).prop('checked', false); }); } }) //onchange checkbox $(document).on('change', '.checkbox', function() { if ($(this).is(':checked')) { selected_ids.push($(this).attr("id")) } else { const index = selected_ids.indexOf($(this).attr('id')); if (index > -1) { selected_ids.splice(index, 1); } } }); $(document).on('click', '#close-btn', function(e) { $('#modal').hide(); }); function GetMonthName(monthNumber) { var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'August', 'Sept', 'Oct', 'Nov', 'Dec']; return months[monthNumber - 1]; } $(document).on('click', '#file', function(e) { e.preventDefault(); var path = $(this).attr('data-attr'); if (path == '') { alert("This License does not contain file or image"); } else { $('#embed').attr("src", path); $('#myModal').modal('show'); } }); $(document).on('click', '#toggle-icon', function() { var id = $(this).attr('data-attr'); var toggle = $(this).attr('class'); var is_disable = ''; var msg_text = ''; if (toggle == 'action-btn fa fa-toggle-on') { msg_text = 'Disable it!' } else { msg_text = 'Enable it!' } Swal.fire({ title: '', text: "", icon: '', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: msg_text }).then((result) => { if (result.isConfirmed) { if (toggle == 'fa fa-toggle-on') { $(this).removeClass("fa fa-toggle-on"); $(this).addClass("fa fa-toggle-off"); } if (toggle == 'fa fa-toggle-off') { $(this).removeClass("fa fa-toggle-off"); $(this).addClass("fa fa-toggle-on") } $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ method: "put", url: "<?php echo e(route('admin.license.enable-disable')); ?>", data: { id: id }, success: function(response) { if (response.status == true) { location.reload(); } else { console.log(response) } } }) } }); }); </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/securebeans.clickysoft.net/resources/views/admin/license/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка