@extends('admin.master') @section('content')

Quotation {{ $quotation->number() }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if($quotation->isConverted()) @elseif($pricing['expired'])
Quoted prices have expired. Send live will recalculate current catalog prices.
@else
Quoted prices are still valid. Send live will use quoted prices.
@endif

{{ $quotation->number() }}

Download PDF @if(!$quotation->isConverted()) @endif
Company Name {{ $quotation->company_name }}
Contact Person {{ $quotation->contact_person }}
Phone / WhatsApp {{ $quotation->phone }}
Email {{ $quotation->email }}
VAT Number {{ $quotation->vat_number ?: '--' }}
Country {{ $quotation->country }}
City {{ $quotation->city }}
Address {{ $quotation->address }}
Notes {{ $quotation->notes ?: '--' }}
Valid Until {{ $quotation->valid_until?->format('d-m-Y') }} @if($quotation->isExpired() && !$quotation->isConverted()) Expired @endif
Created {{ $quotation->created_at?->format('d M Y h:i A') }}
Quoted Items
@foreach($pricing['lines'] as $row) @php $item = $row['item']; $available = $stockMap[$item->id] ?? 0; @endphp @endforeach @if((float) $pricing['discount'] > 0) @endif @if((float) $pricing['delivery'] > 0) @endif
Item Color Size Qty Quoted Unit Live Unit Embroidery Stock Line Total
{{ $item->product_name }} {{ $item->color }} {{ $item->size }} {{ $item->qty }} {{ config('constants.currency_symbol') }} {{ number_format((float) $item->unit_price, 2) }} {{ config('constants.currency_symbol') }} {{ number_format((float) $row['unit_price'], 2) }} {{ config('constants.currency_symbol') }} {{ number_format((float) $item->embroidery_price, 2) }} {{ $available }} / {{ $item->qty }} {{ config('constants.currency_symbol') }} {{ number_format((float) $row['line_total'], 2) }}
Total Amount {{ config('constants.currency_symbol') }} {{ number_format((float) $pricing['goods_total'], 2) }}
Discount {{ config('constants.currency_symbol') }} {{ number_format((float) $pricing['discount'], 2) }}
Delivery {{ config('constants.currency_symbol') }} {{ number_format((float) $pricing['delivery'], 2) }}
VAT (15%) {{ config('constants.currency_symbol') }} {{ number_format((float) $pricing['vat_amount'], 2) }}
Grand Total {{ config('constants.currency_symbol') }} {{ number_format((float) $pricing['grand_total'], 2) }}
@if(!$quotation->isConverted()) @endif @endsection @push('js-script') @endpush