@php($pricesVisible = $showPrices ?? true)
@if($pricesVisible)@endif @foreach($document->items as $item)@if($pricesVisible)@endif@endforeach @if($pricesVisible)@endif
ProductUnitQtyUnit PriceDiscountVAT TypeTaxTotal
{{ $item->product_name }}{{ $item->unit_name }}{{ rtrim(rtrim(number_format($item->quantity,4,'.',','),'0'),'.') }}{{ number_format($item->unit_price,2) }}{{ number_format($item->discount,2) }}{{ \App\Models\TaxRate::typeLabel($item->tax_details['tax_type']??null,$item->tax_details['tax_rate']??null) }}{{ number_format($item->tax_amount,2) }}{{ number_format($item->line_total,2) }}
Before Tax{{ number_format($document->subtotal,2) }}
Tax{{ number_format($document->tax_amount,2) }}
Total{{ number_format($document->total_amount,2) }}