{{-- Header --}}

{{ __('Execution Log') }}

{{ $workflowName }}

{{-- Summary stats --}}

{{ __('Total') }}

{{ number_format($totalExecutions) }}

{{ __('Completed') }}

{{ number_format($completedCount) }}

{{ __('Failed') }}

{{ number_format($failedCount) }}

{{ __('Running') }}

{{ number_format($runningCount) }}

{{-- Filter --}}
{{ __('Filter:') }} @foreach(['all' => __('All'), 'completed' => __('Completed'), 'failed' => __('Failed'), 'running' => __('Running'), 'waiting' => __('Waiting')] as $key => $label) @endforeach
{{-- Executions Table --}}
@forelse($executions as $execution) {{-- Expanded step logs --}} @if($expandedExecutionId === $execution->id) @endif @empty @endforelse
{{ __('Contact') }} {{ __('Status') }}

{{ $execution->contact?->full_name ?? __('System') }}

{{ $execution->contact?->email ?? '--' }}

@php $statusColors = [ 'running' => 'bg-info/15 text-info', 'completed' => 'bg-success/15 text-success', 'failed' => 'bg-danger/15 text-danger', 'waiting' => 'bg-warning/15 text-warning', 'canceled' => 'bg-surface text-muted ', ]; @endphp {{ ucfirst($execution->status) }}

{{ __('Step-by-Step Log') }}

@forelse($stepLogs as $log)
{{-- Status icon --}}
@if($log->status === 'success') @elseif($log->status === 'failed') @elseif($log->status === 'waiting') @else @endif

{{ ucfirst($log->node?->type ?? 'unknown') }}: {{ str_replace('_', ' ', ucfirst($log->node?->subtype ?? 'unknown')) }}

@if($log->duration_ms){{ $log->duration_ms }}ms @endif
@if($log->error_message)

{{ $log->error_message }}

@endif

{{ $log->executed_at?->format('M j, g:i:s A') ?? __('Pending') }}

@empty

{{ __('No step logs recorded yet.') }}

@endforelse
{{ __('No executions found.') }}
@if($executions->hasPages())
{{ $executions->links() }}
@endif