@extends('layouts.main') @section('title', 'Quotations') @section('content')

Quotations

Manage customer quotations

Create Quotation
@if(session('success'))
{{ session('success') }}
@endif
@forelse($quotations as $quotation) @empty @endforelse
Quotation # Customer Date Valid Until Total Status Actions
{{ $quotation->quotation_number }} {{ $quotation->customer->name }} {{ $quotation->quotation_date->format('M d, Y') }} {{ $quotation->valid_until->format('M d, Y') }} ${{ number_format($quotation->total, 2) }} @php $statusClass = match($quotation->status) { 'draft' => 'bg-gray-100 dark:bg-gray-600 text-gray-700 dark:text-gray-300', 'sent' => 'bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300', 'accepted' => 'bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300', 'rejected' => 'bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300', 'expired' => 'bg-orange-100 dark:bg-orange-900 text-orange-700 dark:text-orange-300', default => 'bg-gray-100 dark:bg-gray-600 text-gray-700 dark:text-gray-300' }; @endphp {{ ucfirst($quotation->status) }}

No quotations found

Create your first quotation
@endsection