ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/57a480a1466da8a4b9d8bc3f25588af9.php |
<?php $addTaskCategoryPermission = user()->permission('add_task_category'); $addEmployeePermission = user()->permission('add_employees'); $addTaskFilePermission = user()->permission('add_task_files'); $editTaskPermission = user()->permission('edit_tasks'); $viewTaskCategoryPermission = user()->permission('view_task_category'); ?> <link rel="stylesheet" href="<?php echo e(asset('vendor/css/dropzone.min.css')); ?>"> <div class="row"> <div class="col-sm-12"> <?php if (isset($component)) { $__componentOriginal18ad2e0d264f9740dc73fff715357c28 = $component; } ?> <?php $component = App\View\Components\Form::resolve(['method' => 'PUT'] + (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' => 'save-task-data-form']); ?> <div class="add-client bg-white rounded"> <h4 class="mb-0 p-20 f-21 font-weight-normal text-capitalize border-bottom-grey"> <?php echo app('translator')->get('modules.tasks.taskInfo'); ?></h4> <div class="row p-20"> <div class="col-lg-6 col-md-6"> <?php if (isset($component)) { $__componentOriginal4e45e801405ab67097982370a6a83cba = $component; } ?> <?php $component = App\View\Components\Forms\Text::resolve(['fieldLabel' => __('app.title'),'fieldName' => 'heading','fieldRequired' => 'true','fieldId' => 'heading','fieldPlaceholder' => __('placeholders.task'),'fieldValue' => $task->heading] + (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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $component = $__componentOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__componentOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-6"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'category_id','fieldLabel' => __('modules.tasks.taskCategory')] + (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($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?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 select-picker" name="category_id" id="task_category_id" data-live-search="true" data-size="8"> <option value="">--</option> <?php if($viewTaskCategoryPermission == 'all' || $viewTaskCategoryPermission == 'added'): ?> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php if($task->task_category_id == $category->id): ?> selected <?php endif; ?> value="<?php echo e($category->id); ?>"> <?php echo e(mb_ucwords($category->category_name)); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <?php if($addTaskCategoryPermission == 'all' || $addTaskCategoryPermission == 'added'): ?> <?php $__env->slot('append', null, []); ?> <button id="create_task_category" type="button" class="btn btn-outline-secondary border-grey" data-toggle="tooltip" data-original-title="<?php echo e(__('modules.taskCategory.addTaskCategory')); ?>"><?php echo app('translator')->get('app.add'); ?></button> <?php $__env->endSlot(); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> <div class="col-md-12 col-lg-6"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'project-id','fieldLabel' => __('app.project')] + (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($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?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 select-picker" name="project_id" id="project-id" data-live-search="true" data-size="8"> <option value="">--</option> <?php $__currentLoopData = $projects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php if($project->id == $task->project_id): ?> selected <?php endif; ?> value="<?php echo e($project->id); ?>"> <?php echo e(mb_ucwords($project->project_name)); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> <div class="col-md-4 col-lg-6 pt-5" id='clientDetails' > </div> <div class="col-md-5 col-lg-4"> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'task_start_date','fieldRequired' => 'true','fieldLabel' => __('modules.projects.startDate'),'fieldName' => 'start_date','fieldValue' => (($task->start_date) ? $task->start_date->format(company()->date_format) : ''),'fieldPlaceholder' => __('placeholders.date')] + (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($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> <div class="col-md-5 col-lg-4 dueDateBox" <?php if(is_null($task->due_date)): ?> style="display: none" <?php endif; ?>> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'due_date','fieldRequired' => 'true','fieldLabel' => __('app.dueDate'),'fieldName' => 'due_date','fieldPlaceholder' => __('placeholders.date'),'fieldValue' => (($task->due_date) ? $task->due_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($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> <div class="col-md-2 col-lg-2 pt-5"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => is_null($task->due_date),'fieldLabel' => __('app.withoutDueDate'),'fieldName' => 'without_duedate','fieldId' => 'without_duedate','fieldValue' => 'yes'] + (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(['class' => 'mr-0 mr-lg-2 mr-md-2']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="col-md-12 col-lg-12"> </div> <div class="col-md-12 col-lg-6"> <div class="form-group my-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'selectAssignee','fieldLabel' => __('modules.tasks.assignTo')] + (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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?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="selectAssignee" data-live-search="true" data-size="8"> <?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $employee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $selected = ''; ?> <?php $__currentLoopData = $task->users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($item->id == $employee->id): ?> <?php $selected = 'selected'; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal6c7097547485b98631a37d273a171e9f = $component; } ?> <?php $component = App\View\Components\UserOption::resolve(['user' => $employee,'pill' => true,'selected' => $selected] + (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($__componentOriginal6c7097547485b98631a37d273a171e9f)): ?> <?php $component = $__componentOriginal6c7097547485b98631a37d273a171e9f; ?> <?php unset($__componentOriginal6c7097547485b98631a37d273a171e9f); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($addEmployeePermission == 'all' || $addEmployeePermission == 'added'): ?> <?php $__env->slot('append', null, []); ?> <button id="add-employee" type="button" class="btn btn-outline-secondary border-grey" data-toggle="tooltip" data-original-title="<?php echo e(__('modules.employees.addNewEmployee')); ?>"><?php echo app('translator')->get('app.add'); ?></button> <?php $__env->endSlot(); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> </div> <div class="col-md-12 show-leave"> <?php if(isset($leaveData)): ?> <label id="leave-date"> <?php echo e(__("modules.tasks.leaveMessage")); ?> <i class="fa fa-question-circle" title="<?php echo e($leaveData); ?>" id="leave-tooltip"></i></label> <?php endif; ?> </div> <div class="col-md-12"> <div class="form-group my-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'description','fieldLabel' => __('app.description')] + (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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div id="description"><?php echo $task->description; ?></div> <textarea name="description" id="description-text" class="d-none"></textarea> </div> </div> </div> <h4 class="mb-0 p-20 f-21 font-weight-normal text-capitalize border-top-grey"> <?php echo app('translator')->get('modules.client.clientOtherDetails'); ?> </h4> <div class="row p-20"> <div class="col-sm-12"> <div class="row"> <div class="col-md-12 col-lg-4"> <div class="form-group my-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'task_labels','fieldLabel' => __('app.label')] + (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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?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="select-picker form-control" multiple name="task_labels[]" id="task_labels" data-live-search="true" data-size="8"> <?php $__currentLoopData = $taskLabels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $selected = ''; ?> <?php $__currentLoopData = $task->label; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($item->label_id == $label->id): ?> <?php $selected = 'selected'; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <option <?php echo e($selected); ?> data-content="<span class='badge badge-secondary' style='background-color: <?php echo e($label->label_color); ?>'><?php echo e($label->label_name); ?></span>" value="<?php echo e($label->id); ?>"><?php echo e($label->label_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if(user()->permission('task_labels') == 'all'): ?> <?php $__env->slot('append', null, []); ?> <button id="createTaskLabel" type="button" class="btn btn-outline-secondary border-grey" data-toggle="tooltip" data-original-title="<?php echo e(__('modules.taskLabel.addLabel')); ?>"><?php echo app('translator')->get('app.add'); ?></button> <?php $__env->endSlot(); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> </div> <div class="col-md-12 col-lg-4"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldName' => 'milestone_id','fieldId' => 'milestone-id','fieldLabel' => __('modules.projects.milestones')] + (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 if($task->project && count($task->project->milestones) > 0): ?> <?php $__currentLoopData = $task->project->milestones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $milestone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php if($milestone->id == $task->milestone_id): ?> selected <?php endif; ?> value="<?php echo e($milestone->id); ?>"> <?php echo e($milestone->milestone_title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> <?php if($changeStatusPermission == 'all' || ($changeStatusPermission == 'added' && $task->added_by == user()->id) || ($changeStatusPermission == 'owned' && in_array(user()->id, $taskUsers)) || ($changeStatusPermission == 'both' && (in_array(user()->id, $taskUsers) || $task->added_by == user()->id)) ): ?> <div class="col-lg-3 col-md-6"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldId' => 'board_column_id','fieldLabel' => __('app.status'),'fieldName' => 'board_column_id','search' => 'true'] + (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([]); ?> <?php $__currentLoopData = $taskboardColumns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if ($item->slug == 'completed' || $item->slug == 'incomplete') { if ($item->slug == 'completed') { $icon = "<i class='fa fa-circle mr-2 text-dark-green'></i>".__('app.' . $item->slug); } elseif($item->slug == 'incomplete'){ $icon = "<i class='fa fa-circle mr-2 text-red'></i>".__('app.' . $item->slug); } } else { if ($item->slug == 'to_do') { $icon = "<i class='fa fa-circle mr-2 text-yellow'></i>".$item->column_name; } elseif($item->slug == 'doing'){ $icon = "<i class='fa fa-circle mr-2 text-blue'></i>".$item->column_name; } else { $icon = "<i class='fa fa-circle mr-2 text-black'></i>". $item->column_name; } } ?> <option <?php if($task->board_column_id == $item->id): ?> selected <?php endif; ?> value="<?php echo e($item->id); ?>" data-content = "<?php echo e($icon); ?>"> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> <?php endif; ?> <div class="col-lg-3 col-md-6"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldId' => 'priority','fieldLabel' => __('modules.tasks.priority'),'fieldName' => 'priority'] + (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 <?php if($task->priority == 'high'): ?> selected <?php endif; ?> data-content="<i class='fa fa-circle mr-2' style='color: #dd0000'></i> <?php echo app('translator')->get('modules.tasks.high'); ?>" value="high"><?php echo app('translator')->get('modules.tasks.high'); ?></option> <option <?php if($task->priority == 'medium'): ?> selected <?php endif; ?> data-content="<i class='fa fa-circle mr-2' style='color: #ffc202'></i> <?php echo app('translator')->get('modules.tasks.medium'); ?>" value="medium"> <?php echo app('translator')->get('modules.tasks.medium'); ?></option> <option <?php if($task->priority == 'low'): ?> selected <?php endif; ?> data-content="<i class='fa fa-circle mr-2' style='color: #0a8a1f'></i> <?php echo app('translator')->get('modules.tasks.low'); ?>" value="low"><?php echo app('translator')->get('modules.tasks.low'); ?></option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="form-group"> <div class="d-flex mt-5"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('modules.tasks.makePrivate'),'fieldName' => 'is_private','fieldId' => 'is_private','popover' => __('modules.tasks.privateInfo'),'checked' => $task->is_private] + (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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="form-group"> <div class="d-flex mt-5"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('modules.tasks.billable'),'fieldName' => 'billable','fieldId' => 'billable','popover' => __('modules.tasks.billableInfo'),'checked' => $task->billable] + (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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="form-group"> <div class="d-flex mt-5"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('modules.tasks.setTimeEstimate'),'fieldName' => 'set_time_estimate','fieldId' => 'set_time_estimate','checked' => ($task->estimate_hours > 0 || $task->estimate_minutes > 0)] + (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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> </div> <div class="col-md-6 col-lg-3 <?php echo e($task->estimate_hours == 0 && $task->estimate_minutes == 0 ? 'd-none' : ''); ?>" id="set-time-estimate-fields"> <div class="form-group mt-5"> <input type="number" min="0" class="w-25 border rounded p-2 height-35 f-14" name="estimate_hours" value="<?php echo e($task->estimate_hours); ?>"> <?php echo app('translator')->get('app.hrs'); ?> <input type="number" min="0" name="estimate_minutes" value="<?php echo e($task->estimate_minutes); ?>" class="w-25 height-35 f-14 border rounded p-2"> <?php echo app('translator')->get('app.mins'); ?> </div> </div> <div class="col-md-6"> <div class="form-group my-3"> <div class="d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('modules.events.repeat'),'fieldName' => 'repeat','checked' => $task->repeat,'fieldId' => 'repeat-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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <div class="form-group my-3 <?php echo e($task->repeat ? '' : 'd-none'); ?>" id="repeat-fields"> <div class="row"> <div class="col-md-6 mt-3"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'repeatEvery','fieldRequired' => 'true','fieldLabel' => __('modules.events.repeatEvery')] + (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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?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([]); ?> <input type="number" min="1" value="<?php echo e($task->repeat_count); ?>" name="repeat_count" class="form-control f-14"> <?php $__env->slot('append', null, []); ?> <select name="repeat_type" class="select-picker form-control"> <option <?php if($task->repeat_type == 'day'): ?> selected <?php endif; ?> value="day"> <?php echo app('translator')->get('app.day'); ?></option> <option <?php if($task->repeat_type == 'week'): ?> selected <?php endif; ?> value="week"> <?php echo app('translator')->get('app.week'); ?></option> <option <?php if($task->repeat_type == 'month'): ?> selected <?php endif; ?> value="month"> <?php echo app('translator')->get('app.month'); ?></option> <option <?php if($task->repeat_type == 'year'): ?> selected <?php endif; ?> value="year"> <?php echo app('translator')->get('app.year'); ?></option> </select> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> <div class="col-md-6"> <?php if (isset($component)) { $__componentOriginal1fded940a0a5d34bf1b88a1f45916593 = $component; } ?> <?php $component = App\View\Components\Forms\Number::resolve(['fieldLabel' => __('modules.events.cycles'),'fieldName' => 'repeat_cycles','fieldRequired' => 'true','fieldValue' => $task->repeat_cycles,'minValue' => '1','fieldId' => 'repeat_cycles','fieldPlaceholder' => __('modules.tasks.cyclesToolTip'),'popover' => __('modules.tasks.cyclesToolTip')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.number'); ?> <?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\Number::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($__componentOriginal1fded940a0a5d34bf1b88a1f45916593)): ?> <?php $component = $__componentOriginal1fded940a0a5d34bf1b88a1f45916593; ?> <?php unset($__componentOriginal1fded940a0a5d34bf1b88a1f45916593); ?> <?php endif; ?> </div> </div> </div> </div> <div class="col-md-6"> <div class="form-group my-3"> <div class="d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('modules.tasks.dependent'),'fieldName' => 'dependent','fieldId' => 'dependent-task','checked' => $task->dependent_task_id] + (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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <div class="<?php echo e(!$task->dependent_task_id ? 'd-none' : ''); ?>" id="dependent-fields"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldId' => 'dependent_task_id','fieldLabel' => __('modules.tasks.dependentTask'),'fieldName' => 'dependent_task_id','search' => 'true'] + (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 = $allTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php if($item->id == $task->dependent_task_id): ?> selected <?php endif; ?> value="<?php echo e($item->id); ?>"> <?php echo e($item->heading); ?> (<?php echo app('translator')->get('app.dueDate'); ?>: <?php if(!is_null($item->due_date)): ?> <?php echo e($item->due_date->translatedFormat(company()->date_format)); ?>) <?php endif; ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> </div> <input type = "hidden" name = "mention_user_ids" id = "mentionUserId" class ="mention_user_ids"> <?php if($addTaskFilePermission == 'all' || $addTaskFilePermission == 'added'): ?> <div class="col-lg-12"> <?php if (isset($component)) { $__componentOriginal22e84ee8172e1045de536542f4ffc9a0 = $component; } ?> <?php $component = App\View\Components\Forms\FileMultiple::resolve(['fieldLabel' => __('app.menu.addFile'),'fieldName' => 'file','fieldId' => 'task-files-upload-dropzone'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.file-multiple'); ?> <?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\FileMultiple::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($__componentOriginal22e84ee8172e1045de536542f4ffc9a0)): ?> <?php $component = $__componentOriginal22e84ee8172e1045de536542f4ffc9a0; ?> <?php unset($__componentOriginal22e84ee8172e1045de536542f4ffc9a0); ?> <?php endif; ?> <input type="hidden" name="image_url" id="image_url"> </div> <input type="hidden" name="addedFiles" id="addedFiles"> <?php endif; ?> </div> <?php if (isset($component)) { $__componentOriginalfa1d9407bf58c9650823154ec52dea3e = $component; } ?> <?php $component = App\View\Components\Forms\CustomField::resolve(['fields' => $fields,'model' => $task] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.custom-field'); ?> <?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\CustomField::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($__componentOriginalfa1d9407bf58c9650823154ec52dea3e)): ?> <?php $component = $__componentOriginalfa1d9407bf58c9650823154ec52dea3e; ?> <?php unset($__componentOriginalfa1d9407bf58c9650823154ec52dea3e); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalb19caa501eea72410c04d1917a586963 = $component; } ?> <?php $component = App\View\Components\FormActions::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form-actions'); ?> <?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\FormActions::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?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-task-form','class' => 'mr-3']); ?><?php echo app('translator')->get('app.save'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc35c79ed7e812580313ad04118477974 = $component; } ?> <?php $component = App\View\Components\Forms\ButtonCancel::resolve(['link' => route('tasks.index')] + (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(['class' => 'border-0']); ?><?php echo app('translator')->get('app.cancel'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc35c79ed7e812580313ad04118477974)): ?> <?php $component = $__componentOriginalc35c79ed7e812580313ad04118477974; ?> <?php unset($__componentOriginalc35c79ed7e812580313ad04118477974); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalb19caa501eea72410c04d1917a586963)): ?> <?php $component = $__componentOriginalb19caa501eea72410c04d1917a586963; ?> <?php unset($__componentOriginalb19caa501eea72410c04d1917a586963); ?> <?php endif; ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $component = $__componentOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__componentOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> </div> </div> <script src="<?php echo e(asset('vendor/jquery/dropzone.min.js')); ?>"></script> <script> var add_task_files = "<?php echo e($addTaskFilePermission); ?>"; $(document).ready(function() { let projectId = document.getElementById('project-id').value; (projectId != 'all' && projectId != '') ? projectClient(projectId) : ''; $(".select-picker").selectpicker(); $('.custom-date-picker').each(function(ind, el) { datepicker(el, { position: 'bl', ...datepickerConfig }); }); $(document).on('change', '#project-id', function () { ($(this).val() != '') ? $('#clientDetails').show() : $('#clientDetails').hide(); let id = $(this).val(); if (id === '') { return ''; } projectClient(id); }); function projectClient(id) { let url = "<?php echo e(route('tasks.clientDetail')); ?>"; $.easyAjax({ url: url, type: "GET", data: { id: id, }, success: function (response) { $('#clientDetails').html(response.data); } }); } if (add_task_files == "all" || add_task_files == "added") { Dropzone.autoDiscover = false; //Dropzone class taskDropzone = new Dropzone("div#task-files-upload-dropzone", { dictDefaultMessage: "<?php echo e(__('app.dragDrop')); ?>", url: "<?php echo e(route('task-files.store')); ?>", headers: { 'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>' }, paramName: "file", maxFilesize: DROPZONE_MAX_FILESIZE, maxFiles: DROPZONE_MAX_FILES, autoProcessQueue: false, uploadMultiple: true, addRemoveLinks: true, parallelUploads: DROPZONE_MAX_FILES, acceptedFiles: DROPZONE_FILE_ALLOW, init: function() { taskDropzone = this; } }); taskDropzone.on('sending', function(file, xhr, formData) { var ids = "<?php echo e($task->id); ?>"; formData.append('task_id', ids); $.easyBlockUI(); }); taskDropzone.on('uploadprogress', function() { $.easyBlockUI(); }); taskDropzone.on('queuecomplete', function() { var msgs = "<?php echo app('translator')->get('messages.recordSaved'); ?>"; window.location.href = "<?php echo e(route('tasks.index')); ?>" }); taskDropzone.on('removedfile', function () { var grp = $('div#file-upload-dropzone').closest(".form-group"); var label = $('div#file-upload-box').siblings("label"); $(grp).removeClass("has-error"); $(label).removeClass("is-invalid"); }); taskDropzone.on('error', function (file, message) { taskDropzone.removeFile(file); var grp = $('div#file-upload-dropzone').closest(".form-group"); var label = $('div#file-upload-box').siblings("label"); $(grp).find(".help-block").remove(); var helpBlockContainer = $(grp); if (helpBlockContainer.length == 0) { helpBlockContainer = $(grp); } helpBlockContainer.append('<div class="help-block invalid-feedback">' + message + '</div>'); $(grp).addClass("has-error"); $(label).addClass("is-invalid"); }); } $("#selectAssignee").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')); ?> "; } }); const atValues = <?php echo json_encode($userData, 15, 512) ?>; quillMention(atValues, '#description'); const dp1 = datepicker('#task_start_date', { position: 'bl', dateSelected: new Date("<?php echo e($task->start_date ? str_replace('-', '/', $task->start_date) : str_replace('-', '/', now())); ?>"), onSelect: (instance, date) => { if (typeof dp2.dateSelected !== 'undefined' && dp2.dateSelected.getTime() < date .getTime()) { dp2.setDate(date, true) } if (typeof dp2.dateSelected === 'undefined') { dp2.setDate(date, true) } dp2.setMin(date); var dueDate = $('#due_date').val(); var startDate = $('#task_start_date').val(); var userId = $('#selectAssignee').val(); $.easyAjax({ url:"<?php echo e(route('tasks.checkLeaves')); ?>", type:'GET', data:{due_date:dueDate, start_date:startDate, user_id:userId}, success:function(response) { $('.show-leave').removeClass('d-none'); var rData = []; var leaveData = []; rData = response.data; $.each(rData, function(index, value) { var data = ''; data = index + " <?php echo e(__('modules.tasks.leaveOn')); ?> " + value + "\n"; leaveData.push(data); var label = '<label id="leave-date"> <?php echo e(__("modules.tasks.leaveMessage")); ?> <i class="fa fa-question-circle" title="'+leaveData+'" id="leave-tooltip"></i></label>' $(".show-leave").html(label); }); } }); }, ...datepickerConfig }); const dp2 = datepicker('#due_date', { position: 'bl', dateSelected: new Date("<?php echo e($task->due_date ? str_replace('-', '/', $task->due_date) : str_replace('-', '/', now())); ?>"), onSelect: (instance, date) => { dp1.setMax(date); var dueDate = $('#due_date').val(); var startDate = $('#task_start_date').val(); var userId = $('#selectAssignee').val(); $.easyAjax({ url:"<?php echo e(route('tasks.checkLeaves')); ?>", type:'GET', data:{start_date:startDate, due_date:dueDate, user_id:userId}, success:function(response) { $('.show-leave').removeClass('d-none'); var rData = []; var leaveData = []; rData = response.data; $.each(rData, function(index, value) { var data = ''; data = index + " <?php echo e(__('modules.tasks.leaveOn')); ?> " + value + "\n"; leaveData.push(data); var label = '<label id="leave-date"> <?php echo e(__("modules.tasks.leaveMessage")); ?> <i class="fa fa-question-circle" title="'+leaveData+'" id="leave-tooltip"></i></label>' $(".show-leave").html(label); }); } }); }, ...datepickerConfig }); $('#selectAssignee').change(function(){ var dueDate = $('#due_date').val(); var startDate = $('#task_start_date').val(); var userId = $('#selectAssignee').val(); $.easyAjax({ url:"<?php echo e(route('tasks.checkLeaves')); ?>", type:'GET', data:{start_date:startDate, due_date:dueDate, user_id:userId}, success:function(response) { $('.show-leave').removeClass('d-none'); var rData = []; var leaveData = []; rData = response.data; $.each(rData, function(index, value) { var data = ''; data = index + " <?php echo e(__('modules.tasks.leaveOn')); ?> " + value + "\n"; leaveData.push(data); var label = '<label id="leave-date"> <?php echo e(__("modules.tasks.leaveMessage")); ?> <i class="fa fa-question-circle" title="'+leaveData+'" id="leave-tooltip"></i></label>' $(".show-leave").html(label); }); } }); }) $('#save-task-form').click(function() { var note = document.getElementById('description').children[0].innerHTML; document.getElementById('description-text').value = note; var usesr = $('#description span[data-id]').map(function(){ return $(this).attr('data-id') }).get(); var mention_user_id = $.makeArray(usesr); $('#mentionUserId').val(mention_user_id.join(',')); var taskData = $('#save-task-data-form').serialize(); var data = taskData+='&mention_user_id=' + mention_user_id; const url = "<?php echo e(route('tasks.update', $task->id)); ?>"; $.easyAjax({ url: url, container: '#save-task-data-form', type: "POST", disableButton: true, blockUI: true, file: true, buttonSelector: "#save-task-form", data: data, success: function(response) { if ((add_task_files == "all" || add_task_files == "added") && taskDropzone.getQueuedFiles().length > 0) { taskDropzone.processQueue(); } else if ($(RIGHT_MODAL).hasClass('in')) { document.getElementById('close-task-detail').click(); if ($('#allTasks-table').length) { window.LaravelDataTables["allTasks-table"].draw(false); } else { window.location.href = response.redirectUrl; } } else { window.location.href = response.redirectUrl; } } }); }); $('#create_task_category').click(function() { const url = "<?php echo e(route('taskCategory.create')); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('#department-setting').click(function() { const url = "<?php echo e(route('departments.create')); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('#client_view_task').change(function() { $('#clientNotification').toggleClass('d-none'); }); $('#without_duedate').click(function() { $('.dueDateBox').toggle(); }); $('#set_time_estimate').change(function() { $('#set-time-estimate-fields').toggleClass('d-none'); }); $('#repeat-task').change(function() { $('#repeat-fields').toggleClass('d-none'); }); $('#dependent-task').change(function() { $('#dependent-fields').toggleClass('d-none'); }); $('#project-id').change(function() { var id = $(this).val(); if (id == '') { id = 0; } var url = "<?php echo e(route('milestones.by_project', ':id')); ?>"; url = url.replace(':id', id); $.easyAjax({ url: url, container: '#save-task-data-form', type: "GET", blockUI: true, success: function(response) { if (response.status == 'success') { $('#milestone-id').html(response.data); $('#milestone-id').selectpicker('refresh'); } } }); }); $('#project-id').change(function() { let id = $(this).val(); if (id === '') { id = 0; } let url = "<?php echo e(route('projects.members', ':id')); ?>"; url = url.replace(':id', id); $.easyAjax({ url: url, type: "GET", container: '#save-task-data-form', blockUI: true, redirect: true, success: function (data) { $('#selectAssignee').html(data.data); $('.projectId').text(data.unique_id); $('#selectAssignee').selectpicker('refresh'); } }) }); $('#project-id').change(function() { let id = $(this).val(); if (id === '') { id = 0; } let url = "<?php echo e(route('tasks.project_tasks', ':id')); ?>"; url = url.replace(':id', id); $.easyAjax({ url: url, type: "GET", container: '#save-task-data-form', blockUI: true, redirect: true, success: function (data) { $('#dependent_task_id').html(data.data); $('.projectId').text(data.unique_id); $('#dependent_task_id').selectpicker('refresh'); } }) }); $('#save-task-data-form').on('change', '#project_id', function () { let id = $(this).val(); if (id === '') { id = 0; } let url = "<?php echo e(route('projects.labels', ':id')); ?>"; url = url.replace(':id', id); $.easyAjax({ url: url, type: "GET", container: '#save-task-data-form', blockUI: true, redirect: true, success: function (data) { var atValues = data.userData; destory_editor('#description') quillMention(atValues, '#description'); $('#task_labels').html(data.data); $('#task_labels').selectpicker('refresh'); } }) }); $('#createTaskLabel').click(function() { const url = "<?php echo e(route('task-label.create')); ?>?task_id=<?php echo e($task->id); ?>"; $(MODAL_XL + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_XL, url); }); $('#add-project').click(function() { $(MODAL_XL).modal('show'); const url = "<?php echo e(route('projects.create')); ?>"; $.easyAjax({ url: url, blockUI: true, container: MODAL_XL, success: function(response) { if (response.status == "success") { $(MODAL_XL + ' .modal-body').html(response.html); $(MODAL_XL + ' .modal-title').html(response.title); init(MODAL_XL); } } }); }); $('#add-employee').click(function() { $(MODAL_XL).modal('show'); const url = "<?php echo e(route('employees.create')); ?>"; $.easyAjax({ url: url, blockUI: true, container: MODAL_XL, success: function(response) { if (response.status == "success") { $(MODAL_XL + ' .modal-body').html(response.html); $(MODAL_XL + ' .modal-title').html(response.title); init(MODAL_XL); } } }); }); <?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.custom-field-filejs','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.custom-field-filejs'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::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($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?> <?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?> <?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?> <?php endif; ?> init(RIGHT_MODAL); }); function checkboxChange(parentClass, id){ var checkedData = ''; $('.'+parentClass).find("input[type= 'checkbox']:checked").each(function () { checkedData = (checkedData !== '') ? checkedData+', '+$(this).val() : $(this).val(); }); $('#'+id).val(checkedData); } </script> <?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/tasks/ajax/edit.blade.php ENDPATH**/ ?>