@php $inboxTitle = match ($filters['status']) { 'closed' => 'Closed chats', 'archived' => 'Archived chats', default => 'Open chats', }; @endphp @extends('layouts.admin', [ 'active' => 'inbox', 'inboxStatus' => $filters['status'], 'inboxSearch' => $filters['search'], 'inboxConversation' => (bool) $conversation, ]) @section('title', $inboxTitle) @section('heading', $conversation?->user_name ?: $inboxTitle) @section('content') @php $query = array_filter([ 'search' => $filters['search'], 'status' => $filters['status'], ]); $canRealtime = $supabaseUrl !== '' && $supabaseAnonKey !== ''; @endphp
{{ $row->user_name ?: $row->user_id }}
{{ $row->domain?->domain_name }}
{{ $preview ?: 'No messages yet' }}
{{ $unread > 99 ? '99+' : ($unread > 0 ? $unread : '') }}@if ($filters['search'] !== '') No conversations match that search. @elseif ($filters['status'] === 'closed') No closed chats yet. @elseif ($filters['status'] === 'archived') No archived chats yet. @else No open chats yet. @endif
@endforelseUser ID {{ $conversation->user_id }} @if ($conversation->domain) · {{ $conversation->domain->domain_name }} @endif
No messages yet. Send the first reply.
@endforelseThis chat is archived
You cannot send a reply.
This chat is closed
You cannot send a reply.
Select a conversation
Open a chat from the left to read messages and reply in real time.