@extends('layouts.app') @section('title', 'Prescriptions Report') @section('content')

Prescriptions Report

Detailed prescription analytics and statistics

Back to Reports

Total Prescriptions

{{ $stats['total'] }}

This Month

{{ $stats['this_month'] }}

Last Month

{{ $stats['last_month'] }}

This Year

{{ $stats['this_year'] }}

Daily Prescriptions Trend

Top Prescribing Doctors

Recent Prescriptions

@forelse($prescriptions->take(20) as $prescription) @empty @endforelse
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
@endsection