{{-- 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 }}
Quotation for {{ $quotation->customer_name }}
{{ $quotation->customer_email }}
Date {{ $quotation->quotation_date?->format('d M Y') }}
Valid until {{ $quotation->valid_until?->format('d M Y') ?? '—' }}
Currency {{ $quotation->currency }}
@foreach ($quotation->items as $item) @php $priced = $item->product_id && (float) $item->unit_price > 0; @endphp {{-- Never ₹0.00 for something that could not be priced: on the customer's own copy a zero reads as "free". --}} @if ($priced) @else @endif @endforeach
# 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() }}{{ $quotation->money($item->unit_price) }} {{ $quotation->money($item->line_total) }}
incl. tax {{ $quotation->money($item->tax_amount) }}
— To be advised
@if ((float) $quotation->discount_total > 0) @endif
Subtotal {{ $quotation->money($quotation->subtotal) }}
Discount − {{ $quotation->money($quotation->discount_total) }}
Tax {{ $quotation->money($quotation->tax_total) }}
Total {{ $quotation->money($quotation->grand_total) }}
@if (trim((string) $quotation->terms_conditions) !== '')

Terms & conditions

@endif
{{ $quotation->quotation_number }} · {{ $sellerName }} · generated {{ now()->format('d M Y') }}