@extends('admin.layouts.app') @section('title', 'Contact Requests') @section('page-title', 'Contact Requests') @section('content')
@php $statCards = [ ['Total', $stats['total'], 'bg-blue-50 text-blue-700 border-blue-100'], ['New', $stats['new'], 'bg-indigo-50 text-indigo-700 border-indigo-100'], ['Contacted', $stats['contacted'], 'bg-yellow-50 text-yellow-700 border-yellow-100'], ['Closed', $stats['closed'], 'bg-green-50 text-green-700 border-green-100'], ['Converted', $stats['converted'], 'bg-cyan-50 text-cyan-700 border-cyan-100'], ['Today', $stats['today'], 'bg-purple-50 text-purple-700 border-purple-100'], ]; @endphp @foreach($statCards as [$label, $val, $classes])

{{ $val }}

{{ $label }}

@endforeach
@if(request()->hasAny(['search', 'status'])) Clear @endif
{{ $submissions->total() }} requests found
@if($submissions->isEmpty())

No contact requests found.

@else
@foreach($submissions as $item) @endforeach
# Contact Status Actions
#{{ $item->id }}

{{ $item->name }}

{{ $item->phone }}

{{ $item->email }}

{{ ucfirst($item->status) }}
View @if($item->lead_id) Lead @else
@csrf
@endif
@csrf @method('DELETE')
@if($submissions->hasPages())
{{ $submissions->links() }}
@endif @endif
@endsection