@if ($invoice->receivable)
@if ($invoice->receivable_type === 'App\Models\Patient\Patient')
{{ __('basic.patient') }}
@elseif ($invoice->receivable_type === 'App\Models\User')
Doctor
@elseif ($invoice->receivable_type === 'App\Models\Invoice\Debtor')
{{ __('basic.broker') }}
@endif
{{ $invoice->receivable->name }}
{{ date('d M Y h:i a', strtotime($invoice->created_at)) }}
@else
The invoice is for no receiver
@endif
{{ __('basic.type') }}
@if ($invoice->type == 0)
Client
@else
Client
@endif
{{ __('basic.branch') }}
{{ $invoice->branch->name }}
{{ __('basic.receipt paid at') }}
{{ date('d M Y h:i a', strtotime($invoice_receipt->paid_date)) }}
@if($invoice->invoice_items)
@foreach ($invoice->invoice_items as $item)
{{ $item->categorizable->name }}
@endforeach
@endif
{{ __('basic.subtotal')
}}
{{ $invoice->invoice_items->sum('price') }}
{{ __('basic.egp') }}
{{ __('basic.discount') }}
@if (!empty($invoice->discount))
{{ $invoice->discount }}
EGP
@else
0
@endif
{{ __('patientappo.final price') }}
{{ $invoice->final_price }}
{{ __('basic.egp') }}
{{-- for payments --}}
@if (count($invoice->payment) > 0)
@php
if ($invoice_receipt->method == 1) {
$method_payment = 'Cash';
} else {
$method_payment = 'Visa';
}
@endphp
{{ date('d M Y', strtotime($invoice_receipt->paid_date)) }}
via
{{ $method_payment }}
@if ($invoice_receipt->worker)
Shift:
{{ $invoice_receipt->worker->full_name }}
@endif
{{ $invoice_receipt->amount }}
{{ __('basic.egp') }}
{{ __('basic.total payments') }}
@if ($invoice->sum_payment)
{{ $invoice->sum_payment }}
@else
0
@endif
{{ __('basic.egp') }}
@if ($invoice->status !== 3)
{{ __('basic.remaining amount') }}
{{ $invoice->final_price - $invoice->sum_payment }}
{{ __('basic.egp') }}
@endif
@endif
Here is the total price that you have paid including tax with discount applied
{{ __('basic.amount paid') }}
{{ $invoice_receipt->amount }}
{{ __('basic.egp') }}