@extends('layouts.admin') @section('title', 'Quotations') @section('page-title', 'Quotations') @section('content')
| Quotation # | Customer | Date | Expiry | Amount | Status | Actions | |
|---|---|---|---|---|---|---|---|
| {{ $quotation->quotation_number }} |
{{ strtoupper(substr($quotation->customer->name ?? '?', 0, 2)) }}
{{ $quotation->customer->name ?? 'N/A' }}
{{ $quotation->customer->email ?? 'N/A' }}
|
{{ $quotation->issue_date->format('M d, Y') }} | {{ $quotation->expiry_date ? $quotation->expiry_date->format('M d, Y') : 'N/A' }} | {{ $quotation->currency }} {{ number_format($quotation->total, 2) }} | @php $statusColors = [ 'draft' => ['bg' => 'bg-orange-100', 'text' => 'text-orange-800', 'label' => 'Pending'], 'sent' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'label' => 'Sent'], 'viewed' => ['bg' => 'bg-purple-100', 'text' => 'text-purple-800', 'label' => 'Viewed'], 'accepted' => ['bg' => 'bg-green-100', 'text' => 'text-green-800', 'label' => 'Approved'], 'rejected' => ['bg' => 'bg-red-100', 'text' => 'text-red-800', 'label' => 'Rejected'], 'expired' => ['bg' => 'bg-gray-100', 'text' => 'text-gray-800', 'label' => 'Expired'], 'converted' => ['bg' => 'bg-indigo-100', 'text' => 'text-indigo-800', 'label' => 'Converted'], ]; $config = $statusColors[$quotation->status] ?? $statusColors['draft']; @endphp {{ $config['label'] }} |
|
|
|
request_quote
No quotations found |
|||||||
Showing {{ $quotations->firstItem() }} to {{ $quotations->lastItem() }} of {{ $quotations->total() }} results
This action cannot be undone.
Are you sure you want to delete ?