@extends('layouts.admin') @section('title', 'Leads') @section('content')
Manage and track all incoming quotation requests
| Quote No | Client | Contact | Project Type | Location | Received On | |
|---|---|---|---|---|---|---|
| {{ strtoupper(substr($q->state_code ?? '', 0, 2)) }}-{{ \Carbon\Carbon::parse($q->created_at)->format('y') }}-{{ str_pad($q->id ?? 0, 3, '0', STR_PAD_LEFT) }} | {{-- Client Name + Avatar --}}
{{ $q->name }}
|
{{-- Contact --}}
{{ $q->email }}
{{ $q->phone }}
|
{{-- Project Type Badge --}}
@php $colors = [ 'Industrial Shed' => ['bg' => '#ede9fe', 'text' => '#6d28d9'], 'Warehouse' => ['bg' => '#dbeafe', 'text' => '#1d4ed8'], 'Factory' => ['bg' => '#dcfce7', 'text' => '#15803d'], ]; $typeName = $q->projectType->name ?? 'N/A'; $color = $colors[$typeName] ?? ['bg' => '#f3f4f6', 'text' => '#374151']; @endphp {{ $typeName }} | {{-- Location --}}
{{ $q->location ?? 'N/A' }}
|
{{-- Date --}}
{{ \Carbon\Carbon::parse($q->created_at)->format('d M Y') }}
{{ \Carbon\Carbon::parse($q->created_at)->diffForHumans() }}
|
{{-- Action --}}
|
No leads foundNo quotation leads match your current filters. |
||||||