{{-- Prescription print page. Rendered as HTML (NOT DomPDF) because the browser shapes Arabic glyphs correctly and applies the bidi algorithm — DomPDF doesn't, which is why letters were appearing in isolated/reversed form. Users print to PDF via the native browser dialog (Ctrl+P → "Save as PDF") which produces clean output. --}} وصفة - {{ $prescription->prescription_number }}

{{ $clinic->name ?? config('app.name') }}

@if($clinic?->address){{ $clinic->address }}@if($clinic?->city), {{ $clinic->city }}@endif
@endif @if($clinic?->phone){{ $clinic->phone }} @endif @if($clinic?->license_number)· ترخيص: {{ $clinic->license_number }}@endif
CX
{{ $prescription->prescription_number }}
المريض: {{ $prescription->patient->first_name }} {{ $prescription->patient->last_name }} · رقم الملف: {{ $prescription->patient->file_number }} @if($prescription->patient->date_of_birth) · العمر: {{ \Carbon\Carbon::parse($prescription->patient->date_of_birth)->age }} سنة @endif · النوع: {{ $prescription->patient->gender === 'female' ? 'أنثى' : 'ذكر' }}
التاريخ: {{ $prescription->issued_at->format('Y-m-d H:i') }} @if($prescription->patient->allergies) · ⚠ حساسية: {{ $prescription->patient->allergies }} @endif
@foreach($prescription->items as $i => $item) @endforeach
# الدواء الجرعة التكرار المدة تعليمات
{{ $i + 1 }} {{ $item->medication_name }} @if($item->strength) {{ $item->strength }} @endif {{ $item->dosage }} {{ $item->frequency }} {{ $item->duration }} {{ $item->instructions }}
@if($prescription->notes)
ملاحظات: {{ $prescription->notes }}
@endif