@props(['items']) @php $journeyItems = collect($items)->take(8)->reverse()->values(); @endphp @if($journeyItems->isNotEmpty())
{{ __('application_detail.workflow_history.title') }}

{{ __('application_detail.workflow_history.help') }}

{{ trans_choice('application_detail.workflow_history.change_count', $journeyItems->count(), ['count' => $journeyItems->count()]) }}
@foreach($journeyItems as $workflowEvent) @php $changes = collect($workflowEvent['changes'] ?? []); $actor = $workflowEvent['actor'] ?: $workflowEvent['source_label']; $categoryKey = 'admin.timeline.categories.'.($workflowEvent['category'] ?? 'account'); @endphp
{{ __($categoryKey) }} @if($loop->last){{ __('application_detail.workflow_history.latest') }}@endif

{{ $workflowEvent['event_label'] }}

{{ $workflowEvent['summary'] }}

@if($changes->isNotEmpty())
@foreach($changes->take(2) as $change)
{{ $change['label'] }} {{ $change['before'] }} {{ $change['after'] }}
@endforeach
@endif @if(filled($workflowEvent['reason']))

{{ __('application_detail.activity.reason') }}: {{ $workflowEvent['reason'] }}

@endif

{{ __('application_detail.workflow_history.by', ['actor' => $actor]) }}

@endforeach
@else
{{ __('application_detail.empty.workflow_history') }}
@endif