{{ __('Period') }}
@foreach ($rangeChips as $key => $label)
@endforeach
{{-- Window boundaries straight from the payload (from/to), so the
operator always knows exactly what the numbers cover. --}}
{{ __('Total runs') }}
{{ number_format($runsTotal) }}
{{ __('Enrolments in this period') }}
{{ __('Completed') }}
{{ number_format((int) ($totals['completed'] ?? 0)) }}
{{ __('Reached the end of the flow') }}
{{ __('Failed') }}
{{ number_format((int) ($totals['failed'] ?? 0)) }}
{{ __('Stopped with an error') }}
{{ __('Active') }}
{{ number_format((int) ($totals['active'] ?? 0)) }}
{{ __('Still running now') }}
{{ __('Completion rate') }}
{{ $completionRate === null ? '' : number_format((float) $completionRate, 1) }}%
{{ __('Of all runs in this period') }}
{{ __('Avg time to complete') }}
{{ $fmtDuration($avgSeconds) }}
{{ __('Enrolment to completion') }}
@foreach ([['contacts_reached', __('Contacts reached')], ['paused', __('Paused runs')], ['retried_runs', __('Runs retried')], ['retry_attempts', __('Retry attempts')], ['flows_live', __('Live flows')], ['flows_with_runs', __('Flows with runs')], ['flows_total', __('Flows total')]] as [$k, $lbl])
{{ $lbl }}
{{ number_format((int) ($totals[$k] ?? 0)) }}
@endforeach
{{-- ========== TABS ========== --}}
{{ __('Run trend') }}
{{ __('Enrolments, completions, failures') }}
{{ __('Enrolled') }}
{{ __('Completed') }}
{{ __('Failed') }}
@include('user.partials.empty-state', [
'title' => __('No runs in this period'),
'message' => __('Widen the period, or pick a different flow, to see activity here.'),
'class' => 'border-0 shadow-none',
])
{{ __('Outcome mix') }}
{{ __('Run status') }}
@include('user.partials.empty-state', [
'title' => __('Nothing to split yet'),
'message' => __('The status mix appears once at least one run exists in this period.'),
'class' => 'border-0 shadow-none',
])
{{-- ---------- PER-FLOW LEADERBOARD ---------- --}}
{{-- ---------- TOP FAILURE REASONS ---------- --}}
{{-- ===== KEYWORD TRIGGERS — which flow ran on which keyword ===== --}}
{{ __('Per-flow performance') }}
{{ __('Flow leaderboard') }}
{{ __('Select a row to scope this whole page to that flow.') }}
| {{ __('Flow') }} | {{ __('Runs') }} | {{ __('Completed') }} | {{ __('Failed') }} | {{ __('Completion rate') }} |
|---|---|---|---|---|
|
{{ $flowName($row['name'], $row['flow_id']) }}
{{ $stateLabel[$row['state']] ?? $row['state'] }}
|
{{ number_format((int) $row['runs']) }} | {{ number_format((int) $row['completed']) }} | {{ number_format((int) $row['failed']) }} | {{ $row['completion_rate'] === null ? '—' : number_format((float) $row['completion_rate'], 1) . '%' }} |
@include('user.partials.empty-state', [
'title' => __('No flow has run in this period'),
'message' => __('Once a contact enters a flow, its per-flow totals appear here.'),
'class' => 'border-0 shadow-none',
])
{{ __('Why runs fail') }}
{{ __('Top failure reasons') }}
@include('user.partials.empty-state', [
'title' => __('No failures recorded'),
'message' => __('Nothing in this period stopped with an error.'),
'class' => 'border-0 shadow-none',
])
{{ __('Attribution') }}
{{ __('Keyword triggers') }}
{{ __('Which flow each keyword started, and how many times it fired in this period.') }}
| {{ __('Trigger keyword(s)') }} | {{ __('Flow started') }} | {{ __('Fires') }} | {{ __('Last fired') }} |
|---|---|---|---|
| @foreach (array_slice(array_filter(array_map('trim', explode(',', (string) $row['keyword']))), 0, 8) as $kw) {{ $kw }} @endforeach | {{ $row['flow_name'] }} | {{ number_format($row['fires']) }} | {{ $row['last_fired'] ? \Illuminate\Support\Carbon::parse($row['last_fired'])->diffForHumans() : '—' }} |
{{ __('No keyword-triggered flow runs in this period. When a customer types a keyword that starts a flow, it appears here with the flow it launched.') }}
@endif
{{ __('Drop-off') }}
{{ __('Where customers stop replying') }}
{{ __('Active runs waiting at each question right now. A high count — especially “stalled” (no reply for 24h+) — is where the flow is losing people.') }}
| {{ __('Waiting at') }} | @unless ($doScoped){{ __('Flow') }} | @endunless{{ __('Waiting') }} | {{ __('Stalled 24h+') }} | {{ __('Last activity') }} |
|---|---|---|---|---|
| {{ $row['label'] ?: ('#' . $row['node_id']) }} | @unless ($doScoped){{ $row['flow_name'] }} | @endunless{{ number_format($row['waiting']) }} | {{ number_format($row['stalled']) }} | {{ $row['last_at'] ? \Illuminate\Support\Carbon::parse($row['last_at'])->diffForHumans() : '—' }} |
{{ __('No customers are waiting mid-flow right now. When a run pauses at a question and the customer stops replying, it shows here so you can see exactly where the flow drops off.') }}
@endif