@extends('layouts.main') @section('title', 'Quotation Details') @section('content')
@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' }; @endphpQuotation Number
{{ $quotation->quotation_number }}
Customer
{{ $quotation->customer->name }}
Total
${{ number_format($quotation->total, 2) }}
Quotation Date
{{ $quotation->quotation_date->format('M d, Y') }}
Valid Until
{{ $quotation->valid_until->format('M d, Y') }}
Status
{{ ucfirst($quotation->status) }}Created At
{{ $quotation->created_at->format('M d, Y H:i') }}
| Product | Quantity | Unit Price | Total |
|---|---|---|---|
| {{ $item->product->name }} | {{ $item->quantity }} | ${{ number_format($item->price, 2) }} | ${{ number_format($item->quantity * $item->price, 2) }} |
|
No items found |
|||
| Subtotal | ${{ number_format($quotation->subtotal, 2) }} | ||
| Tax | ${{ number_format($quotation->tax, 2) }} | ||
| Total | ${{ number_format($quotation->total, 2) }} | ||