@if (($taskSettings->project == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@lang('app.project')
@if ($task->project_id)
@if ($task->project->status == 'in progress')
@elseif ($task->project->status == 'on hold')
@elseif ($task->project->status == 'not started')
@elseif ($task->project->status == 'canceled')
@elseif ($task->project->status == 'finished')
@endif
@if ($viewProjectPermission == 'all'
|| ($viewProjectPermission == 'added' && $task->project->added_by == user()->id)
|| ($viewProjectPermission == 'owned' && user()->id == $task->project->client_id && in_array('client', user_roles()))
|| ($viewProjectPermission == 'both' && (user()->id == $task->project->client_id || user()->id == $task->added_by))
)
{{ $task->project->project_name }}
@else
{{ $task->project->project_name }}
@endif
@else
--
@endif
@endif
@if (($taskSettings->priority == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()) )
@lang('modules.tasks.priority')
@if ($task->priority == 'high')
@elseif ($task->priority == 'medium')
@else
@endif
@lang('app.'.$task->priority)
@endif
@if (($taskSettings->assigned_to == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@lang('modules.tasks.assignTo')
@if (count($task->users) > 0)
@if (count($task->users) > 1)
@foreach ($task->users as $item)
@endforeach
@else
@foreach ($task->users as $item)
@endforeach
@endif
@else
--
@endif
@endif
@lang('modules.taskShortCode')
{{ ($task->task_short_code) ? $task->task_short_code : '--' }}
@if (($taskSettings->assigned_by == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@if ($task->created_by)
@lang('modules.tasks.assignBy')
{{--
--}}
{{--
--}}
@endif
@endif
@if (($taskSettings->label == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@lang('app.label')
@forelse ($task->labels as $key => $label)
{{ $label->label_name }}
@if ($label->description)
@endif
@empty
--
@endforelse
@endif
@if (in_array('gitlab', user_modules()) && isset($gitlabIssue))
GitLab
{{ $gitlabIssue['state'] }}
@endif
@if (($taskSettings->task_category == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@endif
@if (($taskSettings->description == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@endif
{{-- Custom fields data --}}
@if (($taskSettings->custom_fields == 'yes' && in_array('client', user_roles())) || in_array('admin', user_roles()) || in_array('employee', user_roles()))
@endif