@extends('layouts.admin')
@section('title', 'Timeline — ' . $record->fullName())
@section('content')
@include('institution.partials.flash')
@forelse($workflowLogs ?? [] as $log)
{{ $log->to_status ?? $log->step ?? 'Step' }}
{{ $log->created_at?->format('d M Y H:i') }} · {{ $log->user?->name ?? 'System' }}
@if($log->notes ?? null)
{{ $log->notes }}
@endif
@empty
No workflow events yet.
@endforelse
@forelse($statusChanges ?? [] as $change)
{{ $change->from_status ?? '—' }} → {{ $change->to_status ?? '—' }}
{{ $change->created_at?->format('d M Y H:i') }} · {{ $change->approvedBy?->name ?? 'System' }}
@if($change->reason ?? null)
{{ $change->reason }}
@endif
@empty
No status changes recorded.
@endforelse
@endsection