{{-- Mobile sidebar backdrop --}} {{-- Pane 1: Sidebar --}}
{{-- Account picker — like the workspace switcher, lets the user scope the inbox to a single connected mailbox. Hides itself entirely when only one account is connected (no point showing a single-item dropdown). --}}
{{-- All accounts (clear filter) --}}
{{-- Connected accounts --}} {{-- Manage link --}}
Manage email accounts
{{-- Folder buttons only light up when no channel filter is active. "Inbox + WhatsApp" can't both be active at once — the channel filter takes priority, so the folder pill dims until the user clears the channel back to `all`. --}}
{{-- Agent-reachable channels (inbound + outbound) --}}
@php $__inboxChannels = [['email','Email','mail'],['whatsapp','WhatsApp','message-circle'],['sms','SMS','phone'],['telegram','Telegram','send'],['slack','Slack','hash']]; // Instagram only appears when the addon is installed + active. // Keeps the sidebar pristine on installs without the addon and // avoids "ghost" channel buttons that filter to zero results. if (\Illuminate\Support\Facades\Schema::hasTable('addons') && \App\Models\Addon::where('slug', 'instagram')->where('status', 'active')->exists()) { $__inboxChannels[] = ['instagram', 'Instagram', 'instagram']; } @endphp @foreach($__inboxChannels as [$ck,$cl,$ci]) @endforeach
{{-- Live Chat is visitor-initiated (widget on the website), not a typical messaging channel like the ones above — keep it in its own group with a divider so agents can tell the two kinds apart. --}}
Settings Exit Inbox
{{-- Pane 2: Conversation List --}}
{{-- Mobile-only top strip: hamburger + folder name + search + compose --}}
{{-- Top bar --}}
{{-- Sort dropdown --}}
{{-- Tag filter --}}
{{-- Team filter --}}
{{-- Pencil/Compose icon removed — already covered by the big "Compose" button in the left sidebar. The hamburger "Select all" icon is now a proper checkbox that visibly ticks/unticks. Clicking it toggles selection on every conversation in the visible list (same behaviour as before). --}}
{{-- Search overlay --}}
{{-- Bulk actions bar --}}
|
{{-- Bulk delete. • Outside Trash → soft-delete (move to Bin). • Inside Trash → force-delete (permanent purge), since calling 'delete' on already-trashed rows would just re-set deleted_at and the user wouldn't see them disappear. --}}
{{-- Conversation cards --}}
{{-- Pane 3: Detail --}}
{{-- Compose --}}

New Message

{{-- Quick Replies (inline panel — same container pattern as Compose) --}}

Quick Replies

{{-- Detail --}}
{{-- Empty state --}} {{-- Mail opening animation --}} {{-- Conversation --}}
{{-- Compose FAB (mobile only, visible only on list view) --}} {{-- ═══ AI ASSISTANT — slide-in right drawer ═══ Opens when the agent clicks the "AI Assistant" button in the conversation header. Body has 3 sections: 1. Initial 2-line thread summary (with shimmer skeleton while loading) 2. Quick-prompt chips (one-click common questions) 3. Chat thread + input box (free-form follow-up Q&A) --}}
{{-- Backdrop --}}
{{-- Drawer --}}