@php $addTaskCategoryPermission = user()->permission('add_task_category'); $addEmployeePermission = user()->permission('add_employees'); $addTaskFilePermission = user()->permission('add_task_files'); $editTaskPermission = user()->permission('edit_tasks'); $viewProjectPermission = user()->permission('view_projects'); $viewTaskCategoryPermission = user()->permission('view_task_category'); @endphp

@lang('modules.tasks.taskInfo')

@if ($addTaskCategoryPermission == 'all' || $addTaskCategoryPermission == 'added') @endif
due_date)) style="display: none" @endif>
@if ($addEmployeePermission == 'all' || $addEmployeePermission == 'added') @endif
@if(isset($leaveData)) @endif
{!! $task->description !!}

@lang('modules.client.clientOtherDetails')

@if (user()->permission('task_labels') == 'all') @endif
@if ($task->project && count($task->project->incompleteMilestones) > 0) @foreach ($task->project->incompleteMilestones as $milestone) @endforeach @endif
@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)) )
@foreach ($taskboardColumns as $item) @php if ($item->slug == 'completed' || $item->slug == 'incomplete') { if ($item->slug == 'completed') { $icon = "".__('app.' . $item->slug); } elseif($item->slug == 'incomplete'){ $icon = "".__('app.' . $item->slug); } } else { if ($item->slug == 'to_do') { $icon = "".$item->column_name; } elseif($item->slug == 'doing'){ $icon = "".$item->column_name; } else { $icon = "". $item->column_name; } } @endphp @endforeach
@endif
@lang('app.hrs')    @lang('app.mins')
@foreach ($allTasks as $item) @endforeach
@if ($addTaskFilePermission == 'all' || $addTaskFilePermission == 'added')
@endif
@lang('app.save') @lang('app.cancel')