@if(getCurrentCurrency() == 'inr') @endif
{{ __('messages.medicine_bills.medicine_bill') }}
{{ $data['app_name'] }}
{{ $data['hospital_address'] }}
{{ __('messages.bill.bill_id') }}:
#{{ $medicineBill->bill_number }}
{{ __('messages.bill.bill_date') }}:
{{ \Carbon\Carbon::parse($medicineBill->bill_date)->format('jS M,Y g:i A') }}
{{ __('messages.patient.patient_details') }}
{{ __('messages.investigation_report.patient') }}:
{{ $medicineBill->patient->user->full_name }}
{{ __('messages.user.email') }}:
{{ $medicineBill->patient->user->email }}
{{ __('messages.bill.cell_no') }}:
{{ !empty($medicineBill->patient->user->phone) ? $medicineBill->patient->user->region_code.$medicineBill->patient->user->phone : 'N/A' }}
{{ __('messages.user.gender') }}:
{{ $medicineBill->patient->user->gender == 0 ? __('messages.user.male') : __('messages.user.female') }}
{{ __('messages.user.dob') }}:
{{ !empty($medicineBill->patient->user->dob) ? Datetime::createFromFormat('Y-m-d', $medicineBill->patient->user->dob)->format('jS M, Y g:i A') : 'N/A' }}
@if (!empty($medicineBill->docto))
{{ __('messages.investigation_report.doctor') }}:
{{ $medicineBill->doctor->user->full_name }}
@endif
#
{{ __('messages.bill.item_name') }}
{{ __('messages.bill.qty') }}
{{ __('messages.bill.price') }}
{{ __('messages.purchase_medicine.tax') }}
{{ __('messages.bill.amount') }}
@if(isset($medicineBill->saleMedicine) && !empty($medicineBill->saleMedicine)) @foreach ($medicineBill->saleMedicine as $index => $saleMedicine)
{{ $index + 1 }}
{{ $saleMedicine->medicine->name }}
{{ $saleMedicine->sale_quantity }}
{{ getCurrencyFormat($saleMedicine->sale_price) }}
{{ $saleMedicine->tax . '%' }}
{{ getCurrencyFormat($saleMedicine->sale_price * $saleMedicine->sale_quantity) }}
@endforeach @endif
{{ __('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) }}