@if ($invoice->contract?->have_retention)
@endif @if ($invoice->type !== 'Down Payment')
{{-- Left: Dropdown Menu --}}
{{-- Right: Delete Button --}} @can('delete invoice item')
@endcan
@endif
@if ($invoice_total_deducted_amount = $invoice->totalDeductedAmount()) @if($invoice->is_deduction_excluding_vat) {{-- Deduction before VAT --}} @else {{-- Deduction after VAT --}} @endif @else {{-- If no deduction, just show TAX column --}} @endif @foreach ($invoice->items as $item) @php $item->conversion_rate = $applicable_conversion_rate; @endphp @if($invoice->is_deduction_excluding_vat) {{-- Deduction before VAT --}} @if($invoice_total_deducted_amount) @endif {{-- TAX --}} @else {{-- TAX --}} @if($invoice_total_deducted_amount) @endif @endif @include('scrumboard::livewire.invoices.partials.rows.detail') @endforeach
@if($is_editable) @endif DESCRIPTION COST QTYDOWN PAYMENT TAXTAX DOWN PAYMENTTAXAMOUNT
@if($is_editable)
@endif
{{ $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 }}
{{ cMoney($item->subtotal, $invoice->currency, true) }} {{ $item->quantity }} {{-- deduction logic --}} @include('scrumboard::livewire.invoices.partials.rows.deduction', ['item' => $item]) @include('scrumboard::livewire.invoices.partials.rows.tax', ['item' => $item]) @include('scrumboard::livewire.invoices.partials.rows.tax', ['item' => $item]) {{-- deduction logic --}} @include('scrumboard::livewire.invoices.partials.rows.deduction', ['item' => $item]) {{ cMoney($item->total, $invoice->currency, true) }} @if($item->total_amount_adjustment) @php $rawTotal = $item->getRawOriginal('total'); $formattedTotal = cMoney(intToMoney($rawTotal), $invoice->currency, true); @endphp * @endif
@include('scrumboard::livewire.invoices.partials.payable.supplier') @include('scrumboard::livewire.invoices.partials.payable.zatca')
@include('scrumboard::livewire.invoices.partials.rows.charges')