@php $totalCount = $totalCount ?? 0; $inReviewCount = $inReviewCount ?? 0; $quotedCount = $quotedCount ?? 0; $needActionCount = $needActionCount ?? 0; $search = $search ?? ''; $status = $status ?? 'all'; $dateFrom = $dateFrom ?? ''; $dateTo = $dateTo ?? ''; $perPage = $perPage ?? 10; $sort = $sort ?? 'newest'; @endphp
Dashboard Enquiries

Enquiries

Manage and track all your product enquiries in one place.

TOTAL
Total Enquiries
{{ $totalCount }}
↗ +4 this month
ACTIVE
In Review
{{ $inReviewCount }}
Avg. 28 min response
QUOTED
Quoted
{{ $quotedCount }}
Ready to convert
URGENT
Need Action
{{ $needActionCount }}
Clarification needed
Clear
All Enquiries
{{ $enquiries->total() }} total
@php $products = ['LED Board', 'Flex Banner', 'Acrylic Signage', 'Neon Sign', 'Vinyl Wrap', 'Metal Letters']; @endphp @forelse($enquiries as $enquiry) @php $enquiryId = '#ENQ-' . str_pad((string) $enquiry->id, 4, '0', STR_PAD_LEFT); $product = $products[$enquiry->id % count($products)]; $installation = ($enquiry->id % 3) === 0 ? 'Yes' : 'No'; $isQuoted = !empty($enquiry->originalQuotation); $statusKey = $isQuoted ? 'quoted' : ($enquiry->status ?: 'pending'); $statusMeta = match ($statusKey) { 'quoted' => ['label' => 'Quoted', 'class' => 'bg-emerald-50 text-emerald-700 ring-emerald-200', 'dot' => 'bg-emerald-500'], 'in_review' => ['label' => 'In Review', 'class' => 'bg-indigo-50 text-indigo-700 ring-indigo-200', 'dot' => 'bg-indigo-500'], 'need_action', 'clarification_needed' => ['label' => 'Need Clarification', 'class' => 'bg-amber-50 text-amber-800 ring-amber-200', 'dot' => 'bg-amber-500'], 'cancelled' => ['label' => 'Canceled', 'class' => 'bg-slate-900 text-white ring-slate-900', 'dot' => 'bg-white'], default => ['label' => 'Pending', 'class' => 'bg-slate-50 text-slate-700 ring-slate-200', 'dot' => 'bg-slate-400'], }; @endphp @empty @endforelse
Enquiry ID Enquiry Name Product Quantity Installation Date Status Action
{{ $enquiryId }}
{{ $enquiry->title }}
Client: {{ auth()->user()->company_name ?? auth()->user()->name }}
{{ strtoupper(substr($product, 0, 1)) }}
{{ $product }}
{{ $enquiry->quantity }} {{ $installation }} {{ $enquiry->created_at?->format('d M Y') }} {{ $statusMeta['label'] }} View
No enquiries found.
@if($enquiries->total() > 0) Showing {{ $enquiries->firstItem() }}–{{ $enquiries->lastItem() }} of {{ $enquiries->total() }} enquiries @else Showing 0 enquiries @endif
Rows per page:
{{ $enquiries->onEachSide(1)->links() }}