{{ $task->project?->project_code }}

{{ $task->title }}

{{ $task->status->label() }} {{ $task->priority->label() }}
Project
{{ $task->project?->project_name }}
Assignee
{{ $task->assignee?->name ?? 'Unassigned' }}
Due
{{ $task->due_date?->format('d M Y') ?: '—' }}
Hours
{{ number_format($task->hoursLogged(), 1) }}{{ $task->estimated_hours ? ' / '.$task->estimated_hours.' est.' : '' }}
@if ($task->description)

{{ $task->description }}

@endif
@can('updateStatus', $task) @endcan
@can('delete', $task)
@csrf @method('DELETE')
@endcan
Log time
@csrf
Comments
@csrf
@forelse ($task->comments as $comment)
{{ $comment->user?->name }} {{ $comment->created_at?->format('d M H:i') }}
{{ $comment->comment }}
@if ($comment->hasAttachment()) {{ $comment->attachmentName() }} @endif
@empty
No comments yet.
@endforelse
@if ($task->workLogs->isNotEmpty())
Time logged
@foreach ($task->workLogs as $log)
{{ $log->user?->name }} · {{ $log->log_date?->format('d M') }} {{ number_format((float) $log->hours_spent, 1) }}h
{{ $log->work_summary }}
@if ($log->hasBlocker())
Blocker: {{ $log->blocker_notes }}
@endif
@endforeach
@endif