{{ __('Medication Order #') . $order->id }}

@if($order->status === 'pending') {{ __('Assign Doctor') }} @endif {{ __('Back to Orders') }}

Order Information

Status
{{ $order::STATUSES[$order->status] }}
Created
{{ $order->created_at->format('M d, Y H:i') }}
@if($order->doctor)
Doctor
{{ $order->doctor->name }}
Assigned
{{ $order->assigned_at ? $order->assigned_at->format('M d, Y H:i') : 'N/A' }}
@endif @if($order->status === 'prescribed')
Prescribed
{{ $order->prescribed_at ? $order->prescribed_at->format('M d, Y H:i') : 'N/A' }}
@endif @if($order->status === 'completed')
Completed
{{ $order->completed_at ? $order->completed_at->format('M d, Y H:i') : 'N/A' }}
@endif @if($order->status === 'rejected')
Rejected
{{ $order->rejected_at ? $order->rejected_at->format('M d, Y H:i') : 'N/A' }}
@endif

Patient Information

Name
{{ $order->patient->name }}
Email
{{ $order->patient->email }}
Phone
{{ $order->patient->phone ?: 'N/A' }}
Subscription
@if($order->patient->activeSubscription()) Active @else Inactive @endif

Notes

Patient Notes
{{ $order->patient_notes ?: 'No notes provided.' }}
@if($order->doctor_notes)
Doctor's Notes
{{ $order->doctor_notes }}
@endif @if($order->rejection_reason)
Rejection Reason
{{ $order->rejection_reason }}
@endif

Requested Medications

@foreach($order->items as $item) @endforeach
Medication Requested Dosage Requested Quantity Status
@if($item->isCustomMedication())
{{ $item->custom_medication_name }}
@if($item->custom_medication_details)
{{ $item->custom_medication_details }}
@endif @else
{{ $item->medication->name }}
{{ $item->medication->generic_name }} - {{ $item->medication->strength }} {{ $item->medication->dosage_form }}
@endif
{{ $item->requested_dosage ?: 'Not specified' }} {{ $item->requested_quantity ?: 'Not specified' }} {{ $item::STATUSES[$item->status] }} @if($item->status === 'rejected' && $item->rejection_reason)
{{ $item->rejection_reason }}
@endif
@if($order->prescription)

Prescription Details

@foreach($order->prescription->items as $item) @endforeach
Medication Dosage Frequency Duration Quantity
@if($item->isCustomMedication())
{{ $item->custom_medication_name }}
@if($item->custom_medication_details)
{{ $item->custom_medication_details }}
@endif @else
{{ $item->medication->name }}
@endif
{{ $item->dosage }} {{ $item->frequency }} {{ $item->duration }} days {{ $item->quantity }}
@endif