@extends('layouts.print') @section('title', 'Prescription '.$consultation->prescription->code) @section('content') @php $clinic = \App\Models\ClinicProfile::first(); $rx = $consultation->prescription; $patient = $consultation->patient; $doctor = $consultation->doctor; $prof = $doctor->doctorProfile; $sig = $rx->signature_path; $lines = fn ($t) => array_values(array_filter(array_map('trim', preg_split('/\r\n|\r|\n/', (string) $t)))); $sex = ['male' => 'M', 'female' => 'F', 'other' => 'O'][$patient->gender] ?? '-'; $hours = $clinic?->operating_hours; @endphp {{-- Header: doctor (left) · logo (centre) · clinic (right) --}}
|
{{ $doctor->name }}
{{ $prof?->specialization ?? '' }}
@if($prof?->registration_no)Reg. No: {{ $prof->registration_no }} @endif
|
|
{{ $clinic->name ?? 'Dr Dutta Clinic' }}
{{ $clinic?->address }}@if($clinic?->city_state_zip), {{ $clinic->city_state_zip }}@endif
@if($clinic?->phone)Ph: {{ $clinic->phone }}@if($hours), Timing: {{ $hours['open'] ?? '' }} - {{ $hours['close'] ?? '' }}@endif @endif
|
|
Chief Complaints
@foreach($lines($consultation->chief_complaints) as $c) * {{ $c }} @endforeach
|
Clinical Findings
@foreach($lines($consultation->clinical_findings) as $c) * {{ $c }} @endforeach
|
| Medicine Name | Dosage | Duration |
|---|---|---|
|
{{ $i + 1 }}) {{ $it->medicine_name }}
@if($comp){{ $comp }} @endif
|
{{ trim(($it->dosage ? $it->dosage.' ' : '').$it->frequency) ?: '—' }}
@if($it->instructions) ({{ $it->instructions }}) @endif
|
{{ $it->duration ?? '—' }} |
| No medicines prescribed. | ||