@php $showMeds = ($report_config['show_medications'] ?? true) && $prescriptions && $prescriptions->count() > 0; $showRecs = ($report_config['show_recommendations'] ?? true) && isset($examination->recommendations['instructions']) && count($examination->recommendations['instructions']) > 0; $showRefusal = isset($treatmentPlan) && isset($treatmentPlan->plan_details['refusal_documented']) && $treatmentPlan->plan_details['refusal_documented']; @endphp @if($showMeds || $showRecs || $showRefusal)
| MEDICATION | DOSAGE / FREQUENCY | EYE | INSTRUCTIONS |
|---|---|---|---|
| {{ $prescription->drug->name ?? $prescription->drug_name }} | {{ $prescription->dosage }} / {{ $prescription->frequency }} | {{ $prescription->eye }} | {{ $prescription->instructions }} |