{{ __('Task Summary') }}
{{ __('Project:') }} {{ $task->project?->name ?? '-' }}
{{ __('Assignee:') }} {{ trim(($task->assignee?->first_name ?? '').' '.($task->assignee?->last_name ?? '')) ?: '-' }}
{{ __('Priority:') }} {{ __(ucfirst($task->priority)) }}
{{ __('Status:') }} {{ __(ucfirst(str_replace('_', ' ', $task->status))) }}
{{ __('Progress:') }} {{ (int) $task->progress_percent }}%
{{ __('Dates:') }} {{ $task->start_date ?? '-' }} to {{ $task->due_date ?? '-' }}
{{ __('Description:') }}
{{ $task->description ?: '-' }}
{{ __('Update Status') }}
@endif{{ __('Comments') }}
@forelse($task->comments as $comment)
@php($name = trim(($comment->employee?->first_name ?? '').' '.($comment->employee?->last_name ?? '')))
@empty
@if(auth()->user()?->hasPermission('task.comment'))
{{ $name !== '' ? $name : 'User' }} - {{ $comment->created_at?->format('Y-m-d H:i') }}
{{ $comment->comment }}
{{ __('No comments yet.') }}
@endforelse
@endif