@extends('layouts.app') @section('title', 'Prescriptions Report') @section('content')
Detailed prescription analytics and statistics
Total Prescriptions
{{ $stats['total'] }}
This Month
{{ $stats['this_month'] }}
Last Month
{{ $stats['last_month'] }}
This Year
{{ $stats['this_year'] }}
| Prescription # | Date | Doctor | Patient | Diagnosis | Items |
|---|---|---|---|---|---|
| {{ $prescription->prescription_number }} | {{ $prescription->created_at->format('M d, Y') }} | {{ $prescription->doctor ? $prescription->doctor->full_name : 'N/A' }} | {{ $prescription->patient ? $prescription->patient->full_name : 'N/A' }} | {{ \Illuminate\Support\Str::limit($prescription->diagnosis ?? 'N/A', 30) }} | {{ $prescription->items->count() }} |
| No prescriptions found | |||||