Prescriptions Management

@if(!auth()->user()->isNurse()) @endif
@if (session()->has('message'))
{{ session('message') }}
@endif
@forelse ($prescriptions as $prescription) @empty @endforelse
Prescription # Patient Drug Dosage Frequency Date Status Actions
{{ $prescription->prescription_number }}
{{ $prescription->patient->full_name }}
{{ $prescription->patient->patient_id }}
{{ ucwords(strtolower($prescription->drug->name)) }}
{{ ucwords(strtolower($prescription->drug->generic_name)) }}
{{ $prescription->dosage }} {{ ucwords(strtolower($prescription->frequency)) }} {{ $prescription->prescription_date->format('M d, Y') }}
Valid until: {{ $prescription->valid_until->format('M d, Y') }}
{{ ucfirst($prescription->status) }}
@if(!auth()->user()->isNurse()) @endif
No prescriptions found
{{ $prescriptions->links() }}
@if($showCreateModal || $showEditModal)

{{ $editingPrescription ? 'Edit Prescription' : 'New Prescription' }}

@if(count($searchResults) > 0 && !$patient_id)
@foreach($searchResults as $patient) @endforeach
@endif
@if($patient_id)
✓ Patient selected
@endif
@endif @if($showViewModal && $selectedPrescription)

Prescription Details

{{ $selectedPrescription->prescription_number }}

{{ ucfirst($selectedPrescription->status) }}

Patient Information

{{ $selectedPrescription->patient->full_name }}

{{ $selectedPrescription->patient->patient_id }}

Prescribing Doctor

{{ ucwords(strtolower($selectedPrescription->doctor->name)) }}

Medication Information

{{ ucwords(strtolower($selectedPrescription->drug->name)) }}

{{ ucwords(strtolower($selectedPrescription->drug->generic_name)) }}

Dosage Information

{{ $selectedPrescription->dosage }}

{{ $selectedPrescription->frequency }}

{{ $selectedPrescription->quantity }}

{{ $selectedPrescription->duration }}

{{ $selectedPrescription->max_refills }} (Used: {{ $selectedPrescription->refill_count }})

Dates

{{ $selectedPrescription->prescription_date->format('M d, Y') }}

{{ $selectedPrescription->valid_until->format('M d, Y') }}

@if($selectedPrescription->visit)

Visit Information

{{ $selectedPrescription->visit->visit_number }}

@endif @if($selectedPrescription->instructions)

Instructions

{{ $selectedPrescription->instructions }}

@endif @if($selectedPrescription->notes)

Notes

{{ $selectedPrescription->notes }}

@endif @if($selectedPrescription->pharmacy_notes)

Pharmacy Notes

{{ $selectedPrescription->pharmacy_notes }}

@endif @if($selectedPrescription->canBeRefilled())

✓ This prescription can be refilled.

@endif
@if(!auth()->user()->isNurse()) @endif
@endif