@include('partials.doctor-header', ['doctor' => $doctor])

Messaggi

Invia comunicazioni ai pazienti, allega documenti e conserva uno storico ordinato.

@if($flashMessage !== '')
{{ $flashMessage }}
@endif
@forelse($messages as $message) @php $patientName = trim(($message->patient->first_name ?? '') . ' ' . ($message->patient->last_name ?? '')); @endphp @empty
Nessun messaggio presente.
@endforelse

Componi messaggio

Versione iniziale pensata per invio singolo a un paziente.

@if($openedMessage)
Stato: {{ $openedMessage['status'] === 'sent' ? 'Inviato' : 'Bozza' }} @if(!empty($openedMessage['sent_at'])) · {{ $openedMessage['sent_at'] }} @endif
@endif
@if($showPatientSuggestions && !empty($patientSuggestions))
@foreach($patientSuggestions as $suggestion) @endforeach
@endif
@error('selectedPatientId')
{{ $message }}
@enderror @error('patientQuery')
{{ $message }}
@enderror @if($selectedPatientId)
Paziente selezionato: {{ $patient_name }}
{{ $patient_email ?: 'Email non disponibile' }}
@endif
@error('subject')
{{ $message }}
@enderror
Editor iniziale in textarea, facilmente sostituibile con Quill o Trix
@error('body')
{{ $message }}
@enderror
Formati consentiti: PDF, JPG, PNG, DOC, DOCX · max 10 MB per file.
@error('attachments.*')
{{ $message }}
@enderror
Caricamento allegati in corso...
@if(!empty($attachments))
Nuovi allegati
@foreach($attachments as $file)
{{ $file->getClientOriginalName() }} {{ number_format($file->getSize() / 1024, 0, ',', '.') }} KB
@endforeach
@endif @if(!empty($existingAttachments))
Allegati già salvati
@foreach($existingAttachments as $attachment)
{{ $attachment['original_name'] }}
{{ number_format(($attachment['size'] ?? 0) / 1024, 0, ',', '.') }} KB
@if(($openedMessage['status'] ?? null) !== 'sent') @endif
@endforeach
@endif
Le bozze restano modificabili. I messaggi inviati vengono conservati nello storico.