{{-- Thin dark icon rail (Omni). Every workspace/teams/AI/automation nav link is preserved as an icon button with a tooltip; the dynamic teams list + Create-team live in a flyout opened by the Teams icon. All wired IDs (#ti-nav-toggle, #team-nav-list, #nav-ai-agents, …) are kept so the existing JS binds exactly as before. --}}
{{-- ===== COMPOSE: brand-new message to many recipients ===== --}} {{-- Active-conversation header. Empty by default — JS fills it once the user picks a row from the queue, otherwise the empty state in #thread renders. --}} {{-- Quick label shortcuts — one-tap chips that apply a preset tag + priority combo. Visible only when a conversation is open. --}}
{{-- Initial placeholder while bootstrap is fetching workspace state. Shows a clean skeleton-shimmer "thread" so the page never flashes the bigger getting-started panel before we know whether the workspace actually has conversations. JS removes this on first render. --}}
{{-- Getting-started panel — only shown when bootstrap confirms the workspace has 0 conversations AND the user can manage. Hidden by default to avoid the flash on reload. --}} {{-- Empty state #2 — nothing selected, or the current tab/filter has no match. Deliberately mirrors the getting-started panel above (mono eyebrow → serif headline → card rows) so the two empty states read as one design instead of two. --}} {{-- Content-sized: #thread already scrolls and adds px-5 py-4, so this panel must not set its own height or padding. It fills the pane by carrying enough content, the same way the getting-started panel above does. --}}
{{-- Resolution banner — visible when inbox_status === 'resolved'. --}} {{-- Slim "open composer" tab. Shown only when the operator has closed the composer with the X — clicking it brings the full Reply / Note / Template composer back without losing the active thread. --}}
{{-- AI assistant takeover picker — lists the workspace's voice assistants and pins one to the active conversation. The existing inbound message pipeline then auto-replies with that assistant's system prompt + provider/model on every customer message until the operator detaches it. --}}
{{-- ======== Invite teammate modal ============================ --}} {{-- Duplicate-chat cleanup. Scan is read-only and always runs first, so the operator sees exactly which threads join before anything is touched. --}} {{-- ======== Edit team modal ================================== --}} {{-- ======== Create team modal ================================ --}} {{-- ======== Incoming WhatsApp call toast + slim panel ======= --}} {{-- Populated by the team-inbox poll bridge — every few seconds the JS hits /wa-calling/pending and renders any ringing call here. Accept routes the SDP offer to the WebRTC peer; Decline sends a reject to Meta. Hidden until a call is ringing. --}} {{-- ======== AI Agents Management Modal ==================== --}} {{-- ======== AI Agent Create / Edit Panel ================= --}} @include('user.partials._ai_agent_form_modal') {{-- ======== API Keys Modal ================================ --}} {{-- ======== Routing Rules Modal ========================== --}} {{-- ======== Routing Rule Form Modal ====================== --}} {{-- ======== Business Hours Modal ========================= --}} {{-- ======== Team Performance Stats Modal ================= --}} {{-- ======== Quick Replies Management Modal ============== --}} {{-- ======== Saved Reply Create / Edit Form ============== --}} {{-- Localise the JS-rendered inbox UI (status pills, buttons, toasts, …). --}} @include('partials.js-i18n') @php $tlmWsId = (int) (auth()->user()->current_workspace_id ?? 0); $tlmAttrs = $tlmWsId ? app(\App\Services\SendAttributes::class)->catalog($tlmWsId) : []; @endphp {{-- Click-to-insert attribute catalog for the send-time mapping panel. The inbox drives that panel directly rather than through the template-live-mapping blade component, so it publishes the same global the component would; the panel module reads only this. Must sit INSIDE the layout — a @push after the closing tag lands after the stack has already rendered and silently ships nothing. --}} {{-- Tap-to-dial: on mobile, tapping the contact NUMBER shown in the open thread header or the contact panel opens the native phone dialer via a `tel:` link. Scoped to the header (#th-name/#th-phone) and the contact panel (#ct-phone) only — never the queue rows, which open the chat. Fires only when the tapped text is actually a phone number (7+ digits), so a NAMED contact's header (a name, not a number) is left alone. --}} {{-- Business-number line in the contact panel — which of THIS workspace's numbers the open chat belongs to. Deliberately INLINE (not in the JS bundle) so this feature ships by replacing ONLY this Blade file, no asset rebuild. It reads the value from the DOM: the active thread row (.conv-row.bg-paper-100) carries a device chip (span with a 'bg-wa-bubble' class) whose title is the business phone. Fully defensive — if the chip isn't present (older build / single-device), the line just stays hidden. --}}