@php $c = $document->company; @endphp
| # | Product | Qty | Unit | Price | Total |
|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $it->product_code }}
{{ $it->product_name }}
@if($it->description){{ $it->description }} @endif
@if($it->quantity_mode!=='pcs')
@if($it->quantity_mode==='area') {{ $it->length }} × {{ $it->width }} × {{ (int)$it->pieces }} pcs @endif
@if($it->quantity_mode==='linear') {{ $it->length }} m × {{ (int)$it->pieces }} pcs @endif
@if($it->quantity_mode==='volume') {{ $it->length }} × {{ $it->width }} × {{ $it->height }} × {{ (int)$it->pieces }} pcs @endif
@endif
|
{{ rtrim(rtrim(number_format($it->quantity,3,'.',''),'0'),'.') }} | {{ $it->unit_type }} | {{ number_format($it->unit_price, 2) }} | {{ number_format($it->line_total, 2) }} |
| Subtotal | {{ $document->currency }} {{ number_format($document->subtotal, 2) }} |
| Discount @if($document->discount_type==='percent')({{ rtrim(rtrim(number_format($document->discount_value,2),'0'),'.') }}%)@endif | -{{ number_format($document->discount_amount, 2) }} |
| Tax ({{ rtrim(rtrim(number_format($document->tax_rate,2),'0'),'.') }}%) | {{ number_format($document->tax_amount, 2) }} |
| Total | {{ $document->currency }} {{ number_format($document->total, 2) }} |