@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 --}}
{{-- CUSTOMER --}}
{{-- ITEMS TABLE --}}
Items & Pricing
| # |
Product Description |
Grade |
Qty |
Unit Price |
Line Total |
@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
| {{ $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
|
@endforeach
{{-- TOTALS + NOTES --}}
@if($quote->message)
Customer requirements
{{ $quote->message }}
@endif
{{-- Grade legend --}}
Grade reference
| Grade A |
Like new — minimal to no signs of use |
| Grade B |
Light cosmetic marks, fully functional |
| Grade C |
Noticeable wear, 100% working |
| Subtotal |
@if($subtotal > 0)₹{{ number_format($subtotal / 100, 2, '.', ',') }}@else —@endif
|
@if($quote->gst_percent > 0 && $quote->gst_amount > 0)
| GST ({{ $quote->gst_percent }}%) |
₹{{ number_format($quote->gst_amount / 100, 2, '.', ',') }} |
@elseif(!$quote->gst_percent)
| GST |
To be confirmed |
@endif
@if($quote->discount_amount > 0)
| {{ $quote->discount_label ?: 'Discount' }} |
− ₹{{ number_format($quote->discount_amount / 100, 2, '.', ',') }} |
@endif
@if($quote->shipping_amount > 0)
| {{ $quote->shipping_label ?: 'Shipping' }} |
₹{{ number_format($quote->shipping_amount / 100, 2, '.', ',') }} |
@endif
| |
| 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 --}}