@extends('setting.nav') @section('title', $quotation->quotation_number) @section('styles') @endsection @section('content')

Quotation {{ $quotation->quotation_number }}

Priced as of {{ $quotation->quotation_date?->format('d M Y') }} — the figures below are a snapshot and will not change when the catalogue does.

@if ($quotation->message_id) Back to mail @endif All quotations
@if ($quotation->needs_review)
This quotation needs checking before it goes out.
{{ $quotation->review_note }}
@endif

QUOTATION

{{ $quotation->quotation_number }}
{{-- The account, as the app knows it. A logo and a registered address belong to a company-profile setting the module does not have yet; the name is what can be shown honestly today. --}}
{{ $owner->company_name ?? ($owner->fname ?? '') . ' ' . ($owner->lname ?? '') }}
{{ $owner->email ?? '' }}
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 }}
@forelse ($quotation->items as $item) {{-- A line with no price must never print as ₹0.00. This page is saved as a PDF and sent to customers, and a zero in a price column reads as "free", not as "we could not price this". The three money cells say so in words instead. --}} @php $priced = $item->product_id && (float) $item->unit_price > 0; @endphp @if ($priced) @else @endif @empty @endforelse
# Item Qty Unit price Tax Amount
{{ $loop->iteration }}
{{ $item->product_name }}
@if ($item->product_code)
{{ $item->product_code }}
@endif @if ($item->description)
{{ \Illuminate\Support\Str::limit($item->description, 140) }}
@endif {{-- Provenance, on screen only. The customer's copy shows the product; the salesperson's copy also shows how the AI got there and how sure it was. --}}
{{ $item->matchLabel() }}@if ($item->product_id), {{ $item->confidence }}%@endif @if ($item->enquiry_phrase) asked as: “{{ \Illuminate\Support\Str::limit($item->enquiry_phrase, 90) }}” @endif
@if ($item->needs_review)
{{ $item->review_reason }}
@endif
{{ $item->quantityLabel() }}{{ $quotation->money($item->unit_price) }} {{ $quotation->money($item->tax_amount) }}
{{ rtrim(rtrim(number_format((float) $item->tax_percentage, 2), '0'), '.') }}%
{{ $quotation->money($item->line_total) }} To be advised
This quotation has no lines.
@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
    @foreach (preg_split('/\R/', $quotation->terms_conditions) as $line) @if (trim($line) !== '')
  • {{ trim($line) }}
  • @endif @endforeach
@endif @if ($preparedBy)
Prepared by {{ trim(($preparedBy->fname ?? '') . ' ' . ($preparedBy->lname ?? '')) ?: $preparedBy->email }} on {{ $quotation->created_at?->format('d M Y H:i') }}.
@endif
@endsection