whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/9458659154d1920986d1b30543d36999.php
<?php $addProjectCategoryPermission = user()->permission('manage_project_category'); $addEmployeePermission = user()->permission('add_employees'); $addProjectFilePermission = user()->permission('add_project_files'); $addPublicProjectPermission = user()->permission('create_public_project'); $addProjectMemberPermission = user()->permission('add_project_members'); $addProjectNotePermission = user()->permission('add_project_note'); ?> <div class="modal-header"> <h5 class="modal-title" id="modelHeading"><?php echo app('translator')->get('app.copyProject'); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <?php if (isset($component)) { $__componentOriginal18ad2e0d264f9740dc73fff715357c28 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18ad2e0d264f9740dc73fff715357c28 = $attributes; } ?> <?php $component = App\View\Components\Form::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form'); ?> <?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\Form::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'createDuplicateProject']); ?> <input type="hidden" name="duplicateProjectID" value="<?php echo e($project->id); ?>"> <input type="hidden" name="type" value="duplicateProject"> <div class="row"> <div class="col-sm-12 mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'task','fieldLabel' => __('app.task'),'fieldName' => 'task'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <div class="ml-3 mt-2 d-none" id="task-options"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'sub_task','fieldLabel' => __('app.copy').' '.__('modules.tasks.subTask'),'fieldName' => 'sub_task'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'same_assignee','fieldLabel' => __('modules.projects.sameAssignee'),'fieldName' => 'same_assignee'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <div class="col-sm-12 mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'milestone','fieldLabel' => __('app.milestone'),'fieldName' => 'milestone'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="col-sm-12 mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'file','fieldLabel' => __('app.file'),'fieldName' => 'file'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="col-sm-12 mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'time_sheet','fieldLabel' => __('app.menu.timeLogs'),'fieldName' => 'time_sheet'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="col-sm-12 mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'note','fieldLabel' => __('modules.projects.note'),'fieldName' => 'note'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <div class="row border-top-grey mt-3 d-none" id="task-status"> <div class="col-md-12"> <div class="form-group my-3"> <label class="f-14 text-dark-grey mb-12 w-100" for="usr"><?php echo app('translator')->get('app.taskStatus'); ?></label> <?php $__currentLoopData = $taskboardColumns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => $item->slug,'fieldLabel' => $item->column_name,'fieldName' => 'task_status[]','fieldValue' => $item->id,'checked' => ($item->slug == 'incomplete') ? true : false] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="row border-top-grey mt-3"> <div class="col-md-12"> <?php if (isset($component)) { $__componentOriginal4e45e801405ab67097982370a6a83cba = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4e45e801405ab67097982370a6a83cba = $attributes; } ?> <?php $component = App\View\Components\Forms\Text::resolve(['fieldLabel' => __('modules.taskShortCode'),'fieldName' => 'project_code','fieldRequired' => 'false','fieldId' => 'project_code','fieldPlaceholder' => __('placeholders.writeshortcode'),'fieldValue' => $project ? $project->project_short_code : ''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.text'); ?> <?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\Text::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-0 mr-lg-2 mr-md-2']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $attributes = $__attributesOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__attributesOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> <?php if (isset($__componentOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $component = $__componentOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__componentOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> </div> <div class="col-md-12"> <?php if (isset($component)) { $__componentOriginal4e45e801405ab67097982370a6a83cba = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4e45e801405ab67097982370a6a83cba = $attributes; } ?> <?php $component = App\View\Components\Forms\Text::resolve(['fieldLabel' => __('modules.projects.projectName'),'fieldName' => 'project_name','fieldRequired' => 'true','fieldId' => 'project_name','fieldPlaceholder' => __('placeholders.project'),'fieldValue' => $project ? $project->project_name : '' ] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.text'); ?> <?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\Text::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-0 mr-lg-2 mr-md-2']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $attributes = $__attributesOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__attributesOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> <?php if (isset($__componentOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $component = $__componentOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__componentOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-4"> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66 = $attributes; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'start_date','fieldRequired' => 'true','fieldLabel' => __('modules.projects.startDate'),'fieldName' => 'start_date','fieldPlaceholder' => __('placeholders.date'),'fieldValue' => $project ? $project->start_date->format(company()->date_format) : ''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.datepicker'); ?> <?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\Datepicker::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $attributes = $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> <?php if (isset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-4" id="deadlineBox"> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66 = $attributes; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'deadline','fieldRequired' => 'true','fieldLabel' => __('modules.projects.deadline'),'fieldName' => 'deadline','fieldPlaceholder' => __('placeholders.date'),'fieldValue' => ($project ? (($project->deadline) ?$project->deadline->format(company()->date_format) : '') : '')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.datepicker'); ?> <?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\Datepicker::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $attributes = $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> <?php if (isset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-4"> <div class="form-group"> <div class="d-flex mt-5"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'without_deadline','checked' => ($project && $project->deadline == null) ? true : false,'fieldLabel' => __('modules.projects.withoutDeadline'),'fieldName' => 'without_deadline'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> </div> <?php if($addPublicProjectPermission == 'all'): ?> <div class="col-sm-12"> <div class="form-group"> <div class="d-flex mt-2"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $attributes; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldId' => 'is_public','fieldLabel' => __('modules.projects.createPublicProject'),'fieldName' => 'public'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $attributes = $__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__attributesOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> </div> <?php endif; ?> <?php if(!in_array('client', user_roles())): ?> <div class="col-md-4"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'department','fieldLabel' => __('app.department')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'my-3']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $attributes; } ?> <?php $component = App\View\Components\Forms\InputGroup::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.input-group'); ?> <?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\InputGroup::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <select class="form-control multiple-users" multiple name="team_id[]" id="employee_department" data-live-search="true"> <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option data-content="<span class='badge badge-pill badge-light border p-2'><?php echo e($team->team_name); ?></span>" <?php if(in_array($team->id, $departmentIds)): echo 'selected'; endif; ?> value="<?php echo e($team->id); ?>"> <?php echo e($team->team_name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $attributes = $__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> <?php endif; ?> <?php if($addProjectMemberPermission == 'all' || $addProjectMemberPermission == 'added'): ?> <div class="col-md-12"> <div class="form-group my-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'selectEmployee','fieldRequired' => 'true','fieldLabel' => __('modules.projects.addMemberTitle')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'my-3']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $attributes; } ?> <?php $component = App\View\Components\Forms\InputGroup::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.input-group'); ?> <?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\InputGroup::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <select class="form-control multiple-users" multiple name="user_id[]" id="selectEmployee" data-live-search="true" data-size="8"> <?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal6c7097547485b98631a37d273a171e9f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal6c7097547485b98631a37d273a171e9f = $attributes; } ?> <?php $component = App\View\Components\UserOption::resolve(['user' => $item,'pill' => true,'selected' => request()->has('default_assign') && request('default_assign') == $item->id ||(isset($memberIds) && in_array($item->id, $memberIds))] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('user-option'); ?> <?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\UserOption::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $attributes = $__attributesOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__attributesOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php if (isset($__componentOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $component = $__componentOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__componentOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $attributes = $__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__attributesOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> </div> <?php elseif(in_array('employee', user_roles())): ?> <input type="hidden" name="user_id[]" value="<?php echo e(user()->id); ?>"> <?php endif; ?> <div class="<?php if(!in_array('clients', user_modules())): ?> d-none <?php endif; ?> col-md-12 <?php if(!isset($client) && is_null($client)): ?> py-3 <?php endif; ?>"> <?php if(isset($client) && !is_null($client)): ?> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'client_id','fieldLabel' => __('app.client')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'my-3']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input type="hidden" name="client_id" id="client_id" value="<?php echo e($client->id); ?>"> <input type="text" value="<?php echo e($client->name_salutation); ?>" class="form-control height-35 f-15 readonly-background" readonly> <?php else: ?> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal67cd5dc9866c6185ad92d933c387fa86 = $attributes; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldName' => 'client_id','fieldId' => 'client_id','fieldLabel' => __('app.client')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.select'); ?> <?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\Select::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <option value="">--</option> <?php $__currentLoopData = $clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $clientOpt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option data-content="<?php if (isset($component)) { $__componentOriginalf1ffc6b119c1d62eb520e36466d6f5ca = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf1ffc6b119c1d62eb520e36466d6f5ca = $attributes; } ?> <?php $component = App\View\Components\ClientSearchOption::resolve(['user' => $clientOpt] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('client-search-option'); ?> <?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\ClientSearchOption::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf1ffc6b119c1d62eb520e36466d6f5ca)): ?> <?php $attributes = $__attributesOriginalf1ffc6b119c1d62eb520e36466d6f5ca; ?> <?php unset($__attributesOriginalf1ffc6b119c1d62eb520e36466d6f5ca); ?> <?php endif; ?> <?php if (isset($__componentOriginalf1ffc6b119c1d62eb520e36466d6f5ca)): ?> <?php $component = $__componentOriginalf1ffc6b119c1d62eb520e36466d6f5ca; ?> <?php unset($__componentOriginalf1ffc6b119c1d62eb520e36466d6f5ca); ?> <?php endif; ?>" value="<?php echo e($clientOpt->id); ?>"><?php echo e($clientOpt->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $attributes = $__attributesOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__attributesOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> <?php endif; ?> </div> </div> <div class="modal-footer"> <?php if (isset($component)) { $__componentOriginalc35c79ed7e812580313ad04118477974 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc35c79ed7e812580313ad04118477974 = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonCancel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-cancel'); ?> <?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\ButtonCancel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-dismiss' => 'modal','class' => 'border-0 mr-3']); ?><?php echo app('translator')->get('app.close'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc35c79ed7e812580313ad04118477974)): ?> <?php $attributes = $__attributesOriginalc35c79ed7e812580313ad04118477974; ?> <?php unset($__attributesOriginalc35c79ed7e812580313ad04118477974); ?> <?php endif; ?> <?php if (isset($__componentOriginalc35c79ed7e812580313ad04118477974)): ?> <?php $component = $__componentOriginalc35c79ed7e812580313ad04118477974; ?> <?php unset($__componentOriginalc35c79ed7e812580313ad04118477974); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcf8d12533ff890e0d6573daf32b7618d = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonPrimary::resolve(['icon' => 'check'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-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\ButtonPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'save-copy-project']); ?><?php echo app('translator')->get('app.copyProject'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $attributes = $__attributesOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__attributesOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $attributes = $__attributesOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__attributesOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> <?php if (isset($__componentOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $component = $__componentOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__componentOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> </div> <script> $('.select-picker').selectpicker(); <?php if($project->deadline == null): ?> $('#deadlineBox').hide(); <?php endif; ?> var startDate = datepicker('#start_date', { position: 'bl', onSelect: (instance, date) => { endDate.setMin(date); }, ...datepickerConfig }); var endDate = datepicker('#deadline', { position: 'bl', onSelect: (instance, date) => { startDate.setMax(date); }, ...datepickerConfig }); $('#task').change(function () { if($(this).is(':checked')){ $('#task-options').removeClass('d-none'); $('#task-status').removeClass('d-none'); } else { $('#task-options').addClass('d-none'); $('#task-status').addClass('d-none'); } }); $('#without_deadline').click(function() { var check = $('#without_deadline').is(":checked") ? true : false; if (check == true) { $('#deadlineBox').hide(); } else { $('#deadlineBox').show(); } }); $('#is_public').change(function () { $('#add_members').toggleClass('d-none'); }); $('#save-copy-project').click(function() { var url = "<?php echo e(route('projects.store')); ?>"; $.easyAjax({ url: url, container: '#createDuplicateProject', type: "POST", blockUI: true, disableButton: true, data: $('#createDuplicateProject').serialize(), success: function(response) { if (response.status == 'success') { $(MODAL_LG).modal('hide'); showTable(); } } }) }); $("#selectEmployee").selectpicker({ actionsBox: true, selectAllText: "<?php echo e(__('modules.permission.selectAll')); ?>", deselectAllText: "<?php echo e(__('modules.permission.deselectAll')); ?>", multipleSeparator: " ", selectedTextFormat: "count > 8", countSelectedText: function (selected, total) { return selected + " <?php echo e(__('app.membersSelected')); ?> "; } }); $(document).ready(function() { $(".multiple-users").selectpicker({ actionsBox: true, selectAllText: "<?php echo e(__('modules.permission.selectAll')); ?>", deselectAllText: "<?php echo e(__('modules.permission.deselectAll')); ?>", multipleSeparator: " ", selectedTextFormat: "count > 8", countSelectedText: function(selected, total) { return selected + " <?php echo e(__('app.membersSelected')); ?> "; } }); }); $('#createDuplicateProject').on('change', '#employee_department', function () { let id = $(this).val(); if (id === '' || id.length === 0) { id = 0; } let userId = '<?php echo e($project->members->pluck("user.id")->implode(",")); ?>'; let url = "<?php echo e(route('departments.members', ':id')); ?>?userId="+userId; url = url.replace(':id', id); $.easyAjax({ url: url, type: "GET", container: '#save-project-data-form', blockUI: true, redirect: true, success: function (data) { $('#selectEmployee').html(data.data); $('#selectEmployee').selectpicker('refresh'); } }) }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/projects/duplicate-project.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia