@extends('layouts.dashboard.superadminapp') @section('title', 'View Quotation') @section('styles') @endsection @section('content')

UEPL | View Quotation

day, 00 month 0000

{{ $quotation->quotation_no }}

{{ $quotation->customer->company ?? $quotation->customer_name ?? 'N/A' }}

@if($quotation->status == 'approved') Approved @elseif($quotation->status == 'rejected') Rejected @else Pending @endif {{ \Carbon\Carbon::parse($quotation->quotation_date)->format('d M Y') }}
Contact
{{ $quotation->phone ?: '-' }}
Email
{{ $quotation->email ?: '-' }}
Product Type
{{ $quotation->product_type ?: '-' }}
Grand Total
{{ number_format($quotation->grand_total, 2) }}
Customer Information
Customer Name {{ $quotation->customer->company ?? $quotation->customer_name ?? '-' }}
Address {{ $quotation->address ?: '-' }}
GST No {{ $quotation->gst ?: '-' }}
Phone {{ $quotation->phone ?: '-' }}
Email @if($quotation->email) {{ $quotation->email }} @else - @endif
Customer Ref No {{ $quotation->cust_ref_no ?: '-' }}
RFQ & Product Information
RFQ No {{ $quotation->rfq->rfq_no ?? $quotation->rfq_no ?? '-' }}
RFQ Date {{ $quotation->rfq_date ? \Carbon\Carbon::parse($quotation->rfq_date)->format('d M Y') : '-' }}
Part No {{ $quotation->part_no ?: '-' }}
Project/Material No {{ $quotation->project_material_no ?: '-' }}
Drawing No {{ $quotation->drawing_no ?: '-' }}
Drawing Revision {{ $quotation->drawing_rev ?: '-' }}
Quantity {{ $quotation->quantity ?: '-' }} {{ $quotation->quantity_uom }}
@if($quotation->description)
Description

{{ $quotation->description }}

@endif @php $rawMaterials = is_array($quotation->raw_materials) ? $quotation->raw_materials : json_decode($quotation->raw_materials, true); @endphp @if($rawMaterials && count($rawMaterials) > 0)
Raw Material Charges
@foreach($rawMaterials as $index => $rm) @endforeach
# Material Type Quantity Rate RM Weight RM Cost Value
{{ $index + 1 }} {{ $rm['material_id'] ?? '-' }} {{ $rm['type'] ?? '-' }} {{ $rm['quantity'] ?? '-' }} {{ isset($rm['rate']) ? number_format($rm['rate'], 2) : '-' }} {{ $rm['rm_weight'] ?? '-' }} {{ isset($rm['rm_cost']) ? number_format($rm['rm_cost'], 2) : '-' }} {{ isset($rm['value']) ? number_format($rm['value'], 2) : '-' }}
@endif @php $conversionCosts = is_array($quotation->conversion_costs) ? $quotation->conversion_costs : json_decode($quotation->conversion_costs, true); @endphp @if($conversionCosts && count($conversionCosts) > 0)
Conversion Costs
@foreach($conversionCosts as $index => $cc) @endforeach
# Description Quantity Unit Rate (INR) Value (INR)
{{ $index + 1 }} {{ $cc['desc'] ?? '-' }} {{ $cc['quantity'] ?? '-' }} {{ $cc['unit'] ?? '-' }} {{ isset($cc['rate']) ? number_format($cc['rate'], 2) : '-' }} {{ isset($cc['value']) ? number_format($cc['value'], 2) : '-' }}
@endif @php $packingCharges = is_array($quotation->packing_charges) ? $quotation->packing_charges : json_decode($quotation->packing_charges, true); @endphp @if($packingCharges && count($packingCharges) > 0)
Packing Charges
@foreach($packingCharges as $index => $pc) @endforeach
# Description Quantity Unit Rate (INR) Value (INR)
{{ $index + 1 }} {{ $pc['desc'] ?? '-' }} {{ $pc['quantity'] ?? '-' }} {{ $pc['unit'] ?? '-' }} {{ isset($pc['rate']) ? number_format($pc['rate'], 2) : '-' }} {{ isset($pc['value']) ? number_format($pc['value'], 2) : '-' }}
@endif
Note / Remarks
@if($quotation->note)

{{ $quotation->note }}

@else

No notes available

@endif
Summary
Sub Total
{{ number_format($quotation->sub_total, 2) }}
Discount (%)
{{ $quotation->discount ?: '0' }}%
Round Up
{{ number_format($quotation->round_up, 2) }}

Grand Total
{{ number_format($quotation->grand_total, 2) }}
Back to List
Print PDF Edit Quotation
@endsection