{{--
#{{$medicinePurchase->purchase_no}}
{{number_format($medicinePurchase->total)}}
{{number_format($medicinePurchase->tax)}}
{{ number_format($medicinePurchase->discount)}}
{{ number_format($medicinePurchase->net_amount) }}
{{ App\Models\PurchaseMedicine::created_METHOD[$medicinePurchase->created_type] }}
{{ \Carbon\Carbon::parse($medicinePurchase->created_at)->diffForHumans() }}
{!! !empty($medicinePurchase->created_note)?nl2br(e($medicinePurchase->created_note)):'N/A' !!}
{!! !empty($medicinePurchase->note)?nl2br(e($medicinePurchase->note)):'N/A' !!}
--}}
{{-- @endif--}}
#{{$medicinePurchase->purchase_no}}
{{number_format($medicinePurchase->total,2)}}
{{number_format($medicinePurchase->tax,2)}}
{{ number_format($medicinePurchase->discount,2)}}
{{ number_format($medicinePurchase->net_amount,2) }}
{!! !empty($medicinePurchase->note)?nl2br(e($medicinePurchase->note)):'N/A' !!}
@foreach($medicinePurchase->purchasedMedcines as $purchasedMedcine) @endforeach
{{ __('messages.medicines') }} {{ __('messages.purchase_medicine.expiry_date') }} {{ __('messages.purchase_medicine.lot_no') }} {{ __('messages.medicine.buying_price') }} {{ __('messages.medicine.selling_price') }} {{ __('messages.purchase_medicine.tax' ) }} {{ __('messages.purchase_medicine.quantity') }} {{ __('messages.purchase_medicine.amount') }}
{{ isset($purchasedMedcine->medicines->name) == true ? $purchasedMedcine->medicines->name : __('messages.common.n/a') }} {{ $purchasedMedcine->expiry_date ==null ? __('messages.common.n/a') : \Carbon\Carbon::parse($purchasedMedcine->expiry_date)->isoFormat('Do MMM, Y')}} {{ $purchasedMedcine->lot_no }} {{ isset($purchasedMedcine->medicines->buying_price) == true ? $purchasedMedcine->medicines->buying_price : __('messages.common.n/a') }} {{ isset($purchasedMedcine->medicines->selling_price) == true ? $purchasedMedcine->medicines->selling_price : __('messages.common.n/a') }} {{ $purchasedMedcine->tax }}% {{ $purchasedMedcine->quantity }} {{ number_format($purchasedMedcine->amount,2) }}
{{ __('messages.purchase_medicine.total').(':') }} {{ number_format($medicinePurchase->total,2) }}
{{ __('messages.purchase_medicine.tax').(':') }} {{ number_format($medicinePurchase->tax,2)}}
{{ __('messages.purchase_medicine.discount').(':') }} {{ number_format($medicinePurchase->discount,2)}}
{{ __('messages.purchase_medicine.net_amount').(':') }} {{ number_format($medicinePurchase->net_amount,2)}}

{{ __('messages.purchase_medicine.other_details') }}

{!! !empty($medicinePurchase->payment_note)?nl2br(e($medicinePurchase->payment_note)):'N/A' !!}
{!! !empty($medicinePurchase->note)?nl2br(e($medicinePurchase->note)):'N/A' !!}
{{ App\Models\PurchaseMedicine::PAYMENT_METHOD[$medicinePurchase->payment_type] }}
{{ \Carbon\Carbon::parse($medicinePurchase->created_at)->diffForHumans() }}