@php $siteName = \App\Models\Setting::get('site_name', 'pcfy.in'); $siteTagline = \App\Models\Setting::get('site_tagline', 'Better computers. Half the price.'); $phone = \App\Models\Setting::get('contact_phone', '+91 98765 43210'); $email = \App\Models\Setting::get('contact_email', 'hello@pcfy.in'); $address = \App\Models\Setting::get('contact_address', 'India'); $logo = \App\Models\Setting::get('site_logo', ''); $subtotal = $quote->items->sum(fn($i) => ($i->unit_price ?? 0) * $i->quantity); $validUntil = $quote->valid_until ? $quote->valid_until->format('d M Y') : $quote->created_at->addDays(15)->format('d M Y'); $createdAt = $quote->created_at->format('d M Y'); @endphp {{-- HEADER --}}
@if($logo) {{ $siteName }}
@else
{{ $siteName }}
@endif
{{ $siteTagline }}
{{ $phone }}  ·  {{ $email }}
{{ $address }}
Quotation
Quote #: {{ $quote->quote_number }}
Date: {{ $createdAt }}
Valid until: {{ $validUntil }} @if($quote->assignedTo)
Contact: {{ $quote->assignedTo->name }} @endif
{{ \App\Models\Quote::statusLabel($quote->status) }}
{{-- CUSTOMER --}}
{{ $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
Items: {{ $quote->items->count() }}
@if($quote->grand_total > 0)
Grand total: ₹{{ number_format($quote->grand_total / 100, 2, '.', ',') }}
@elseif($subtotal > 0)
Subtotal: ₹{{ number_format($subtotal / 100, 2, '.', ',') }}
@endif @if($quote->payment_terms)
Payment: {{ $quote->payment_terms }}
@endif
Quote date: {{ $createdAt }}
{{-- ITEMS TABLE --}}
Items & Pricing
@foreach($quote->items as $i => $item) @php $lineTotal = ($item->unit_price ?? 0) * $item->quantity; $gradeClass = match(strtoupper($item->grade ?? '')) { 'A'=>'grade-a','B'=>'grade-b','C'=>'grade-c', default=>'' }; @endphp @endforeach
# Product Description Grade Qty Unit Price Line 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 + NOTES --}}
@if($quote->message)
{{ $quote->message }}
@endif {{-- Grade legend --}}
Grade A Like new — minimal to no signs of use
Grade B Light cosmetic marks, fully functional
Grade C Noticeable wear, 100% working
@if($quote->gst_percent > 0 && $quote->gst_amount > 0) @elseif(!$quote->gst_percent) @endif @if($quote->discount_amount > 0) @endif @if($quote->shipping_amount > 0) @endif
Subtotal @if($subtotal > 0)₹{{ number_format($subtotal / 100, 2, '.', ',') }}@else @endif
GST ({{ $quote->gst_percent }}%) ₹{{ number_format($quote->gst_amount / 100, 2, '.', ',') }}
GST To be confirmed
{{ $quote->discount_label ?: 'Discount' }} − ₹{{ number_format($quote->discount_amount / 100, 2, '.', ',') }}
{{ $quote->shipping_label ?: 'Shipping' }} ₹{{ number_format($quote->shipping_amount / 100, 2, '.', ',') }}
Grand Total @if($quote->grand_total > 0) ₹{{ number_format($quote->grand_total / 100, 2, '.', ',') }} @elseif($subtotal > 0) ₹{{ number_format($subtotal / 100, 2, '.', ',') }} @else Price TBD @endif
@if(!$quote->gst_percent)
* GST at applicable rates will be added on the final invoice. All prices in INR.
@else
* All prices in INR inclusive of GST.
@endif
Quote valid until {{ $validUntil }}
@if($quote->payment_terms)
Payment: {{ $quote->payment_terms }}
@endif
Prices subject to stock availability. Contact us to confirm before placing order.
{{ $phone }}  ·  {{ $email }}
{{-- TERMS --}}
Terms & Conditions
1. All prices are exclusive of GST unless stated. GST at applicable rates will be charged on the final invoice.
2. Payment: 100% advance or as mutually agreed. Bank transfer, UPI, and cheque accepted.
3. Delivery: 3–7 working days within India after payment confirmation. Shipping charges as per actuals.
4. Warranty: Minimum 6-month warranty from date of delivery. Grade A items may carry manufacturer warranty.
5. Returns: Products can be returned within 7 days if found defective. Cosmetic issues must be raised within 24 hours of delivery.
6. GST invoice will be issued upon order confirmation and payment receipt.
{{-- FOOTER --}}