@php($isDoctor = auth()->id() === $consultation->doctor->user_id)

{{ $consultation->consultation_number }}

Konsultasi {{ $isDoctor ? $consultation->patient->name : $consultation->doctor->user->name }}

{{ $consultation->scheduled_at->format('d M Y, H:i') }} · {{ $consultation->doctor->specialty }}

{{ str($consultation->status)->headline() }}
@if($isDoctor && in_array($consultation->status,['scheduled','active']))
@foreach($consultation->status === 'scheduled' ? ['active'=>'Mulai konsultasi','cancelled'=>'Batalkan'] : ['completed'=>'Selesaikan','cancelled'=>'Batalkan'] as $status=>$label)
@csrf @method('PATCH')
@endforeach
@endif

Chat privat

Pesan terenkripsi di penyimpanan aplikasi.

@forelse($consultation->messages as $message)

{{ $message->message }}

{{ $message->sender?->name }} · {{ $message->created_at->format('H:i') }}

@empty
Mulai percakupan pada waktu konsultasi.
@endforelse
@if(in_array($consultation->status,['scheduled','active']))
@csrf
@endif
@if($isDoctor && ! $consultation->digitalPrescription)@endif