Logo {{ __('messages.bill.print_bill') }}
#{{ $medicineBill->bill_number }}
{{ __('messages.case.patient').':' }}
{{ $medicineBill->patient->patientUser->full_name }}
{{ __('messages.bill.bill_date').':' }}
{{ Carbon\Carbon::parse($medicineBill->bill_date)->format('jS M, Y g:i A') }}
{{--
{{ __('messages.bill.admission_id').':' }}
{{ $medicineBill->patientAdmission->patient_admission_id }}
--}}
{{ __('messages.bill.patient_email').':' }}
{{ $medicineBill->patient->patientUser->email }}
{{ __('messages.ipd_patient.bill_status').':' }}
{{ App\Models\MedicineBill::PAYMENT_STATUS_ARRAY[$medicineBill->payment_status] }}
{{ __('messages.bill.patient_cell_no').':' }}
{{ !empty($medicineBill->patient->patientUser->phone) ? $medicineBill->patient->patientUser->region_code.$medicineBill->patient->patientUser->phone : __('messages.common.n/a') }}
{{ __('messages.bill.patient_gender').':' }}
{{ (!$medicineBill->patient->patientUser->gender) ? __('messages.user.male') : __('messages.user.female') }}
{{ __('messages.bill.patient_dob').':' }}
{{ (!empty($medicineBill->patient->patientUser->dob)) ? \Carbon\Carbon::parse($medicineBill->patient->patientUser->dob)->translatedFormat('jS M, Y') : __('messages.common.n/a') }}
{{--
{{ __('messages.case.doctor').':' }}
{{ $medicineBill->patientAdmission->doctor->doctorUser->full_name }}
--}}
{{--
{{ __('messages.bill.admission_date').':' }}
{{ \Carbon\Carbon::parse($medicineBill->patientAdmission->admission_date)->translatedFormat('jS M, Y g:i A') }}
--}}
{{ __('messages.bill.discharge_date').':' }}
{{ !empty($medicineBill->patientAdmission->discharge_date)?date('jS M, Y g:i A', strtotime($medicineBill->patientAdmission->discharge_date)):'N/A' }}
{{ __('messages.bill.package_name').':' }}
{{ !empty($medicineBill->patientAdmission->package->name)?$medicineBill->patientAdmission->package->name:'N/A' }}
{{ __('messages.bill.insurance_name').':' }}
{{ !empty($medicineBill->patientAdmission->insurance->name)?$medicineBill->patientAdmission->insurance->name:'N/A' }}
{{ __('messages.bill.total_days').':' }}
{{ $medicineBill->totalDays }}
{{ __('messages.bill.policy_no').':' }}
{{ !empty($medicineBill->patientAdmission->policy_no) ? $medicineBill->patientAdmission->policy_no : __('messages.common.n/a') }}
{{ __('messages.common.created_on').':' }}
{{ $medicineBill->created_at->diffForHumans() }}
{{ __('messages.common.last_updated').':' }}
{{ $medicineBill->created_at->diffForHumans() }}
@foreach($medicineBill->saleMedicine as $index => $saleMedicine) @endforeach
{{ __('messages.bill.item_name') }} {{ __('messages.bill.qty') }} {{ __('messages.bill.price') }} {{ __('messages.purchase_medicine.tax') }} {{ __('messages.bill.amount') }}
{{ isset($saleMedicine->medicine->name) ? $saleMedicine->medicine->name : __('messages.common.n/a') }} {{ $saleMedicine->sale_quantity }} {{ getCurrencyFormat($saleMedicine->sale_price ) }} {{ $saleMedicine->tax.'%' }} {{ getCurrencyFormat($saleMedicine->sale_price * $saleMedicine->sale_quantity) }}
{{ __('messages.purchase_medicine.total').(':') }} {{ number_format($medicineBill->total,2) }}
{{ __('messages.purchase_medicine.tax').(':') }} {{ number_format($medicineBill->tax_amount,2)}}
{{ __('messages.purchase_medicine.discount').(':') }} {{ number_format($medicineBill->discount,2)}}
{{ __('messages.purchase_medicine.net_amount').(':') }} {{ number_format($medicineBill->net_amount,2)}}