@php $addTaskCategoryPermission = user()->permission('add_task_category'); $viewTaskCategoryPermission = user()->permission('view_task_category'); $addEmployeePermission = user()->permission('add_employees'); $addTaskFilePermission = user()->permission('add_task_files'); $addTaskPermission = user()->permission('add_tasks'); @endphp
@include('sections.password-autocomplete-hide')

@lang('modules.tasks.taskInfo')

@if ($addTaskCategoryPermission == 'all' || $addTaskCategoryPermission == 'added') @endif
@if (isset($project) && !is_null($project)) @else @foreach ($projects as $data) @endforeach @endif
{{-- If add task permission is not given to employee but user can create task for itself is enabled from task settings then employee can create task for itself --}} @if ($addTaskPermission == 'all' || (!is_null($project) && $project->project_admin == user()->id))
@if ($addEmployeePermission == 'all' || $addEmployeePermission == 'added') @endif
@elseif ($addTaskPermission == 'added') @endif

@lang('modules.client.clientOtherDetails')

@if (user()->permission('task_labels') == 'all') @endif
@if (user()->permission('change_status') == 'all')
@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($editUser) ? $editUser->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')