{{ $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')

@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

@lang('modules.taskShortCode')

{{ ($task->task_short_code) ? $task->task_short_code : '--'}}

@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 --}}
@lang('app.file') @lang('modules.tasks.subTask') @lang('modules.tasks.comment') @lang('app.menu.timeLogs') @if ($task->active_timer_all_count > 0) @endif @lang('app.notes') @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->translatedFormat($company->date_format) }} @else -- @endif

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

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

@php $totalMinutes = $task->timeLogged->sum('total_minutes') - $breakMinutes; $timeLog = \Carbon\CarbonInterval::formatHuman($totalMinutes); @endphp

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

{{ $timeLog }}