@if ($invoice->receivable_type === 'App\Models\Patient\Patient') {{ __('basic.client') }} @elseif ($invoice->receivable_type === 'App\Models\User') {{ __('basic.supplier') }} @elseif ($invoice->receivable_type === 'App\Models\Invoice\Debtor') {{ __('basic.supplier') }} @endif
{{ $invoice->receivable->full_name }}
{{ date('d M Y h:i a', strtotime($invoice->created_at)) }}
{{ __('basic.type') }}
@if ($invoice->type == 0) {{ __('basic.purchase') }} @else {{ __('basic.income') }} @endif
{{ __('basic.branch') }}
{{ $invoice->branch->name }}
{{ __('basic.created') }}
{{ date('d M Y h:i a', strtotime($invoice->paid_date)) }}
| {{ __('basic.item') }} | {{ __('basic.description') }} | {{ __('basic.unit price') }} | {{ __('basic.quantity') }} | {{ __('basic.tax') }} | {{ __('basic.final price') }} |
|---|---|---|---|---|---|
| {{ $item->categorizable->name }} | {{ $item->description }} |
{{ $item->price }}
{{ $invoice->currency->code }}
|
{{ $item->qty }} |
{{ $item->tax }}
{{ $invoice->currency->code }}
|
{{ $item->subtotal }}
{{ $invoice->currency->code }}
|
{{ __('basic.shift') }}: {{ $item_p->worker->name }}
@endif{{ __('basic.not paid') }}
@elseif (in_array($invoice->status, [1, 2])){{ $invoice->final_price - $invoice->sum_payment }} {{ __('basic.egp') }}
@else{{ $invoice->final_price }} {{ __('basic.egp') }}
@endif