{{-- LEFT: Table (col-md-8) --}}
@php $invoicePayment = $invoicePayment ?? null; $invoiceRawCurrency = $invoice->getRawOriginal('currency'); $isForeignCurrencyInvoice = $invoice->isForeignCurrency(); @endphp {{--
@json($this->payments)
--}}
{{ $invoice->contract->subject ?? '—' }}

{{ $invoice->company->name ?? '—' }}

{{-- Invoice ID --}}

Invoice ID:

Claim Number:

{{ $invoice->getFormatedId() ?? '—' }}

{{ $invoice->claim_number ?? '—' }}

Total Paying Amount

{{ cMoney($this->totalPayingAmount(), $invoice->currency, true) }}

VAT AMOUNT: {{ cMoney($this->totalPayingVatAmount(), $invoice->currency, true) }}
EXCLUDING VAT : {{ cMoney($this->totalPayingExVatAmount(), $invoice->currency, true) }}
{{-- Total Amount Breakdown --}}
Total Paying Amount

{{ cMoney(($invoicePayment?->conversion_rate ?? 0) > 0 ? ($invoicePayment?->amount ?? 0) / $invoicePayment->conversion_rate : 0, $invoice->currency, true) }}

VAT Amount: {{ cMoney($invoicePayment?->totalVatPaidAmount() ?? 0, $invoice->currency, true) }}
Excluding VAT Amount: {{ cMoney($invoicePayment?->totalExcludingVatPaidAmount() ?? 0, $invoice->currency, true) }}
{{-- Action Buttons --}}
ACTION TOTAL VAT AMOUNT TOTAL EXCLUDING VAT
SAR
SAR
@foreach ($invoice->items as $item) @php $conversionRate = $item->conversion_rate ?: 1; // Use default value (1) if conversion_rate is null or zero $pxvatAmount = ($item->pxvatAmount() / $conversionRate) + $item->this_excluding_vat_paid_amount; $payableVatAmount = ($item->payableVatAmount() / $conversionRate) + $item->this_vat_paid_amount; @endphp @include('scrumboard::livewire.invoices.payment.detail') @endforeach
DESCRIPTION VAT AMOUNT EXCLUDING VAT
{{ $item->name ?: $item->invoiceable->name }} @if($item->invoiceable && !$item->invoiceable->is_allowable_cost)
{{ formatDateTime($item->invoiceable->start_date, false) }} - {{ formatDateTime($item->invoiceable->due_date, false) }} @endif
{{ $item->description }}
{{ $invoice->currency }}
VAT Payable: @cMoney($payableVatAmount, $invoice->currency, true)
{{ $invoice->currency }}
Ex. VAT Payable: @cMoney($pxvatAmount, $invoice->currency, true)