@extends('layouts.app') @section('title', 'Quotation ' . $quotation->quotation_number) @section('page_title', 'Quotation Details') @section('content')
Back to Quotations
@if($quotation->canConvert() && auth()->user()->hasPermission('quotations.convert'))
@csrf
@endif

PREEZ BRANDS LTD

Nasser Road, Kampala, Uganda
Phone: +256 700 000 000 | Email: sales@preezbrands.com

QUOTATION

{{ $quotation->quotation_number }}
@php $badge = match($quotation->status) { 'draft' => 'secondary', 'sent' => 'primary', 'approved' => 'success', 'rejected' => 'danger', 'expired' => 'dark', 'converted' => 'info', default => 'secondary' }; @endphp {{ ucfirst($quotation->status) }}
QUOTED TO:
{{ $quotation->client->full_name }}

Code: {{ $quotation->client->client_code }}
Phone: {{ $quotation->client->phone }}
@if($quotation->client->email) Email: {{ $quotation->client->email }}
@endif @if($quotation->client->tin) TIN: {{ $quotation->client->tin }} @endif

DETAILS:

Date Issued: {{ $quotation->quotation_date->format('M d, Y') }}
Expiry Date: {{ $quotation->expiry_date ? $quotation->expiry_date->format('M d, Y') : '-' }}
Prepared By: {{ $quotation->createdBy->full_name }}

@foreach($quotation->items as $item) @endforeach
Item / SKU Unit Price Qty Discount Total
{{ $item->item_name }}
{{ $item->item_code }}
{{ number_format($item->unit_price) }} UGX {{ $item->quantity }} -{{ number_format($item->discount) }} UGX {{ number_format($item->total_price) }} UGX
Subtotal {{ number_format($quotation->subtotal) }} UGX
@if($quotation->discount > 0)
Flat Discount -{{ number_format($quotation->discount) }} UGX
@endif
VAT ({{ (int)$quotation->tax_rate }}%) {{ number_format($quotation->tax_amount) }} UGX

Grand Total {{ number_format($quotation->total_amount) }} UGX
@if($quotation->notes)
QUOTATION NOTES:

{{ $quotation->notes }}

@endif @if($quotation->terms)
TERMS & CONDITIONS:

{{ $quotation->terms }}

@endif @if($quotation->status === 'converted')
This quotation has been converted to Invoice

Converted By: {{ $quotation->convertedBy->full_name }} on {{ $quotation->converted_at->format('M d, Y H:i') }}

@endif
@endsection