@if(getCurrentCurrency() == 'inr') @endif
{{ __('messages.invoice.invoice') }}
{{ __('messages.invoice.invoice_id') }} #{{ $invoice->invoice_id }}
{{ $setting['app_name'] }}
{{ $setting['hospital_address'] }}
{{ __('messages.invoice.invoice_date') }}: {{ $invoice->invoice_date->format('jS M, Y') }}

{{ $invoice->patient->user->full_name }}
@if(!empty($invoice->patient->address->address1) || !empty($invoice->patient->address->address2) || !empty($invoice->patient->address->city) || !empty($invoice->patient->address->zip)) @if(!empty($invoice->patient->address->address1))
{{ $invoice->patient->address->address1 }} @endif @if(!empty($invoice->patient->address->address2)) @if(!empty($invoice->patient->address->address1)){{','}}@endif
{{ trim($invoice->patient->address->address2) }}
@elseif(empty($invoice->patient->address->address2) && !empty($invoice->patient->address->address1)){{','}} @endif @if(!empty($invoice->patient->address->city)) @if(!empty($invoice->patient->address->address2)){{','}}@endif
{{ $invoice->patient->address->city }}
@elseif(empty($invoice->patient->address->city) && !empty($invoice->patient->address->address2)) {{','}}
@endif @if(!empty($invoice->patient->address->zip)) @if(!empty($invoice->patient->address->address2)){{' '}}@endif {{ $invoice->patient->address->zip }} @endif @else {{ __('messages.common.n/a') }} @endif
@if(isset($invoice) && !empty($invoice)) @foreach($invoice->invoiceItems as $key => $invoiceItems) @endforeach @endif
# {{ __('messages.account.account') }} {{ __('messages.invoice.description') }} {{ __('messages.invoice.qty') }} {{ __('messages.invoice.price') }} ({{$currencySymbol}}) {{ __('messages.invoice.amount') }} ({{$currencySymbol}})
{{ $key + 1 }} {{ $invoiceItems->account->name }} {!! nl2br(e($invoiceItems->description)) !!} {{ $invoiceItems->quantity }} {{-- {{ checkValidCurrency($invoice->currency_symbol ?? getCurrentCurrency()) ? moneyFormat($invoiceItems->price, strtoupper($invoice->currency_symbol ?? getCurrentCurrency())) : number_format($invoiceItems->price) . '' . ($invoice->currency_symbol ? getSymbols($invoice->currency_symbol) : getCurrencySymbol()) }} --}} {{ checkValidCurrency($invoice->currency_symbol ?? getCurrentCurrency()) ? moneyFormat(strtoupper($invoice->currency_symbol ?? getCurrentCurrency()), $invoiceItems->price) : getCurrencySymbol() . number_format($invoiceItems->price) }} {{-- {{ checkValidCurrency($invoice->currency_symbol ?? getCurrentCurrency()) ? moneyFormat($invoiceItems->total, strtoupper($invoice->currency_symbol ?? getCurrentCurrency())) : number_format($invoiceItems->total) . '' . ($invoice->currency_symbol ? getSymbols($invoice->currency_symbol) : getCurrencySymbol()) }} --}} {{ checkValidCurrency($invoice->currency_symbol ?? getCurrentCurrency()) ? moneyFormat(strtoupper($invoice->currency_symbol ?? getCurrentCurrency()), $invoiceItems->total) : getCurrencySymbol() . number_format($invoiceItems->total) }}