{{-- AI Support — IMPULSA skin (chat layout). Left rail: conversation list (pinned AI placeholder + real tickets). Right pane: AI placeholder when nothing selected; full ticket thread when a conversation is selected inline via selectTicket() — no page navigation. Reportar button (next to search) opens the same new-ticket modal. Reply composer supports text + file/image attachments. --}} @php $first = strtoupper(mb_substr(auth()->user()->display_name ?? auth()->user()->name ?? 'U', 0, 1)); $statusTone = ['open' => 'info', 'answered' => 'success', 'customer_reply' => 'warning', 'closed' => 'neutral']; $statusLbl = ['open' => __('Open'), 'answered' => __('Answered'), 'customer_reply' => __('Awaiting'), 'closed' => __('Closed')]; /** * Human-readable label for a ticket in the left rail. * If linked to an order: "Order #134 – Cancel" * Otherwise: "AI Support #16", "Human Support #17", etc. */ $ticketLabel = function (\App\Models\Ticket $t) { if ($t->order_id) { return __('Order') . ' #' . $t->order_id . ' – ' . __($t->category); } return __($t->subject) . ' #' . $t->id; }; @endphp
{{ __('No conversations yet.') }}
{{ $message }}
@enderror{{ __('No messages yet.') }}
@endforelse{{ $message }}
@enderror