@extends('layouts.app') @section('title', 'Live Chat - Admin') @section('content')

Live Chat Support

Manage customer conversations and support requests

Live

{{ $conversations->total() }}

Total Conversations

{{ $conversations->where('status', 'active')->count() }}

Active Chats

{{ $conversations->sum('unread_messages_count') }}

Unread Messages

{{ $conversations->where('status', 'resolved')->count() }}

Resolved

Recent Conversations

@forelse($conversations as $conversation) @empty @endforelse
Customer Last Message Status Assigned To Messages Updated Actions
{{ strtoupper(substr($conversation->user->name ?? 'U', 0, 1)) }}
{{ $conversation->user->name ?? 'Unknown User' }}
{{ $conversation->user->email ?? 'No email' }}
{{ $conversation->title ?? 'No messages yet' }}
{{ $conversation->category ?? 'General' }}
{{ ucfirst($conversation->status) }} {{ $conversation->admin->name ?? 'Unassigned' }}
{{ $conversation->messages_count }} @if($conversation->unread_messages_count > 0) {{ $conversation->unread_messages_count }} @endif
{{ $conversation->updated_at->diffForHumans() }} View

No conversations yet

Customer conversations will appear here when they start chatting

@if($conversations->hasPages())
{{ $conversations->links() }}
@endif
@endsection