@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->region_code.$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_patient_department']->case_id) ? '#' . $bill['ipd_patient_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 }} {{ \Carbon\Carbon::parse($charge->date)->format('d/m/Y') }}{{ number_format($charge->applied_charge) }} {{ getCurrencySymbol() }} {{ number_format($charge->applied_charge, 2) }}
{{ __('messages.bill.total_amount') . ':' }} {{ getCurrencySymbol() }} {{ $bill['total_charges'] }}
@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 }} {{ \Carbon\Carbon::parse($payment->date)->format('d/m/Y') }} {{ getCurrencySymbol() }}{{ number_format($payment->amount) }}

{{ __('messages.bill.total_amount') . ':' }} {{ getCurrencySymbol() }} {{ $bill['total_payment'] }}
@php $grossTotal = $bill['total_charges'] + $bill['bedCharge']; @endphp
{{--
--}}