@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'); @endphp

@lang('modules.tasks.taskInfo')

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

@lang('modules.client.clientOtherDetails')

@if (user()->permission('task_labels') == 'all') @endif
@if ($task->project && count($task->project->milestones) > 0) @foreach ($task->project->milestones 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) @endforeach
@endif
@lang('app.hrs')    @lang('app.mins')
@foreach ($allTasks as $item) @endforeach
@if ($addTaskFilePermission == 'all' || $addTaskFilePermission == 'added')
@endif
@if (isset($fields) && count($fields) > 0)
@foreach ($fields as $field)
@if ($field->type == 'text') @elseif($field->type == 'password') @elseif($field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio')
@foreach ($field->values as $key => $value) @endforeach
@elseif($field->type == 'select')
{!! Form::select('custom_fields_data[' . $field->name . '_' . $field->id . ']', $field->values, isset($task) ? $task->custom_fields_data['field_' . $field->id] : '', ['class' => 'form-control select-picker']) !!}
@elseif($field->type == 'date') @elseif($field->type == 'checkbox')
@foreach ($field->values as $key => $value) @endforeach
@endif
@endforeach
@endif @lang('app.save') @lang('app.cancel')