@extends('layouts.admin') @section('page_kicker', 'Secure chat') @section('page_title', 'Patient messages') @section('content')

History

Text messages with assigned patients

@forelse($messages as $msg)

{{ $msg->sender->name ?? 'User' }} → {{ $msg->receiver->name ?? 'User' }}

{{ $msg->message }}

{{ $msg->created_at->format('M j, g:i A') }}

@empty

No messages yet.

@endforelse
{{ $messages->links() }}

Send message

Voice and files require extra columns on chat_messages.

@csrf
@endsection