@extends('template.layouts.template-base') @section('title', 'Quotation Details') @section('content')
Update Quote @if ($quotation->status != 6 && $quotation->status != 7) Convert to Sales Convert to Sales @endif

Quote ID : {{ $quotation->quotation_no }}In-Progress

{{ $quotation->client->name ?? 'N/A' }} | Total : ₹{{ number_format($quotation->total_amount ?? 0, 2) }}

Version {{ $quotation->version ?? '1' }} | Last version 2 was updated by {{ $quotation->user->name ?? 'N/A' }} on Dec 02, 2025 - 00:00 AM

Quotation & Customer Information

Customer Name

{{ $quotation->client->name ?? 'N/A' }}

Quote By

{{ $quotation->user->name ?? 'N/A' }}

Subject

{{ $quotation->subject ?? 'N/A' }}

Customer Reference ID

{{ $quotation->customer_reference_id ?? 'N/A' }}

Bill From

@if ($quotation->billFrom)
{{ $quotation->billFrom->address_line_1 }}
@if ($quotation->billFrom->address_line_2) {{ $quotation->billFrom->address_line_2 }}
@endif {{ $quotation->billFrom->city }}, {{ $quotation->billFrom->state }},
{{ $quotation->billFrom->country }}.
PIN: {{ $quotation->billFrom->pincode }}
@else
N/A
@endif

Bill To

@if ($quotation->billTo)
{{ $quotation->billTo->address_line_1 }}
@if ($quotation->billTo->address_line_2) {{ $quotation->billTo->address_line_2 }}
@endif {{ $quotation->billTo->city }}, {{ $quotation->billTo->state }},
{{ $quotation->billTo->country }}.
PIN: {{ $quotation->billTo->pincode }}
@else
N/A
@endif

Ship From

@if ($quotation->shipFrom)
{{ $quotation->shipFrom->address_line_1 }}
@if ($quotation->shipFrom->address_line_2) {{ $quotation->shipFrom->address_line_2 }}
@endif {{ $quotation->shipFrom->city }}, {{ $quotation->shipFrom->state }},
{{ $quotation->shipFrom->country }}.
PIN: {{ $quotation->shipFrom->pincode }}
@else
N/A
@endif

Ship To

@if ($quotation->shipTo)
{{ $quotation->shipTo->address_line_1 }}
@if ($quotation->shipTo->address_line_2) {{ $quotation->shipTo->address_line_2 }}
@endif {{ $quotation->shipTo->city }}, {{ $quotation->shipTo->state }},
{{ $quotation->shipTo->country }}.
PIN: {{ $quotation->shipTo->pincode }}
@else
N/A
@endif

GST Number

{{ $quotation->gst_number ?? 'N/A' }}

PAN number

{{ $quotation->pan_number ?? 'N/A' }}

Bank

{{ $quotation->bank->bank_name ?? 'N/A' }}

Quotation Date

{{ date('d/m/Y', strtotime($quotation->created_at ?? '00/00/0000')) }}

Validity

{{ $quotation->validity ?? 'N/A' }}

Terms of Payment

{{ $quotation->terms_of_payment ?? 'N/A' }}

Sales Person

{{ $quotation->user->name ?? 'N/A' }}
Version 3
@if (in_array($quotation->discount_type, [3, 4])) @endif @php $grandTotal = 0; $subTotal = 0; $totalTax = 0; @endphp @foreach ($quotation->quotationProducts as $product) @php $cgst = $product->cgst ?? 0; $sgst = $product->sgst ?? 0; $igst = $product->igst ?? 0; $lineTotal = $product->amount + $cgst + $sgst + $igst; $subTotal += $product->amount; $grandTotal += $lineTotal; @endphp @if (in_array($quotation->discount_type, [3, 4])) @endif @endforeach {{-- Sub Total --}} {{-- Other Charges --}} @foreach ($quotation->charges as $charge) @endforeach {{-- Discount --}} {{-- Discount (Show only for Overall Product Discount) --}} @if ($quotation->discount_type == 1 && ($quotation->overall_discount_amount ?? 0) > 0) @endif {{-- Total Tax --}} @if (($quotation->total_tax_amount ?? 0) > 0) @endif {{-- Roundoff --}} @if (($quotation->roundoff ?? 0) != 0) @endif {{-- Grand Total --}}
Item ID/Name Unit Qty Rate {{ $quotation->discount_type == 3 ? 'Discount (%)' : 'Discount (₹)' }} Amount
@if ($product->description) T @endif {{ $product->product_name ?? 'N/A' }}
{{ $product->master->value ?? 'N/A' }} {{ $product->quantity }} ₹{{ number_format($product->rate, 2) }} {{ $product->discount ?? '0' }} {{ $quotation->discount_type == 3 ? '%' : '' }} ₹{{ number_format($product->amount, 2) }}
Sub Total : ₹{{ number_format($subTotal, 2) }}
{{ $charge->otherCharge->name ?? 'Other Charge' }} : ₹{{ number_format($charge->amount, 2) }}
Discount : - ₹{{ number_format($quotation->overall_discount_amount, 2) }}
Total Tax Amount : ₹{{ number_format($quotation->total_tax_amount, 2) }}
Roundoff : ₹{{ number_format($quotation->roundoff, 2) }}
Grand Total Amount : ₹{{ number_format($quotation->total_amount, 2) }}
Delivery Terms
@php $periodType = match ($quotation->time_period_type) { 1 => 'Week', 2 => 'Day', default => '', }; $periodValue = $quotation->time_period ?? 0; // plural handling if ($periodValue > 1) { $periodType .= 's'; } @endphp
Delivery terms: {{ $periodValue }} {{ $periodType }} from the date of your Purchase order ALONG WITH 100% ADVANCE PAYMENT
Standing Instructions

{!! $quotation->standing_instruction ?? 'N/A' !!}

Thanking Notes

{!! $quotation->thanking_notes ?? 'N/A' !!}

Cover Letter

{!! $quotation->cover_letter ?? 'N/A' !!}

@forelse ($revisions as $revision)
@if ($quotation->client && $quotation->client->logo) Client Logo @else client @endif
@if ($loop->last) Quotation Created - Version {{ $revision->version }} @else Quotation Updated - Version {{ $revision->version }} @endif

{{ $revision->user->name ?? 'N/A' }} - {{ \Carbon\Carbon::parse($revision->created_at)->format('M d, Y - h:i A') }}

{{ $revision->quotation_no }}_V{{ $revision->version }}.pdf
₹{{ number_format($revision->total_amount, 2) }}
@empty

No revision history found.

@endforelse
@forelse ($followups as $followup)
Follow Up
Follow Up by {{ $followup->users->name ?? 'N/A' }}
{{ $followup->created_at->format('M d, Y - h:i A') }}

{{ $followup->remarks }}

Next Schedule

{{ $followup->followup_date ? \Carbon\Carbon::parse($followup->followup_date)->format('M d, Y') : 'N/A' }}
@empty

No follow up history found.

@endforelse
@endsection @section('scripts') @endsection