@extends('dashboard.layouts.master') @section('title', 'Chat History | Admin Panel') @push('after-styles') @endpush @section('content')

Conversation History

Dashboard / Chat Monitoring / History
Customer
{{ $chat->customer?->name ?? 'Unknown' }} ({{ $chat->customer?->email ?? '-' }})
Business
{{ $chat->businessProfile?->business_name ?? 'Unknown' }}
@forelse($messages as $msg)
{{ $msg->sender_type == 'user' ? 'Customer' : 'Business' }} @if($msg->message_type == 'text')
{{ $msg->message }}
@elseif($msg->message_type == 'image') @else View Attachment @endif {{ $msg->created_at->format('h:i A, d M Y') }}
@empty
No messages in this conversation.
@endforelse
@endsection @push('after-scripts') @endpush