Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/storage/framework/views/2b3176524e1243e085928a6718cd99fe.php
Назад
<?php $addEstimatePermission = user()->permission('add_estimates'); ?> <!-- ROW START --> <div class="row pb-5"> <div class="col-lg-12 col-md-12 mb-4 mb-xl-0 mb-lg-4"> <iframe src="https://app.databox.com/datawall/b482b7edc67ca0bc36923858a88b97831c70cf86555f57f" width="100%" height="1000px" style="border: none;"></iframe> </div> </div> <?php echo $__env->make('sections.datatable_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script src="<?php echo e(asset('vendor/jquery/clipboard.min.js')); ?>"></script> <script> var clipboard = new ClipboardJS('.btn-copy'); clipboard.on('success', function(e) { Swal.fire({ icon: 'success', text: '<?php echo app('translator')->get("app.copied"); ?>', toast: true, position: 'top-end', timer: 3000, timerProgressBar: true, showConfirmButton: false, customClass: { confirmButton: 'btn btn-primary', }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, }) }); $('#invoices-table').on('preXhr.dt', function(e, settings, data) { var clientID = "<?php echo e($client->id); ?>"; data['clientID'] = clientID; }); const showTable = () => { window.LaravelDataTables["invoices-table"].draw(false); } $('#quick-action-type').change(function() { const actionValue = $(this).val(); if (actionValue != '') { $('#quick-action-apply').removeAttr('disabled'); if (actionValue == 'change-status') { $('.quick-action-field').addClass('d-none'); $('#change-status-action').removeClass('d-none'); } else { $('.quick-action-field').addClass('d-none'); } } else { $('#quick-action-apply').attr('disabled', true); $('.quick-action-field').addClass('d-none'); } }); $('#quick-action-apply').click(function() { const actionValue = $('#quick-action-type').val(); if (actionValue == 'delete') { Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { applyQuickAction(); } }); } else { applyQuickAction(); } }); $('body').on('click', '.change-status', function() { var id = $(this).data('estimate-id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.estimateCancelText'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmCancel'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('estimates.change_status', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'GET', url: url, container: '#invoices-table', blockUI: true, success: function(response) { if (response.status == "success") { window.LaravelDataTables["invoices-table"].draw(false); } } }); } }); }); $('body').on('click', '.delete-table-row', function() { var id = $(this).data('estimate-id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('estimates.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, blockUI: true, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status == "success") { showTable(); } } }); } }); }); const applyQuickAction = () => { var rowdIds = $("#invoices-table input:checkbox:checked").map(function() { return $(this).val(); }).get(); var url = "<?php echo e(route('invoices.apply_quick_action')); ?>?row_ids=" + rowdIds; $.easyAjax({ url: url, container: '#quick-action-form', type: "POST", disableButton: true, buttonSelector: "#quick-action-apply", data: $('#quick-action-form').serialize(), blockUI: true, success: function(response) { if (response.status == 'success') { showTable(); resetActionButtons(); } } }) }; $('body').on('click', '.sendButton', function() { var id = $(this).data('estimate-id'); var url = "<?php echo e(route('estimates.send_estimate', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, container: '#invoices-table', blockUI: true, data: { '_token': token }, success: function(response) { if (response.status == "success") { window.LaravelDataTables["invoices-table"].draw(false); } } }); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/clients/ajax/estimates.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка