{{ $task->heading }}

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

@foreach ($task->users as $item)

@endforeach

@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 == 'select') @elseif($field->type == 'date') @endif @endforeach @endif
@lang('app.file') @lang('modules.tasks.subTask') @lang('modules.tasks.history')

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

{{ __('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 }}