ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/399fe2df46092a3c82835e6f96b940ac.php |
<?php $__env->startPush('datatable-styles'); ?> <?php echo $__env->make('sections.daterange_css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopPush(); ?> <?php $__env->startPush('styles'); ?> <!-- Drag and Drop CSS --> <link rel='stylesheet' href="<?php echo e(asset('vendor/css/dragula.css')); ?>" type='text/css' /> <link rel='stylesheet' href="<?php echo e(asset('vendor/css/drag.css')); ?>" type='text/css' /> <link rel="stylesheet" href="<?php echo e(asset('vendor/css/bootstrap-colorpicker.css')); ?>" /> <style> #colorpicker .form-group { width: 87%; } .b-p-tasks { min-height: 90%; } </style> <?php $__env->stopPush(); ?> <?php $addLeadPermission = user()->permission('add_lead'); $viewLeadPermission = user()->permission('view_lead'); ?> <?php $__env->startSection('filter-section'); ?> <?php echo $__env->make('leads.filters', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <!-- CONTENT WRAPPER START --> <div class="w-task-board-box px-4 py-2 bg-white"> <!-- Add Task Export Buttons Start --> <div class="d-block d-lg-flex d-md-flex my-3"> <?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.alert','data' => ['type' => 'warning','icon' => 'info','class' => 'd-lg-none']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('alert'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'warning','icon' => 'info','class' => 'd-lg-none']); ?><?php echo app('translator')->get('messages.dragDropScreenInfo'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?> <?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?> <?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?> <?php endif; ?> <div id="table-actions" class="flex-grow-1 align-items-center"> <?php if($addLeadPermission == 'all' || $addLeadPermission == 'added'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('leads.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 openRightModal float-left']); ?> <?php echo app('translator')->get('app.add'); ?> <?php echo app('translator')->get('app.lead'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php endif; ?> <?php if(user()->permission('manage_lead_status') == 'all'): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'plus'] + (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(['id' => 'add-column']); ?> <?php echo app('translator')->get('modules.tasks.addBoardColumn'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> </div> <div class="btn-group mt-2 mt-lg-0 mt-md-0" role="group"> <a href="<?php echo e(route('leads.index')); ?>" class="btn btn-secondary f-14" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.leaves.tableView'); ?>"><i class="side-icon bi bi-list-ul"></i></a> <a href="<?php echo e(route('leadboards.index')); ?>" class="btn btn-secondary f-14 btn-active" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('modules.lead.kanbanboard'); ?>"><i class="side-icon bi bi-kanban"></i></a> </div> </div> <div class="w-task-board-panel d-flex" id="taskboard-columns"> </div> </div> <!-- CONTENT WRAPPER END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <?php echo $__env->make('sections.daterange_js', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script src="<?php echo e(asset('vendor/jquery/dragula.js')); ?>"></script> <script> function showTable() { 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 followUp = $('#followUp').val(); var agent = $('#filter_agent_id').val(); var category_id = $('#filter_category_id').val(); var source_id = $('#filter_source_id').val(); var date_filter_on = $('#date_filter_on').val(); var url = "<?php echo e(route('leadboards.index')); ?>?startDate=" + encodeURIComponent(startDate) + '&endDate=' + encodeURIComponent(endDate) + '&type=' + type + '&followUp=' + followUp + '&agent=' + agent + '&category_id=' + category_id + '&source_id=' + source_id + '&searchText=' + searchText + '&min=' + min + '&max=' + max + '&date_filter_on=' + date_filter_on; $.easyAjax({ url: url, container: '#taskboard-columns', type: "GET", success: function(response) { $('#taskboard-columns').html(response.view); $("body").tooltip({ selector: '[data-toggle="tooltip"]' }); } }); } $('body').on('click', '.load-more-tasks', function() { var columnId = $(this).data('column-id'); var totalTasks = $(this).data('total-tasks'); var currentTotalTasks = $('#drag-container-' + columnId + ' .task-card').length; 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 min = $('#min').val(); var max = $('#max').val(); var type = $('#type').val(); var followUp = $('#followUp').val(); var agent = $('#filter_agent_id').val(); var category_id = $('#filter_category_id').val(); var source_id = $('#filter_source_id').val(); var searchText = $('#search-text-field').val(); var date_filter_on = $('#date_filter_on').val(); var url = "<?php echo e(route('leadboards.load_more')); ?>?startDate=" + encodeURIComponent(startDate) + '&endDate=' + encodeURIComponent(endDate) + '&type=' + type + '&followUp=' + followUp + '&agent=' + agent + '&category_id=' + category_id + '&source_id=' + source_id + '&searchText=' + searchText + '&columnId=' + columnId + '¤tTotalTasks=' + currentTotalTasks + '&totalTasks=' + totalTasks + '&min=' + min + '&max=' + max + '&date_filter_on=' + date_filter_on; $.easyAjax({ url: url, container: '#drag-container-' + columnId, blockUI: true, type: "GET", success: function(response) { $('#drag-container-' + columnId).append(response.view); if (response.load_more == 'show') { $('#drag-container-' + columnId).closest('.b-p-body').find('.load-more-tasks'); } else { $('#drag-container-' + columnId).closest('.b-p-body').find('.load-more-tasks') .remove(); } $("body").tooltip({ selector: '[data-toggle="tooltip"]' }); } }); }); var elem = document.getElementById("fullscreen"); function openFullscreen() { if (elem.requestFullscreen) { elem.requestFullscreen(); elem.classList.add("full"); } else if (elem.mozRequestFullScreen) { /* Firefox */ elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE/Edge */ elem.msRequestFullscreen(); } } $('#add-column').click(function() { const url = "<?php echo e(route('lead-status-settings.create')); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.edit-column', function() { var statusId = $(this).data('column-id'); var url = "<?php echo e(route('lead-status-settings.edit', ':id ')); ?>"; url = url.replace(':id', statusId); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.delete-column', function() { var id = $(this).data('column-id'); var url = "<?php echo e(route('lead-status-settings.destroy', ':id')); ?>"; url = url.replace(':id', 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) { $.easyAjax({ url: url, type: 'POST', data: { '_token': '<?php echo e(csrf_token()); ?>', '_method': 'DELETE' }, success: function(response) { if (response.status == 'success') { window.location.reload(); } } }); } }); }); $('body').on('click', '.collapse-column', function() { var boardColumnId = $(this).data('column-id'); var type = $(this).data('type'); $.easyAjax({ url: "<?php echo e(route('leadboards.collapse_column')); ?>", type: 'POST', container: '#taskboard-columns', blockUI: true, data: { boardColumnId: boardColumnId, type: type, '_token': '<?php echo e(csrf_token()); ?>' }, success: function(response) { if (response.status == 'success') { showTable(); } } }); }); showTable(); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/leads/board/index.blade.php ENDPATH**/ ?>