@php $history = $history ?? []; $recent = $recent ?? collect(); // Quick chips above the composer (always visible). $suggestions = [ __('Show my open deals'), __('Revenue report this month'), __('List my tasks'), __("What's outstanding?"), ]; // Rich, categorised examples for the empty state — showcase the range so a // new user immediately sees the copilot can find, create, send + report. $exampleGroups = [ [ 'label' => __('Look things up'), 'tint' => 'bg-[#E0F2FE] text-[#0369A1]', 'items' => [__('Show my open deals'), __("What's outstanding?"), __('Find the contact Priya')], ], [ 'label' => __('Create & do'), 'tint' => 'bg-wa-mint text-wa-deep', 'items' => [__('Create a deal for Acme worth 50000 in proposal stage'), __('Create an estimate for Priya: 2 hours consulting at 80'), __('Start a project for the Acme website, due next Friday')], ], [ 'label' => __('Money & reports'), 'tint' => 'bg-[#FEF3C7] text-[#B45309]', 'items' => [__('Revenue report this month'), __('Record a payment of 5000 for invoice INV-0007')], ], [ 'label' => __('Send & summarise'), 'tint' => 'bg-[#EDE9FE] text-[#6D28D9]', 'items' => [__('Send Priya the menu photography estimate'), __('Generate a client brief for Acme')], ], ]; @endphp
{{-- Header --}}
{{ __('AI · CRM Copilot') }}

{{ __('AI CRM') }} {{ __('copilot') }}

{{ __('Chat to run your CRM — find and create contacts and deals, move stages, and get sales numbers. Changes ask you to confirm first.') }}

{{-- Chat column --}}
@if (empty($history))

{{ __('Run your CRM by chat') }}

{{ __('Tap an example to try it — I find, create, send and report across your CRM. I ask before changing anything.') }}

@foreach ($exampleGroups as $group)
{{ $group['label'] }}
@foreach ($group['items'] as $ex) @endforeach
@endforeach
@else @foreach ($history as $turn)
{{ $turn['text'] ?? '' }}
@endforeach @endif
{{-- Suggestions --}}
@foreach ($suggestions as $sug) @endforeach
{{-- Composer --}}
{{-- WhatsApp staff channel --}} {{-- Recent AI actions (audit) --}}