⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.220
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 :
f7abcf57ff423b54eb51e32996c45a54.php
<?php if($project && $currentWorkspace): ?> <form class="needs-validation" method="post" action="<?php echo e(route('tasks.store',[$project->id])); ?>" novalidate> <?php echo csrf_field(); ?> <div class="modal-body"> <div class="text-end"> <?php if(module_is_active('AIAssistant')): ?> <?php echo $__env->make('aiassistant::ai.generate_ai_btn',['template_module' => 'project task','module'=>'Taskly'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </div> <div class="row"> <div class="form-group col-md-8"> <label class="form-label"><?php echo e(__('Project')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <select class="form-control form-control-light select2" name="project_id" required> <option value="<?php echo e($project->id); ?>"><?php echo e($project->name); ?></option> </select> </div> <div class="form-group col-md-4"> <label class="form-label"><?php echo e(__('Milestone')); ?></label> <select class="form-control form-control-light select2" name="milestone_id" id="task-milestone"> <option value=""><?php echo e(__('Select Milestone')); ?></option> <?php $__currentLoopData = $project->milestones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $milestone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($milestone->id); ?>"><?php echo e($milestone->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group col-md-8"> <label class="form-label"><?php echo e(__('Title')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <input type="text" class="form-control form-control-light" id="task-title" placeholder="<?php echo e(__('Enter Title')); ?>" name="title" required> </div> <div class="form-group col-md-4"> <label class="form-label"><?php echo e(__('Priority')); ?></label> <select class="form-control form-control-light" name="priority" id="task-priority" required> <option value="Low"><?php echo e(__('Low')); ?></option> <option value="Medium"><?php echo e(__('Medium')); ?></option> <option value="High"><?php echo e(__('High')); ?></option> </select> </div> <div class="form-group col-md-12"> <label class="form-label"><?php echo e(__('Assign To')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <select class=" multi-select choices" id="assign_to" name="assign_to[]" multiple="multiple" data-placeholder="<?php echo e(__('Select Users ...')); ?>" required> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($u->id); ?>"><?php echo e($u->name); ?> - <?php echo e($u->email); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <p class="text-danger d-none" id="user_validation"><?php echo e(__('Assign To filed is required.')); ?></p> </div> <div class="form-group col-md-12"> <label class="form-label"><?php echo e(__('Duration')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <div class='input-group'> <input type='text' class=" form-control form-control-light" id="duration" name="duration" required autocomplete="off" placeholder="Select date range" /> <input type="hidden" name="start_date"> <input type="hidden" name="due_date"> <span class="input-group-text"><i class="feather icon-calendar"></i></span> </div> </div> <div class="form-group col-md-12"> <label class="form-label"><?php echo e(__('Description')); ?></label><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <textarea class="form-control form-control-light" id="task-description" rows="3" name="description" placeholder="Enter Description" required></textarea> </div> </div> <?php if(module_is_active('CustomField') && !$customFields->isEmpty()): ?> <div class="col-md-12"> <div class="tab-pane fade show" id="tab-2" role="tabpanel"> <?php echo $__env->make('custom-field::formBuilder', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <?php endif; ?> <?php echo $__env->yieldPushContent('calendar'); ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-light" data-bs-dismiss="modal"><?php echo e(__('Cancel')); ?></button> <input type="submit" value="<?php echo e(__('Create')); ?>" class="btn btn-primary" id="submit"> </div> </form> <link rel="stylesheet" href="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/libs/bootstrap-daterangepicker/daterangepicker.css')); ?> "> <script src="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/libs/moment/min/moment.min.js')); ?>"></script> <script src="<?php echo e(asset('packages/workdo/Taskly/src/Resources/assets/libs/bootstrap-daterangepicker/daterangepicker.js')); ?>"></script> <script> $(function () { var start = moment('<?php echo e(date('Y-m-d')); ?>', 'YYYY-MM-DD HH:mm:ss'); var end = moment('<?php echo e(date('Y-m-d')); ?>', 'YYYY-MM-DD HH:mm:ss'); function cb(start, end) { $("form #duration").val(start.format('MMM D, YY hh:mm A') + ' - ' + end.format('MMM D, YY hh:mm A')); $('form input[name="start_date"]').val(start.format('YYYY-MM-DD HH:mm:ss')); $('form input[name="due_date"]').val(end.format('YYYY-MM-DD HH:mm:ss')); } $('form #duration').daterangepicker({ autoApply: true, timePicker: true, autoUpdateInput: false, startDate: start, endDate: end, locale: { format: 'MMMM D, YYYY hh:mm A', applyLabel: "<?php echo e(__('Apply')); ?>", cancelLabel: "<?php echo e(__('Cancel')); ?>", fromLabel: "<?php echo e(__('From')); ?>", toLabel: "<?php echo e(__('To')); ?>", daysOfWeek: [ "<?php echo e(__('Sun')); ?>", "<?php echo e(__('Mon')); ?>", "<?php echo e(__('Tue')); ?>", "<?php echo e(__('Wed')); ?>", "<?php echo e(__('Thu')); ?>", "<?php echo e(__('Fri')); ?>", "<?php echo e(__('Sat')); ?>" ], monthNames: [ "<?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')); ?>" ], } }, cb); cb(start, end); }); $(document).on('change', "select[name=project_id]", function () { $.get('<?php if(auth()->guard('web')->check()): ?><?php echo e(route('home')); ?><?php elseif(auth()->guard()->check()): ?><?php echo e(route('client.home')); ?><?php endif; ?>' + '/userProjectJson/' + $(this).val(), function (data) { $('select[name=assign_to]').html(''); data = JSON.parse(data); $(data).each(function (i, d) { $('select[name=assign_to]').append('<option value="' + d.id + '">' + d.name + ' - ' + d.email + '</option>'); }); }); $.get('<?php if(auth()->guard('web')->check()): ?><?php echo e(route('home')); ?><?php elseif(auth()->guard()->check()): ?><?php echo e(route('client.home')); ?><?php endif; ?>' + '/projectMilestoneJson/' + $(this).val(), function (data) { $('select[name=milestone_id]').html('<option value=""><?php echo e(__('Select Milestone')); ?></option>'); data = JSON.parse(data); $(data).each(function (i, d) { $('select[name=milestone_id]').append('<option value="' + d.id + '">' + d.title + '</option>'); }); }) }) </script> <?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; ?> <script> $(function(){ $("#submit").click(function() { var user = $("#assign_to option:selected").length; if(user == 0){ $('#user_validation').removeClass('d-none') return false; }else{ $('#user_validation').addClass('d-none') } }); }); </script> <?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Taskly/src/Providers/../Resources/views/projects/taskCreate.blade.php ENDPATH**/ ?>