@php $flows = $flows ?? collect(); $statusCounts = $statusCounts ?? ['all' => 0, 'live' => 0, 'paused' => 0, 'draft' => 0]; $categoryCounts = $categoryCounts ?? ['all' => 0]; $currentStatus = $currentStatus ?? 'all'; $currentCategory = $currentCategory ?? 'all'; $currentQuery = $currentQuery ?? ''; @endphp
@php $libraryEntries = [ 'all' => ['label' => 'All flows', 'icon' => 'M3 4h10M3 8h10M3 12h6'], 'cart' => ['label' => 'Cart abandonment', 'icon' => 'M3 5h8l1 6H4z'], 'welcome' => [ 'label' => 'Welcome', 'icon' => 'M3 11s2-1 5-1 5 1 5 1M5 6.5h.01M11 6.5h.01M8 9.5s1 .8 0 1.5', ], 'post-purchase' => ['label' => 'Post-purchase', 'icon' => 'M4 13V7l4-4 4 4v6M3 13h10'], 're-engagement' => [ 'label' => 'Re-engagement', 'icon' => 'M11 4H5a3 3 0 0 0 0 6h6a3 3 0 0 1 0 6H5M5 4l-2 2 2 2M11 16l2-2-2-2', ], 'event' => ['label' => 'Special events', 'icon' => 'M2 3h12v11H2zM2 6h12M5 1v3M11 1v3'], 'lead' => [ 'label' => 'Lead nurture', 'icon' => 'M5 6a3 3 0 1 0 0-0.01M2 14c0-3 3-4 6-4s6 1 6 4', ], ]; @endphp
{{ __('Workspace — Bloomly') }}

{{ __('Automated') }} {{ __('flows') }}.

{{ __('Build reusable WhatsApp workflows — triggered by events, branched by replies, and measured end-to-end.') }}

{{ __('Create blank flow') }}
{{ __('Active flows') }}
{{ $statusCounts['live'] }}
{{ __('running now') }}
{{ __('Total flows') }}
{{ $statusCounts['all'] }}
{{ __('in this workspace') }}
{{ __('Drafts') }}
{{ $statusCounts['draft'] }}
{{ __('unpublished') }}
{{ __('Paused') }}
{{ $statusCounts['paused'] }}
{{ __('temporarily off') }}
@foreach (['all' => 'All flows', 'live' => 'Active', 'paused' => 'Paused', 'draft' => 'Drafts'] as $key => $label) @endforeach
@include('user.flows._cards', ['flows' => $flows])
@include('user.partials.pagination', [ 'paginator' => $flows, 'dataAttr' => 'data-fl-page', 'label' => 'flows', ])
{{ __('Help · 01') }}
{{ __('What is an automated workflow?') }}

{{ __('A sequence of messages, waits, and decision branches that starts from a trigger like signup, cart abandonment, or purchase completion.') }}

{{ __('Help · 02') }}
{{ __('How do I optimize my flows?') }}

{{ __('Keep the opening step short, branch by intent early, and measure drop-off at each node so you know where conversion slips.') }}

{{ __('Help · 03') }}
{{ __('Which flows should I launch first?') }}

{{ __('For most stores: welcome → cart recovery → post-purchase review. That covers acquisition, conversion, and retention with minimum overhead.') }}