@php($pricesVisible = $showPrices ?? true)
| Product | Unit | Qty | @if($pricesVisible)Unit Price | Discount | VAT Type | Tax | Total | @endif
|---|---|---|---|---|---|---|---|
| {{ $item->product_name }} | {{ $item->unit_name }} | {{ rtrim(rtrim(number_format($item->quantity,4,'.',','),'0'),'.') }} | @if($pricesVisible){{ 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) }} | @endif
| Before Tax | {{ number_format($document->subtotal,2) }} | ||||||
| Tax | {{ number_format($document->tax_amount,2) }} | ||||||
| Total | {{ number_format($document->total_amount,2) }} | ||||||