@php $editTaskPermission = user()->permission('edit_tasks'); $sendReminderPermission = user()->permission('send_reminder'); $changeStatusPermission = user()->permission('change_status'); @endphp

{{ ucfirst($task->heading) }}

@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)) ) @if ($task->boardColumn->slug != 'completed') @lang('modules.tasks.markComplete') @else @lang('modules.tasks.markIncomplete') @endif @endif @if ($task->boardColumn->slug != 'completed' && !is_null($task->is_task_user)) @if (is_null($task->userActiveTimer)) @lang('modules.timeLogs.startTimer') @elseif (!is_null($task->userActiveTimer)) {{ $task->userActiveTimer->timer }} @if (is_null($task->userActiveTimer->activeBreak)) @lang('modules.timeLogs.pauseTimer') @lang('modules.timeLogs.stopTimer') @else @lang('modules.timeLogs.resumeTimer') @endif @endif @endif

@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 {{ $task->project->project_name }} @else -- @endif

@lang('modules.tasks.priority')

@if ($task->priority == 'high') @elseif ($task->priority == 'medium') @else @endif @lang('app.'.$task->priority)

@lang('modules.tasks.assignTo')

{{--

--}} @if (count($task->users) > 1) @foreach ($task->users as $item)

@endforeach @else @foreach ($task->users as $item) @endforeach @endif {{--

--}}
@if ($task->created_by)

@lang('modules.tasks.assignBy')

{{--

--}} {{--

--}}
@endif

@lang('app.label')

@forelse ($task->labels as $key => $label) {{ $label->label_name }} @empty -- @endforelse

{{-- Custom fields data --}} @if (isset($fields)) @foreach ($fields as $field) @if ($field->type == 'text' || $field->type == 'password' || $field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio') @elseif($field->type == 'checkbox') @elseif($field->type == 'select') @elseif($field->type == 'date') @endif @endforeach @endif
@lang('app.file') @lang('modules.tasks.subTask') @if ($viewTaskCommentPermission != 'none') @lang('modules.tasks.comment') @endif @lang('app.menu.timeLogs') @if ($task->active_timer_all_count > 0) @endif @if ($viewTaskNotePermission != 'none') @lang('app.notes') @endif @lang('modules.tasks.history')

{{ $task->boardColumn->slug == 'completed' || $task->boardColumn->slug == 'incomplete' ? __('app.' . $task->boardColumn->slug) : $task->boardColumn->column_name }}

@if ($task->is_private || $pin)
@if ($task->is_private) @lang('app.private')  @endif @if ($pin) @lang('app.pinned') @endif
@endif

{{ __('app.startDate') }}

@if(!is_null($task->start_date)) {{ $task->start_date->format($global->date_format) }} @else -- @endif

{{ __('app.dueDate') }}

@if(!is_null($task->due_date)) {{ $task->due_date->format($global->date_format) }} @else -- @endif

@php $totalMinutes = $task->timeLogged->sum('total_minutes') - $breakMinutes; $timeLog = intdiv($totalMinutes, 60) . ' ' . __('app.hrs') . ' '; if ($totalMinutes % 60 > 0) { $timeLog .= $totalMinutes % 60 . ' ' . __('app.mins'); } @endphp

{{ __('modules.employees.hoursLogged') }}

{{ $timeLog }}