{{-- x-workflow-timeline Props: - histories: Collection of RecruitmentStageHistory models (oldest first) - stages: Ordered stage list (default: WorkflowService::stages()) Displays append-only recruitment workflow history. --}} @props([ 'histories' => collect(), 'stages' => null, ]) @php $histories = collect($histories); $stages = $stages ?? \App\Services\WorkflowService::stages(); $reached = $histories->pluck('stage')->unique()->all(); @endphp