{{-- The quotation as it reaches the customer. Written for dompdf, not for a browser, which is why nothing here is shared with quotations/show.blade.php: dompdf supports a subset of CSS 2.1 with no flexbox and no grid, so the layout is tables and floats, every rule is in one
QUOTATION{{ $quotation->quotation_number }}
|
{{ $sellerName }} {{ $sellerEmail }} |
|
|
| # | Item | Qty | Unit price | Amount | ||
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $item->product_name }}
@if ($item->product_code)
{{ $item->product_code }}
@endif
@if ($item->description)
{{ \Illuminate\Support\Str::limit($item->description, 150) }}
@endif
|
{{ $item->quantityLabel() }} | {{-- Never ₹0.00 for something that could not be priced: on the customer's own copy a zero reads as "free". --}} @if ($priced){{ $quotation->money($item->unit_price) }} |
{{ $quotation->money($item->line_total) }}
incl. tax {{ $quotation->money($item->tax_amount) }}
|
@else
— | To be advised | @endif
| Subtotal | {{ $quotation->money($quotation->subtotal) }} |
| Discount | − {{ $quotation->money($quotation->discount_total) }} |
| Tax | {{ $quotation->money($quotation->tax_total) }} |
| Total | {{ $quotation->money($quotation->grand_total) }} |