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

{{ __('Back to Orders') }} @if($order->status === 'pending') {{ __('Edit') }} @endif
{{ __('Reorder') }}
{{ __('Export PDF') }}

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

Notes

Your 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

Order Timeline

  • Order Created
    {{ $order->created_at->format('M d, Y h:i A') }}
    Your medication order was submitted successfully.

  • @if($order->assigned_at)

  • Assigned to Doctor
    {{ $order->assigned_at->format('M d, Y h:i A') }}
    Your order was assigned to {{ $order->doctor->name }}.

  • @endif @if($order->prescribed_at)

  • Prescription Created
    {{ $order->prescribed_at->format('M d, Y h:i A') }}
    Your prescription was created by the doctor.

  • @endif @if($order->completed_at)

  • Order Completed
    {{ $order->completed_at->format('M d, Y h:i A') }}
    Your medication order has been completed.

  • @endif @if($order->rejected_at)

  • Order Rejected
    {{ $order->rejected_at->format('M d, Y h:i A') }}
    Your order was rejected. @if($order->rejection_reason)
    Reason: {{ $order->rejection_reason }}
    @endif
  • @endif @if(!$order->completed_at && !$order->rejected_at && ($order->status === 'pending' || $order->status === 'assigned' || $order->status === 'prescribed'))
  • @if($order->prescribed_at || $order->assigned_at)
    @endif
    Current Status
    {{ now()->format('M d, Y h:i A') }}
    @if($order->status === 'pending') Your order is pending review by a doctor. @elseif($order->status === 'assigned') Your order is being reviewed by {{ $order->doctor->name }}. @elseif($order->status === 'prescribed') Your prescription has been created and is being processed. @endif
  • @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