@extends('layouts.admin') @section('title', 'Quotations') @section('page-title', 'Quotations') @section('content')

Quotations

add New Quotation
search
expand_more
expand_more
@if(request('per_page')) @endif
Clear
calendar_today
download
@forelse($quotations as $quotation) @empty @endforelse
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

@if($quotations->hasPages())

Showing {{ $quotations->firstItem() }} to {{ $quotations->lastItem() }} of {{ $quotations->total() }} results

@if($quotations->onFirstPage()) @else Previous @endif @foreach($quotations->getUrlRange(1, min(3, $quotations->lastPage())) as $page => $url) {{ $page }} @endforeach @if($quotations->hasMorePages()) ... {{ $quotations->lastPage() }} Next @endif
@endif
{{-- Delete confirmation --}} {{-- Send options --}} {{-- Email --}} {{-- WhatsApp PDF (API) --}} {{-- WhatsApp link (wa.me) --}} {{-- Result --}} @endsection