@extends('layouts.app') @section('title', __('WhatsApp').' — '.$patient->full_name) @section('content')

💬 {{ $patient->full_name }}

{{ __('Open in WhatsApp') }}
@include('patients._tabs')
@forelse($messages as $m)
{{ $m->created_at->setTimezone(\App\Support\ClinicTime::timezone())->format('d M · H:i') }} · {{ $m->status->label() }} @if($m->status === \App\Enums\WaMessageStatus::Failed) @can('retry', $m)
@csrf
@endcan @endif
@empty

{{ __('No messages yet.') }}

@endforelse
@if($patient->whatsapp_opt_in) @can('create', App\Models\WaMessage::class)
@csrf
@endcan @else

{{ __('This patient has opted out of WhatsApp messages.') }}

@endif
@endsection