⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.139
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
e01d54820e49cff20ed8528948ed5c2c.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Gantt Chart')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Project Details')); ?>,<?php echo e(__("Gantt Chart")); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-action'); ?> <div class="d-flex flex-wrap gap-2"> <div class="btn-group flex-wrap bg-primary total-card" id="change_view" role="group"> <a href="<?php echo e(route('projects.gantt',[$project->id,'Quarter Day'])); ?>" class="btn btn-sm px-3 btn-primary <?php if($duration == 'Quarter Day'): ?>active <?php endif; ?>" data-value="Quarter Day"><?php echo e(__('Quarter Day')); ?></a> <a href="<?php echo e(route('projects.gantt',[$project->id,'Half Day'])); ?>" class="btn btn-sm px-3 btn-primary <?php if($duration == 'Half Day'): ?>active <?php endif; ?>" data-value="Half Day"><?php echo e(__('Half Day')); ?></a> <a href="<?php echo e(route('projects.gantt',[$project->id,'Day'])); ?>" class="btn btn-sm px-3 btn-primary <?php if($duration == 'Day'): ?>active <?php endif; ?>" data-value="Day"><?php echo e(__('Day')); ?></a> <a href="<?php echo e(route('projects.gantt',[$project->id,'Week'])); ?>" class="btn btn-sm px-3 btn-primary <?php if($duration == 'Week'): ?>active <?php endif; ?>" data-value="Week"><?php echo e(__('Week')); ?></a> <a href="<?php echo e(route('projects.gantt',[$project->id,'Month'])); ?>" class="btn btn-sm px-3 btn-primary <?php if($duration == 'Month'): ?>active <?php endif; ?>" data-value="Month"><?php echo e(__('Month')); ?></a> </div> <div class="col-auto d-inline"> <a href="<?php echo e(route('projects.show',[$project->id])); ?>" class="btn btn-sm btn-primary" data-toggle="tooltip" title="<?php echo e(__('Back')); ?>"> <i class=" ti ti-arrow-back-up"></i> </a> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <section class="section mt-4"> <?php if($project): ?> <div class="row"> <div class="col-12"> <div class="gantt-target"></div> </div> </div> <?php else: ?> <div class="container mt-5"> <div class="card"> <div class="card-body p-4"> <div class="page-error"> <div class="page-inner"> <h1>404</h1> <div class="page-description"> <?php echo e(__('Page Not Found')); ?> </div> <div class="page-search"> <p class="text-muted mt-3"><?php echo e(__("It's looking like you may have taken a wrong turn. Don't worry... it happens to the best of us. Here's a little tip that might help you get back on track.")); ?></p> <div class="mt-3"> <a class="btn-return-home badge-blue" href="<?php echo e(route('home')); ?>"><i class="fas fa-reply"></i> <?php echo e(__('Return Home')); ?></a> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> </section> <?php $__env->stopSection(); ?> <?php if($project): ?> <?php $__env->startPush('css'); ?> <link rel="stylesheet" href="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/css/frappe-gantt.css')); ?>" /> <?php $__env->stopPush(); ?> <?php $__env->startPush('scripts'); ?> <?php $currantLang = basename(App::getLocale()); ?> <script> const month_names = { "<?php echo e($currantLang); ?>": [ '<?php echo e(__('January')); ?>', '<?php echo e(__('February')); ?>', '<?php echo e(__('March')); ?>', '<?php echo e(__('April')); ?>', '<?php echo e(__('May')); ?>', '<?php echo e(__('June')); ?>', '<?php echo e(__('July')); ?>', '<?php echo e(__('August')); ?>', '<?php echo e(__('September')); ?>', '<?php echo e(__('October')); ?>', '<?php echo e(__('November')); ?>', '<?php echo e(__('December')); ?>' ], "en": [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], }; </script> <script src="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/js/frappe-gantt.js')); ?>"></script> <script src="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/libs/moment/min/moment.min.js')); ?>"></script> <script> var tasks = JSON.parse('<?php echo addslashes(json_encode($tasks)); ?>'); if(tasks.length != 0) { var gantt_chart = new Gantt(".gantt-target", tasks, { custom_popup_html: function(task) { var status_class = 'success'; if(task.custom_class == 'medium'){ status_class = 'info' }else if(task.custom_class == 'high'){ status_class = 'danger' } return `<div class="details-container"> <div class="title">${task.name} <span class="bg bg-${status_class} float-right">${task.extra.priority}</span></div> <div class="subtitle"> <b>${task.progress}%</b> <?php echo e(__('Progress')); ?> <br> <b>${task.extra.comments}</b> <?php echo e(__('Comments')); ?> <br> <b><?php echo e(__('Duration')); ?></b> ${task.extra.duration} </div> </div> `; }, on_click: function (task) { }, on_date_change: function(task, start, end) { task_id = task.id; start = moment(start); end = moment(end); $.ajax({ url:"<?php echo e(route('projects.gantt.post',[$project->id])); ?>", data:{ start:start.format('YYYY-MM-DD HH:mm:ss'), end:end.format('YYYY-MM-DD HH:mm:ss'), task_id:task_id, }, type:'POST', success:function (data) { }, error:function (data) { toastrs('Error', '<?php echo e(__("Some Thing Is Wrong!")); ?>', 'error'); } }); }, view_mode: '<?php echo e($duration); ?>', language: '<?php echo e($currantLang); ?>' }); } else { $('.gantt-target').append(`<div class="col-12"> <div class="card "> <div class="card-body table-border-style mt-4"> <div class="table-responsive"> <table class="table "> <tr> <td colspan="10" class="text-center"> <div class="text-center"> <i class="fas fa-folder-open text-primary fs-40"></i> <h2><?php echo e(__('Opps...')); ?></h2> <h6> <?php echo __('No Data Found'); ?> </h6> <small><?php echo e(__("Please create at least one task to show here.. ")); ?> </div> </td> </tr> </table> </div> </div> </div> </div>`); } </script> <?php $__env->stopPush(); ?> <?php endif; ?> <?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/Taskly/src/Providers/../Resources/views/projects/gantt.blade.php ENDPATH**/ ?>