@extends('appshell::layouts.private') @section('title', 'Live Agent Chat') @section('content')

{{ $activeChatCount }} Active Chats

@forelse($chats as $chat)
{{ $chat->customer_name }} {{ ucfirst($chat->status) }}
{{ $chat->customer_email }}

{{ $chat->messages->last()?->content ?? 'No messages yet' }}

{{ $chat->started_at->diffForHumans() }}
@empty
No chats yet. You'll see incoming chats here.
@endforelse
@if($chats->hasPages())
{{ $chats->links() }}
@endif

Select a chat to start responding

@endsection @push('styles') @endpush @push('scripts') @endpush