@php $siteName = \App\Models\Setting::get('site_name', 'pcfy.in'); $phone = \App\Models\Setting::get('contact_phone', ''); $email = \App\Models\Setting::get('contact_email', ''); $subtotal = $quote->items_total; @endphp
{{-- Header --}}
{{ $siteName }}
{{ \App\Models\Setting::get('site_tagline','') }}
{{ $quote->quote_number }}
{{ \App\Models\Quote::statusLabel($quote->status) }}
{{-- Customer + Quote meta --}}
Bill to
{{ $quote->customer_name }}
@if($quote->company_name)
{{ $quote->company_name }}
@endif @if($quote->billing_address)
{{ $quote->billing_address }}
@endif @if($quote->customer_email)
{{ $quote->customer_email }}
@endif @if($quote->customer_phone)
{{ $quote->customer_phone }}
@endif @if($quote->gstin)
GSTIN: {{ $quote->gstin }}
@endif
Quote Details
Quote No.
{{ $quote->quote_number }}
Date
{{ $quote->created_at->format('d M Y') }}
@if($quote->valid_until)
Valid Until
{{ $quote->valid_until->format('d M Y') }} @if($quote->valid_until->isPast()) (expired) @endif
@endif @if($quote->payment_terms)
Payment
{{ $quote->payment_terms }}
@endif @if($quote->assignedTo)
Contact
{{ $quote->assignedTo->name }}
@endif
{{-- Items table --}}
Items & Pricing
@foreach($quote->items as $i => $item) @php $lineTotal = ($item->unit_price ?? 0) * $item->quantity; @endphp @endforeach
# Product Grade Qty Unit Price Total
{{ $i + 1 }}
{{ $item->product_name }}
@if($item->product_sku)
SKU: {{ $item->product_sku }}
@endif @if($item->notes)
{{ $item->notes }}
@endif
@if($item->grade) Grade {{ strtoupper($item->grade) }} @else —@endif {{ $item->quantity }} @if($item->unit_price) ₹{{ number_format($item->unit_price/100, 2, '.', ',') }} @else TBD@endif @if($lineTotal > 0) ₹{{ number_format($lineTotal/100, 2, '.', ',') }} @else @endif
{{-- Totals --}}
@if($quote->gst_percent > 0 && $quote->gst_amount > 0) @endif @if($quote->discount_amount > 0) @endif @if($quote->shipping_amount > 0) @endif @if($quote->grand_total > 0) @endif
Subtotal @if($subtotal > 0)₹{{ number_format($subtotal/100, 2, '.', ',') }}@else —@endif
GST ({{ $quote->gst_percent }}%) ₹{{ number_format($quote->gst_amount/100, 2, '.', ',') }}
{{ $quote->discount_label ?: 'Discount' }} − ₹{{ number_format($quote->discount_amount/100, 2, '.', ',') }}
{{ $quote->shipping_label ?: 'Shipping' }} ₹{{ number_format($quote->shipping_amount/100, 2, '.', ',') }}
Grand Total ₹{{ number_format($quote->grand_total/100, 2, '.', ',') }}
@if($quote->valid_until && !$quote->valid_until->isPast())
Quote valid until {{ $quote->valid_until->format('d M Y') }}
Prices subject to stock availability. Contact us before placing order.
@if($phone || $email)
{{ $phone }}@if($phone && $email)  ·  @endif{{ $email }}
@endif
@endif
{{-- Customer message --}} @if($quote->message)
Your Requirements
{{ $quote->message }}
@endif {{-- Contact --}}
Questions? Contact us
@if($phone)📞 {{ $phone }}@endif @if($email)✉️ {{ $email }}@endif