@extends('admin.layouts.app') @section('title', 'Quotes') @section('content')
{{-- Status tabs --}}
@foreach(['all' => 'All', 'new' => 'New', 'reviewing' => 'Reviewing', 'quoted' => 'Quoted', 'won' => 'Won', 'lost' => 'Lost'] as $s => $label) {{ $label }} {{ $counts[$s] }} @endforeach
{{-- Filters --}}
@if(request()->anyFilled(['q','from','to','assigned_to'])) Clear @endif
@forelse($quotes as $quote) @empty @endforelse
Quote # Customer Company Items Status Assigned Date
{{ $quote->quote_number }}
{{ $quote->customer_name }}
{{ $quote->customer_email }}
{{ $quote->company_name ?: '—' }} {{ $quote->items_count }} item{{ $quote->items_count != 1 ? 's' : '' }} @php $sc = match($quote->status) { 'new' => 'status-new', 'reviewing' => 'status-reviewing', 'quoted' => 'status-quoted', 'won' => 'status-won', 'lost' => 'status-lost', default => 'badge-gray', }; @endphp {{ \App\Models\Quote::statusLabel($quote->status) }} {{ $quote->assignedTo?->name ?? '—' }} {{ $quote->created_at->format('d M Y') }}
{{ $quote->created_at->format('g:ia') }}
No quotes {{ $status !== 'all' ? "with status \"$status\"" : '' }}
Quotes submitted from the website will appear here.
@if($quotes->hasPages())
{{ $quotes->appends(request()->query())->links() }}
@endif
@endsection @php use App\Models\Quote; @endphp