⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
0fbadd15fecaddfebe20d1189c48e938.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Manage Leads')); ?> <?php if($pipeline): ?> - <?php echo e($pipeline->name); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <link rel="stylesheet" href="<?php echo e(asset('assets/css/plugins/dragula.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('assets/js/plugins/summernote-0.8.18-dist/summernote-lite.min.css')); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Leads')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('assets/js/plugins/summernote-0.8.18-dist/summernote-lite.min.js')); ?>"></script> <?php if (app('laratrust')->hasPermission('lead move')) : ?> <?php if($pipeline): ?> <script src="<?php echo e(asset('assets/js/plugins/dragula.min.js')); ?>"></script> <script> ! function(a) { "use strict"; var t = function() { this.$body = a("body") }; t.prototype.init = function() { a('[data-plugin="dragula"]').each(function() { var t = a(this).data("containers"), n = []; if (t) for (var i = 0; i < t.length; i++) n.push(a("#" + t[i])[0]); else n = [a(this)[0]]; var r = a(this).data("handleclass"); r ? dragula(n, { moves: function(a, t, n) { return n.classList.contains(r) } }) : dragula(n).on('drop', function(el, target, source, sibling) { var order = []; $("#" + target.id + " > div").each(function() { order[$(this).index()] = $(this).attr('data-id'); }); var id = $(el).attr('data-id'); var old_status = $("#" + source.id).data('status'); var new_status = $("#" + target.id).data('status'); var stage_id = $(target).attr('data-id'); var pipeline_id = '<?php echo e($pipeline->id); ?>'; $("#" + source.id).parent().find('.count').text($("#" + source.id + " > div") .length); $("#" + target.id).parent().find('.count').text($("#" + target.id + " > div") .length); $.ajax({ url: '<?php echo e(route('leads.order')); ?>', type: 'POST', data: { lead_id: id, stage_id: stage_id, order: order, new_status: new_status, old_status: old_status, pipeline_id: pipeline_id, _token: "<?php echo e(csrf_token()); ?>" }, success: function(data) { if (data.success) { toastrs('success', data.success,'success'); } else { toastrs('error', data.error,'error'); } } }); }); }) }, a.Dragula = new t, a.Dragula.Constructor = t }(window.jQuery), function(a) { "use strict"; a.Dragula.init() }(window.jQuery); </script> <?php endif; ?> <?php endif; // app('laratrust')->permission ?> <script> $(document).on("change", "#change-pipeline select[name=default_pipeline_id]", function() { $('#change-pipeline').submit(); }); </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-action'); ?> <div class="d-flex flex-wrap"> <?php if($pipeline): ?> <div class="col-auto me-3"> <?php echo e(Form::open(['route' => 'deals.change.pipeline', 'id' => 'change-pipeline'])); ?> <?php echo e(Form::select('default_pipeline_id', $pipelines, $pipeline->id, ['class' => 'form-control custom-form-select', 'id' => 'default_pipeline_id'])); ?> <?php echo e(Form::close()); ?> </div> <?php endif; ?> <div class="col-auto pt-2" style="display: inline-table;"> <?php echo $__env->yieldPushContent('addButtonHook'); ?> </div> <?php if (app('laratrust')->hasPermission('lead import')) : ?> <div class="col-auto pt-2"> <a href="#" class="btn btn-sm btn-primary me-2" data-ajax-popup="true" data-title="<?php echo e(__('Lead Import')); ?>" data-url="<?php echo e(route('lead.file.import')); ?>" data-toggle="tooltip" data-size="md" title="<?php echo e(__('Import')); ?>"><i class="ti ti-file-import"></i> </a> </div> <?php endif; // app('laratrust')->permission ?> <div class="col-auto pt-2"> <a href="<?php echo e(route('leads.list')); ?>" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e(__('List View')); ?>" class="btn btn-sm btn-primary btn-icon me-2"><i class="ti ti-list"></i> </a> </div> <?php if (app('laratrust')->hasPermission('lead create')) : ?> <div class="col-auto pt-2"> <a class="btn btn-sm btn-primary btn-icon " data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e(__('Create Lead')); ?>" data-ajax-popup="true" data-size="lg" data-title="<?php echo e(__('Create Lead')); ?>" data-url="<?php echo e(route('leads.create')); ?>"><i class="ti ti-plus text-white"></i></a> </div> <?php endif; // app('laratrust')->permission ?> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if($pipeline): ?> <div class="row"> <?php $lead_stages = $pipeline->leadStages; $json = []; foreach ($lead_stages as $lead_stage) { $json[] = 'task-list-' . $lead_stage->id; } ?> <div class="col-12"> <div class="row kanban-wrapper horizontal-scroll-cards pt-3" data-plugin="dragula" data-containers='<?php echo json_encode($json); ?>'> <?php $__currentLoopData = $lead_stages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead_stage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($leads = $lead_stage->lead()); ?> <div class="col" id="progress"> <div class="card card-list"> <div class="card-header"> <div class="float-end"> <button class="btn btn-sm btn-primary btn-icon count"> <?php echo e(count($leads)); ?> </button> </div> <h4 class="mb-0"><?php echo e($lead_stage->name); ?></h4> </div> <div id="task-list-<?php echo e($lead_stage->id); ?>" data-id="<?php echo e($lead_stage->id); ?>" class="card-body kanban-box"> <?php $__currentLoopData = $leads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="card grid-card" data-id="<?php echo e($lead->id); ?>"> <?php ($labels = $lead->labels()); ?> <?php if(\Laratrust::hasPermission('lead edit') || \Laratrust::hasPermission('lead delete')): ?> <?php if($labels): ?> <div class="card-header border-0 pb-3 d-flex align-items-center justify-content-between pt-3 ps-3"> <div class="d-flex flex-wrap gap-1"> <?php $__currentLoopData = $labels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="badge bg-<?php echo e($label->color); ?> p-2 px-3"> <?php echo e($label->name); ?></div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="card-header border-0 pb-3 position-relative pt-3 ps-3"> <?php endif; ?> <div class="card-header-right float-end"> <div class="btn-group card-option"> <?php if(!$lead->is_active): ?> <div class="btn dropdown-toggle"> <a href="#" class="action-item" data-toggle="dropdown" aria-expanded="false"><i class="fas fa-lock"></i></a> </div> <?php else: ?> <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="ti ti-dots-vertical"></i> </button> <div class="dropdown-menu dropdown-menu-end"> <?php if (app('laratrust')->hasPermission('lead edit')) : ?> <a data-url="<?php echo e(URL::to('leads/' . $lead->id . '/labels')); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Labels')); ?>" class="dropdown-item"><i class="ti ti-copy me-1"></i> <?php echo e(__('Labels')); ?></a> <?php endif; // app('laratrust')->permission ?> <?php if (app('laratrust')->hasPermission('lead show')) : ?> <?php if($lead->is_active): ?> <a href="<?php echo e(route('leads.show',$lead->id)); ?>" class="dropdown-item" data-toggle="tooltip" data-original-title="<?php echo e(__('View')); ?>" data-bs-placement="top"><i class="ti ti-eye me-1"></i> <?php echo e(__('View')); ?></a> <?php endif; ?> <?php endif; // app('laratrust')->permission ?> <?php if (app('laratrust')->hasPermission('lead edit')) : ?> <a data-url="<?php echo e(URL::to('leads/' . $lead->id . '/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit')); ?>" class="dropdown-item"><i class="ti ti-pencil me-1"></i> <?php echo e(__('Edit')); ?></a> <?php endif; // app('laratrust')->permission ?> <?php if (app('laratrust')->hasPermission('lead delete')) : ?> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['leads.destroy', $lead->id], 'id' => 'delete-form-' . $lead->id, ]); ?> <a class="dropdown-item show_confirm" data-confirm="<?php echo e(__('Are You Sure?')); ?>" data-text="<?php echo e(__('This action can not be undone. Do you want to continue?')); ?>"> <span class="text-danger"><i class="ti ti-trash me-1"></i> <?php echo e(__('Delete')); ?></span> </a> <?php echo Form::close(); ?> <?php endif; // app('laratrust')->permission ?> </div> <?php endif; ?> </div> </div> </div> <div class="card-header border-0 pt-0 pb-0 position-relative"> <h5><a href="<?php if (app('laratrust')->hasPermission('lead show')) : ?><?php if($lead->is_active): ?><?php echo e(route('leads.show', $lead->id)); ?><?php else: ?>#<?php endif; ?> <?php else: ?>#<?php endif; // app('laratrust')->permission ?>" class="text-primary"><?php echo e($lead->name); ?></a></h5> </div> <?php endif; ?> <div class="card-body p-3"> <div class="d-flex align-items-center justify-content-between mb-2"> <ul class="list-inline mb-0"> <li class="list-inline-item d-inline-flex align-items-center" data-bs-toggle="tooltip" data-bs-original-title="Task"><i class="f-16 text-primary ti ti-list me-1"></i> <?php echo e(count($lead->tasks)); ?>/<?php echo e(count($lead->complete_tasks)); ?> </li> </ul> <?php if(isset($lead->follow_up_date) && !empty($lead->follow_up_date)): ?> <div class="user-group <?php echo e($lead->follow_up_date < date('Y-m-d') ? 'text-danger' : 'text-primary'); ?>" data-bs-toggle="tooltip" data-bs-original-title="Follow Up Date"> <i class="ti ti-calendar-time"></i> <?php echo e(company_date_formate($lead->follow_up_date)); ?> </div> <?php endif; ?> </div> <div class="d-flex align-items-center justify-content-between pt-2 mt-2 border-secondary-subtle border-top"> <ul class="list-inline mb-0"> <li class="list-inline-item d-inline-flex align-items-center" data-bs-toggle="tooltip" data-bs-original-title="Product"><i class="f-16 text-primary ti ti-shopping-cart me-1"></i><?php echo e(count($lead->products())); ?> </li> <li class="list-inline-item d-inline-flex align-items-center" data-bs-toggle="tooltip" data-bs-original-title="Source"><i class="f-16 text-primary ti ti-social me-1"></i><?php echo e(count($lead->sources())); ?> </li> </ul> <div class="user-group"> <?php $__currentLoopData = $lead->users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <img alt="image" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e($user->name); ?>" <?php if($user->avatar): ?> src="<?php echo e(get_file($user->avatar)); ?>" <?php else: ?> src="<?php echo e(get_file('avatar.png')); ?>" <?php endif; ?> class="rounded-circle " width="25" height="25"> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php endif; ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Lead/src/Providers/../Resources/views/leads/index.blade.php ENDPATH**/ ?>