@php use App\Models\Setting; use App\Support\AddressFormatter; $company = [ 'name' => Setting::get('company_name', config('app.name')), 'address' => Setting::get('company_address', ''), 'owner' => Setting::get('company_owner', ''), 'pincode' => Setting::get('company_pincode', ''), 'phone' => Setting::get('company_phone', ''), 'email' => Setting::get('company_email', ''), 'gstin' => Setting::get('company_gstin', ''), 'state' => Setting::get('company_state', ''), 'state_code' => Setting::get('company_state_code', ''), ]; $companyAddress = collect([ $company['owner'] ? "({$company['owner']})" : null, AddressFormatter::flow($company['address']), ])->filter()->implode(', '); if ($company['pincode']) { $companyAddress = trim($companyAddress.' - '.$company['pincode'], ' -'); } $customerAddress = AddressFormatter::flow($quotation->customer->address); $interState = (float) $quotation->igst_total > 0; @endphp
|
To {{ $quotation->customer->name }} @if ($quotation->customer->contact_person){{ $quotation->customer->contact_person }} @endif @if ($customerAddress){{ $customerAddress }} @endif {{ collect([$quotation->customer->city, $quotation->customer->state, $quotation->customer->pincode])->filter()->implode(', ') }} @if ($quotation->customer->gstin)GSTIN/UIN: {{ $quotation->customer->gstin }}@endif |
Quotation Details Quotation No.: {{ $quotation->quotation_number }} Dated: {{ $quotation->quotation_date->format('d-M-Y') }} @if ($quotation->valid_until)Valid Until: {{ $quotation->valid_until->format('d-M-Y') }} @endif @if ($quotation->place_of_supply)Place of Supply: {{ $quotation->place_of_supply }} @endif Supply: {{ $interState ? 'Inter-State (IGST)' : 'Intra-State (CGST + SGST)' }} @if ($quotation->price_tier)Price tier: {{ $quotation->price_tier }} @endif Dispatch from: {{ $quotation->warehouse->name }} |
| Sl No. |
Description of Goods | HSN | GST Rate |
Quantity | Rate | per | Amount |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->product?->name ?? "Deleted product (#{$item->product_id})" }} | {{ $item->hsn_code ?: '—' }} | {{ rtrim(rtrim(number_format((float) $item->tax_rate, 2), '0'), '.') }} % | {{ $item->quantity }} {{ $item->product?->unit ?: 'PCS' }} | {{ number_format((float) $item->unit_price, 2) }} | {{ $item->product?->unit ?: 'PCS' }} | {{ number_format((float) $item->line_total, 2) }} |
| Total | {{ $quotation->items->sum('quantity') }} PCS | {{ number_format((float) $quotation->subtotal, 2) }} | |||||
| IGST | {{ number_format((float) $quotation->igst_total, 2) }} | ||||||
| CGST | {{ number_format((float) $quotation->cgst_total, 2) }} | ||||||
| SGST | {{ number_format((float) $quotation->sgst_total, 2) }} | ||||||
| Round Off | {{ number_format((float) $quotation->round_off, 2) }} | ||||||
| Grand Total | ₹ {{ number_format((float) $quotation->total, 2) }} | ||||||
Notes: {{ $quotation->notes }}
@endifThis is a price estimate, not a tax invoice. Prices and stock availability are subject to confirmation at the time of order @if ($quotation->valid_until) and are valid only until {{ $quotation->valid_until->format('d-M-Y') }}@endif.