Logo

{{ __('messages.invoice.invoice') }} #{{ $invoice->invoice_id }}

{{ \Carbon\Carbon::parse($invoice->invoice_date)->translatedFormat('jS M, Y') }}
{{ $invoice->patient->patientUser->full_name }}

@if(isset($invoice->patient->address) && !empty($invoice->patient->address)) {{ ucfirst($invoice->patient->address->address1) .' '. ucfirst($invoice->patient->address->address2) .',' . ucfirst($invoice->patient->address->city) .' '. $invoice->patient->address->zip }} @else {{ __('messages.common.n/a') }} @endif

{{ getAppName() }}

{{ ($hospitalAddress=="") ? __('messages.common.n/a') : $hospitalAddress }}

{{ $invoice->created_at->diffForHumans() }}
{{ $invoice->updated_at->diffForHumans() }}
@foreach($invoice->invoiceItems as $index => $invoiceItem) @endforeach
# {{ __('messages.account.account') }} {{ __('messages.invoice.description') }} {{ __('messages.invoice.qty') }} {{ __('messages.invoice.price') }} {{ __('messages.invoice.amount') }}
{{ $index + 1 }} {{ $invoiceItem->account->name }} {!! ($invoiceItem->description != '')?nl2br(e($invoiceItem->description)):'N/A' !!} {{ $invoiceItem->quantity }} {{ getCurrencyFormat($invoiceItem->price) }} {{ getCurrencyFormat($invoiceItem->total) }}
{{ __('messages.invoice.sub_total').(':') }} {{ getCurrencyFormat($invoice->amount) }}
{{ __('messages.invoice.discount').(':') }} {{ getCurrencyFormat(($invoice->amount * $invoice->discount / 100)) }}
{{ __('messages.invoice.total').(':') }} {{ getCurrencyFormat($invoice->amount - ($invoice->amount * $invoice->discount / 100))}}
@if($invoice->status == \App\Models\Invoice::PENDING) {{ __('messages.new_change.pending_payment') }} @elseif($invoice->status == \App\Models\Invoice::PAID) {{ __('messages.invoice.paid') }} @endif

{{ ucfirst(trans('messages.advanced_payment.patient').' '.trans('messages.overview')) }}

{{ $invoice->patient->patientUser->full_name }}
{{ $invoice->patient->patientUser->email }}
{{ $invoice->patient->patientUser->gender == 1 ? __('messages.user.female'): __('messages.user.male') }}