Inbox
@if($admins->isEmpty())
@else
{{-- Left panel: conversation list (~1/3). On mobile hidden when conversation is open. --}}
{{-- Right panel: active conversation (~2/3). On mobile hidden until a conversation is selected. --}}
{{-- Recording indicator (shown while holding voice button) --}}
{{-- Message input bar (layout like reference: icons, input, send) --}}
@endif
No admin accounts yet.
Create accounts from All Clients.
Messages
All Messages
-
@foreach($admins as $admin)
@php
$displayName = $admin->full_name ?: $admin->username;
$initial = mb_strtoupper(mb_substr($displayName, 0, 1));
$avatarUrl = $admin->profile_picture ? asset('storage/' . $admin->profile_picture) : null;
$isOnline = $admin->isOnline();
$lastSeenText = $isOnline ? 'Online' : ($admin->last_seen_at ? 'Last seen ' . $admin->last_seen_at->diffForHumans(['short' => true]) : 'Never active');
$statusPreview = $isOnline ? 'Online' : $lastSeenText;
$searchText = strtolower($displayName . ' ' . $admin->username . ' ' . ($admin->email ?? ''));
@endphp
-
@if($avatarUrl){{ $initial }}@else{{ $initial }}@endif
{{ $displayName }}
{{ $statusPreview }}
now
@endforeach
No admins match your search.
Select a conversation
Today
{{-- Messages rendered here via JS or server --}}
Recording
0s โ Release to send
{{-- Pending attachment preview (shown when file chosen, send on Send click) --}}