| Name : |
{{ $patient->name ?? 'N/A' }} |
Gender : |
{{ $patient->gender ?? 'N/A' }} |
DOB : |
{{ !empty($patient->dob) ? date('d/m/Y', strtotime($patient->dob)) : 'N/A' }} |
| Age : |
{{ $patient->age ?? 'N/A' }} |
Blood : |
{{ $patient->bloodGroup ?? 'N/A' }} |
ID : |
{{ $patient->registrationNo ?? 'N/A' }} |
| Email : |
{{ $patient->email ?? 'N/A' }} |
Mobile : |
{{ $patient->mobileNo ?? 'N/A' }} |
| Division : |
{{ $patient->division ?? '' }} |
District : |
{{ $patient->district ?? '' }} |
Thana : |
{{ $patient->thana ?? '' }} |
| Disabled Status : |
{{ ($details->isDisabled ?? false) ? 'Yes' : 'No' }} |
Indigenous Status : |
{{ ($details->isIndigenous ?? false) ? 'Yes' : 'No' }} |
| Present Address : |
{{ $details->presentAddressDetails ?? 'N/A' }} |
| Permanent Address : |
{{ $details->permanentAddressDetails ?? 'N/A' }} |
| Residence From Hospital : |
{{ $details->residenceDistanceFromHospital ?? 'N/A' }} |
Residence located : |
{{ $details->residenceLocatedId ?? 'N/A' }} |
| Id Type : |
{{ $details->identityTypeId ?? 'N/A' }} |
Id No : |
{{ $details->idCardNo ?? 'N/A' }} |
Reference : |
{{ $details->reference ?? '' }} |
| Total Family Member : |
{{ $details->noOfFamilyMember ?? 'N/A' }} |
Total Male No : |
{{ $details->noOfFamilyMemberMale ?? 'N/A' }} |
Total Female No : |
{{ $details->noOfFamilyMemberFemale ?? 'N/A' }} |
@if(!empty($data->historyData) && count($data->historyData) > 0)
| SL |
History Name |
Date |
Type |
@foreach ($data->historyData as $index => $list)
| {{ $loop->iteration }} |
{{ $list->name ?? 'N/A' }} |
{{ !empty($list->createdDate) ? date('d/m/Y', strtotime($list->createdDate)) : 'N/A' }} |
{{ $list->type ?? 'N/A' }} |
@endforeach
@endif
@if($isFemale && !empty($pregnancyData))
| SL |
Status |
Current Week |
Conception Date |
Due Date |
Delivery Date |
Delivery Type |
@if(!empty($pregnancyData) && count($pregnancyData) > 0)
@foreach ($pregnancyData as $index => $pregnancy)
| {{ $loop->iteration }} |
{{ $pregnancy->pregnancyStatus ?? 'N/A' }}
|
@if(!empty($pregnancy->currentWeek) && $pregnancy->currentWeek > 0)
{{ $pregnancy->currentWeek }} weeks
@else
-
@endif
|
@if(!empty($pregnancy->conceptionDate))
{{ \Carbon\Carbon::parse($pregnancy->conceptionDate)->format('d/m/Y') }}
@else
-
@endif
|
@if(!empty($pregnancy->dueDate))
{{ \Carbon\Carbon::parse($pregnancy->dueDate)->format('d/m/Y') }}
@else
-
@endif
|
@if(!empty($pregnancy->deliveryDate))
{{ \Carbon\Carbon::parse($pregnancy->deliveryDate)->format('d/m/Y') }}
@else
-
@endif
|
{{ $pregnancy->deliveryType ?? 'N/A' }} |
@endforeach
@else
| No pregnancy records available. |
@endif
@endif
@if(!empty($visitData) && count($visitData) > 0)
@php
$sortedVisits = $visitData;
usort($sortedVisits, function($a, $b) {
return strtotime($a->visitDate) - strtotime($b->visitDate);
});
@endphp
@foreach ($sortedVisits as $visit)
@if(!empty($visit->diagnoses) && count($visit->diagnoses) > 0)
Diagnoses
| SL |
Diagnosis Name |
@foreach ($visit->diagnoses as $index => $diagnosis)
| {{ $loop->iteration }} |
{{ $diagnosis->name ?? 'N/A' }} |
@endforeach
@endif
@if(!empty($visit->prescriptions) && count($visit->prescriptions) > 0)
Prescriptions
| SL |
Prescription No |
Doctor |
@foreach ($visit->prescriptions as $index => $prescription)
| {{ $loop->iteration }} |
{{ $prescription->prescriptionNo ?? 'N/A' }} |
{{ $prescription->doctorName ?? 'N/A' }} |
@endforeach
@endif
@if(!empty($visit->invoices) && count($visit->invoices) > 0)
Invoices
| SL |
Invoice No |
Total Amount |
Items |
@foreach ($visit->invoices as $index => $invoice)
| {{ $loop->iteration }} |
{{ $invoice->invoiceNo ?? 'N/A' }} |
{{ $invoice->totalAmount ?? '0' }} |
{{ $invoice->items ?? '' }} |
@endforeach
@endif
@if(!empty($visit->vitals) && count($visit->vitals) > 0)
Vitals
| SL |
Type |
Primary Value |
Secondary Value |
Notes |
@foreach ($visit->vitals as $index => $vital)
| {{ $loop->iteration }} |
{{ $vital->type ?? 'N/A' }} |
{{ $vital->primaryValue ?? 'N/A' }} |
{{ $vital->secondaryValue ?? 'N/A' }} |
{{ $vital->notes ?? '' }} |
@endforeach
@endif
@if(!empty($visit->complains) && count($visit->complains) > 0)
Complains
| SL |
Complain Name |
Duration |
Duration Unit |
Remarks |
@foreach ($visit->complains as $index => $complain)
| {{ $loop->iteration }} |
{{ $complain->name ?? 'N/A' }} |
{{ $complain->duration ?? '0' }} |
{{ $complain->durationUnit ?? 'N/A' }} |
{{ $complain->remarks ?? 'N/A' }} |
@endforeach
@endif
@if(!empty($visit->services) && count($visit->services) > 0)
Services
| SL |
Service Name |
@foreach ($visit->services as $index => $service)
| {{ $loop->iteration }} |
{{ $service->name ?? 'N/A' }} |
@endforeach
@endif
@if(!empty($visit->labReports) && count($visit->labReports) > 0)
Lab Reports
| SL |
Report Name |
Test Name |
Result |
@foreach ($visit->labReports as $index => $report)
| {{ $loop->iteration }} |
{{ $report->headerName }} |
{{ $report->testName ?? 'N/A' }} |
{{ $report->result ?? '' }} |
@endforeach
@endif
@if(!empty($visit->followUps) && count($visit->followUps) > 0)
Follow Up & Refer
| Follow Up Date |
Referred To |
@foreach ($visit->followUps as $index => $followUp)
|
@if(!empty($followUp->followUpDate))
{{ \Carbon\Carbon::parse($followUp->followUpDate)->format('d/m/Y') }}
@else
-
@endif
|
@if(!empty($followUp->referDoctor))
{{ $followUp->referDoctor }}
@else
N/A
@endif
|
@endforeach
@endif
@endforeach
@endif