@extends('layouts.app') @section('title', 'Quotations List') @section('page_title', 'Quotation Management') @section('content')
TOTAL QUOTATIONS

{{ $quotations->total() }}

CONVERTED TO INVOICES

{{ \App\Models\Quotation::where('status', 'converted')->count() }}

ACTIVE / SENT

{{ \App\Models\Quotation::where('status', 'sent')->count() }}

Quotation Ledger
@forelse($quotations as $q) @empty @endforelse
Quotation # Customer Date Issued Expiry Date Total Amount Status Actions
{{ $q->quotation_number }}
{{ $q->client->full_name }}
{{ $q->client->client_code }}
{{ $q->quotation_date->format('M d, Y') }} {{ $q->expiry_date ? $q->expiry_date->format('M d, Y') : '-' }} {{ number_format($q->total_amount) }} UGX @php $badge = match($q->status) { 'draft' => 'secondary', 'sent' => 'primary', 'approved' => 'success', 'rejected' => 'danger', 'expired' => 'dark', 'converted' => 'info', default => 'secondary' }; @endphp {{ ucfirst($q->status) }} View
No quotations generated yet.
{{ $quotations->links() }}
@endsection