@if (getCurrentCurrency() == 'inr') @endif
{{ __('messages.bill.bill') }}
{{ $setting['app_name'] }}
{{ $setting['hospital_address'] }}
{{ __('messages.bill.bill_date') }}: {{ \Carbon\Carbon::parse($bill['ipd_patient_department']->bill->updated_at)->format('jS M,Y g:i A') }}

#{{ $bill['ipd_patient_department']->ipd_number }}
{{ $bill['ipd_patient_department']->patient->user->full_name }}
{{ $bill['ipd_patient_department']->patient->user->email }}
{{ !empty($bill['ipd_patient_department']->patient->user->phone) ? $bill['ipd_patient_department']->patient->user->phone : __('messages.common.n/a') }}
{{ $bill['ipd_patient_department']->patient->user->gender == 0 ? __('messages.user.male') : __('messages.user.female') }}
{{ !empty($bill['ipd_patient_department']->patient->user->blood_group) ? $bill['ipd_patient_department']->patient->user->blood_group : __('messages.common.n/a') }}
{{ !empty($bill['ipd_atient_department']->case_id) ? '#' . $bill['ipd_atient_department']->patientCase->case_id : __('messages.common.n/a') }}
{{ $bill['ipd_patient_department']->doctor->user->full_name }}
{{ date('jS M, Y m:s', strtotime($bill['ipd_patient_department']->admission_date)) }}
{{ $bill['ipd_patient_department']->bed->name }} ({{ $bill['ipd_patient_department']->bedType->title }})
{{ !empty($bill['ipd_patient_department']->height) ? $bill['ipd_patient_department']->height : __('messages.common.n/a') }}
{{ !empty($bill['ipd_patient_department']->weight) ? $bill['ipd_patient_department']->weight : __('messages.common.n/a') }}
@foreach ($bill['charges'] as $charge) {{-- --}} @endforeach
{{ __('messages.account.type') }} {{ __('messages.medicine.category') }} {{ __('messages.ipd_patient_charges.date') }} {{ __('messages.invoice.amount') }} ({{ $currencySymbol }})
{{ $charge->charge_type }} {{ $charge->chargecategory->name }} {{ $charge->date->format('d/m/Y') }}{{ number_format($charge->applied_charge) }} {{ checkNumberFormat($charge->applied_charge, strtoupper(getCurrentCurrency())) }}
{{ __('messages.bill.total_amount') . ':' }} {{ checkNumberFormat($bill['total_charges'], strtoupper(getCurrentCurrency())) }}
@foreach ($bill['payments'] as $payment) @endforeach
{{ __('messages.ipd_payments.payment_mode') }} {{ __('messages.ipd_patient_charges.date') }} {{ __('messages.ipd_bill.paid_amount') }} ({{ $currencySymbol }})
{{ $payment->payment_mode_name }} {{ $payment->date->format('d/m/Y') }} {{ checkNumberFormat($payment->amount, strtoupper(getCurrentCurrency())) }}
{{ __('messages.bill.total_amount') . ':' }} {{ checkNumberFormat($bill['total_payment'], strtoupper(getCurrentCurrency())) }}
@php $grossTotal = $bill['total_charges'] + $bill['bed_charges'] @endphp
{{--
--}}