Assignment chain
@foreach($task->steps as $step)
{{ $step->step_order }}
{{ $step->assignee->name ?? '—' }}
@if($step->is_escalation)
Escalation
@endif
{{ $step->assignee->role->name ?? 'No role' }}
@if($step->can_approve)Approve@endif
@if($step->can_view)View@endif
@if($step->can_edit)Edit@endif
{{ $step->statusLabel() }}
@endforeach
@if($canEscalate)
@endif
Documents
@forelse($task->attachments as $file)
@empty
No documents yet.
@endforelse
History
@forelse($task->logs as $log)
{{ str_replace('_', ' ', ucfirst($log->action)) }}
{{ $log->actor->name ?? 'System' }}
@if($log->toUser) to {{ $log->toUser->name }} @endif
@if($log->comment)
{{ $log->comment }}
@endif
{{ $log->created_at->format('d M Y H:i') }}
@empty
No history yet.
@endforelse
@if($canApprove || $canSendBack || $canResubmit)
@if($canApprove)
@endif
@if($canSendBack)
@endif
@if($canResubmit)
@endif
@elseif(!$canEscalate)
This job is with {{ $task->pendingWithLabel() }}. Approve, reject, and escalate appear here for the person who can act on the current step.
@endif
Comments
@forelse($task->comments as $comment)
{{ $comment->user->name ?? 'User' }}
{{ $comment->body }}
{{ $comment->created_at->format('d M Y H:i') }}
@empty
No comments yet.
@endforelse