⚝
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 :
55bcda6754f3cb75ab183d2799ef597b.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Manage Deal Stages')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('packages/workdo/Lead/src/Resources/assets/js/jquery-ui.min.js')); ?>"></script> <?php if(\Auth::user()->type == 'company'): ?> <script> $(document).ready(function() { var $dragAndDrop = $("body .deal-stages tbody").sortable({ handle: '.sort-handler' }); myFunction(); }); function myFunction() { $(".deal-stages").sortable({ stop: function() { var order = []; $(this).find('tr').each(function(index, data) { order[index] = $(data).attr('data-id'); }); $.ajax({ url: "<?php echo e(route('deal-stages.order')); ?>", data: { order: order, _token: $('meta[name="csrf-token"]').attr('content') }, type: 'POST', success: function(data) { if (data.success) { toastrs('success', data.success,'success'); } else { toastrs('error', data.error,'error'); } } }) } }); } </script> <?php endif; ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Setup')); ?>, <?php echo e(__('Deal Stages')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-action'); ?> <div> <?php if (app('laratrust')->hasPermission('dealstages create')) : ?> <a class="btn btn-sm btn-primary btn-icon" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e(__('Create')); ?>" data-ajax-popup="true" data-size="md" data-title="<?php echo e(__('Create Deal Stage')); ?>" data-url="<?php echo e(route('deal-stages.create')); ?>"><i class="ti ti-plus text-white"></i></a> <?php endif; // app('laratrust')->permission ?> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-3"> <?php echo $__env->make('lead::layouts.system_setup', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <div class="col-lg-9"> <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> <?php ($i = 0); ?> <?php $__currentLoopData = $pipelines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $pipeline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="nav-item"> <a class="nav-link <?php if($i == 0): ?> active <?php endif; ?>" id="pills-home-tab" data-bs-toggle="pill" href="#tab<?php echo e($key); ?>" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e($pipeline['name']); ?></a> </li> <?php ($i++); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <div class="card"> <div class="card-header"> <h5 class=""> <?php echo e(__('Deal stages')); ?> </h5> </div> <div class="card-body"> <div class="tab-content tab-bordered"> <?php ($i = 0); ?> <?php $__currentLoopData = $pipelines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $pipeline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="tab-pane fade show <?php if($i == 0): ?> active <?php endif; ?>" id="tab<?php echo e($key); ?>" role="tabpanel"> <table class="table table-hover" data-repeater-list="stages"> <thead> <th><i class="fas fa-crosshairs"></i></th> <th><?php echo e(__('Name')); ?></th> <th class="d-flex justify-content-end"><?php echo e(__('Action')); ?></th> </thead> <tbody class="deal-stages"> <?php $__currentLoopData = $pipeline['stages']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr data-id="<?php echo e($stage->id); ?>"> <td><i class="fas fa-crosshairs sort-handler"></i></td> <td><?php echo e($stage->name); ?></td> <td class="d-flex justify-content-end"> <?php if (app('laratrust')->hasPermission('dealstages edit')) : ?> <div class="action-btn me-2"> <a data-size="md" data-url="<?php echo e(URL::to('deal-stages/' . $stage->id . '/edit')); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Edit Deal Stages')); ?>" class="me-2 btn btn-sm align-items-center bg-info" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a> </div> <?php endif; // app('laratrust')->permission ?> <?php if(count($pipeline['stages'])): ?> <?php if (app('laratrust')->hasPermission('dealstages delete')) : ?> <div class="action-btn"> <?php echo Form::open(['method' => 'DELETE', 'route' => ['deal-stages.destroy', $stage->id]]); ?> <a href="#!" class="btn btn-sm align-items-center show_confirm bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php echo e(__('Delete')); ?>" 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-white"> <i class="ti ti-trash"></i></span></a> <?php echo Form::close(); ?> </div> <?php endif; // app('laratrust')->permission ?> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php ($i++); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="alert alert-dark" role="alert"> <?php echo e(__('Note : You can easily change order of Deal stage using drag & drop.')); ?> </div> </div> </div> <?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/deal_stages/index.blade.php ENDPATH**/ ?>