@php use Carbon\Carbon; @endphp
@if(isset($data->bannerUrl) && $data->bannerUrl != "") @endif
Name : @if(isset($data->customerModel->patient->dob)) {{$data->customerModel->patient->name}} @endif Reg : @if(isset($data->customerModel->patient->registrationNo)) {{$data->customerModel->patient->registrationNo}} @endif
Gender : @if(isset($data->customerModel->patient->gender)) {{$data->customerModel->patient->gender}} @endif Age : @if(isset($data->customerModel->patient->dob)) {{\Carbon\Carbon::parse($data->customerModel->patient->dob)->diff(\Carbon\Carbon::now())->format('%y Years, %m Months')}} @endif
Adm Date : @if(isset($data->customerModel->admissionDate)) {{dateFormatter($data->customerModel->admissionDate)}} @endif Adm ID : @if(isset($data->customerModel->admissionId)) {{($data->customerModel->admissionId)}} @endif
Bed/Cabin : @if(isset($data->customerModel->bed->bedNo)) {{($data->customerModel->bed->bedNo)}} @endif

Patient Financial Statement Summary

@foreach($data->consolidateList as $index => $item) @endforeach
SL Revenue Head Amount
{{$index + 1}} {{capitalizeFirstChar($item->billingType)}} {{number_format($item->amount, 2), 2}}
Zone Total: {{number_format($data->totalBillAmount, 2), 2}}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- user {{$data->createdBy}}--}} {{--
--}}
D&T - {{ now()->timezone('Asia/Dhaka')->format('d-M-Y g:i A') }}    Powered By - {{$data->poweredBy}}  {PAGENO}/{nbpg}