@if($invoice_total_deducted_amount = $invoice->totalDeductedAmount()) @endif @foreach ($invoice->items as $item) @php $item->conversion_rate = $applicable_conversion_rate; @endphp @if($invoice_total_deducted_amount) @endif @endforeach
DESCRIPTION PRICE QTYDOWN PAYMENTTAX AMOUNT
{{$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}} @if($item->deduction) @cMoney(-($item->deduction->manual_amount ? $item->deduction->manual_amount : $item->deduction?->amount ?? 0), $invoice->currency, true) @if($item->deduction->is_percentage) ({{$item->deduction->percentage}}%) @endif @if($item->deduction->manual_amount)
@cMoney(-($item->deduction->amount), $invoice->currency, true)
@endif @else @cMoney(0, $invoice->currency) @endif
@isset($item->pivotTaxes[0]) {{$item->pivotTaxes[0]?->category == 2 ? '-' : ''}}@cMoney($item->pivotTaxes[0]?->manual_amount ? : ($item->pivotTaxes[0]?->calculated_amount ?? 0), $invoice->currency, true) @if($item->pivotTaxes[0]->type == 'Percent') ({{ $item->pivotTaxes[0]->amount }}%) @endif @if ($item->pivotTaxes[0]->manual_amount)
{{$item->pivotTaxes[0]?->category == 2 ? '-' : ''}}@cMoney($item->pivotTaxes[0]?->calculated_amount, $invoice->currency, true)
@endif @else @cMoney(0, $invoice->currency) @endisset
@cMoney($item->total, $invoice->currency, true) @if($item->total_amount_adjustment)
@cMoney(intToMoney($item->getRawOriginal('total')), $invoice->currency, true)
@endif