ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/e9ca7e3dc80260af35ae0bdcca6808b2.php |
<?php $addInvoicePermission = user()->permission('add_lead_proposals'); ?> <!-- ROW START --> <div class="row"> <div class="col-lg-12 col-md-12 mb-4 mb-xl-0 mb-lg-4"> <!-- Add Task Export Buttons Start --> <div class="d-flex" id="table-actions"> <?php if($addInvoicePermission == 'all' || $addInvoicePermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('proposals.create').'?lead_id='.$lead->id,'icon' => 'plus'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.link-primary'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\LinkPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-redirect-url' => ''.e(url()->full()).'','class' => 'mr-3 openRightModal']); ?> <?php echo app('translator')->get('modules.proposal.createProposal'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php endif; ?> </div> <!-- Add Task Export Buttons End --> <!-- Task Box Start --> <div class="d-flex flex-column w-tables rounded mt-3 bg-white"> <?php echo $dataTable->table(['class' => 'table table-hover border-0 w-100']); ?> </div> <!-- Task Box End --> </div> </div> <!-- ROW END --> <?php echo $__env->make('sections.datatable_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script> $('#invoices-table').on('preXhr.dt', function(e, settings, data) { var leadId = "<?php echo e($lead->id); ?>"; data['leadId'] = leadId; }); const showTable = () => { window.LaravelDataTables["invoices-table"].draw(false); } $('body').on('click', '.delete-table-row', function() { var id = $(this).data('proposal-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('proposals.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status == "success") { showTable(); } } }); } }); }); $('body').on('click', '.sendButton', function() { var id = $(this).data('proposal-id'); var url = "<?php echo e(route('proposals.send_proposal', ':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 /home2/selectio/public_html/fms-worksuite/resources/views/leads/ajax/proposal.blade.php ENDPATH**/ ?>