@extends('layout.app') @section('content') {{-- ==================== STAT TILES ==================== --}}
Captured by AI voice agent.
Received via agent calls.
Active listings in system.
Total actions logged today.
|
Total Leads
{{ $totalLeads }} captured
|
Total Inquiries
{{ $totalInquiries }} received
|
|---|
| # | Name | Phone | Source | Status | Date |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $lead->name ?? 'N/A' }} | {{ $lead->phone ?? '-' }} | {{ $lead->source ?? 'Voice Agent' }} | @php $status = $lead->status ?? 'new'; @endphp {{ ucfirst($status) }} | {{ \Carbon\Carbon::parse($lead->created_at)->format('d M Y') }} |
| No leads found. | |||||
| Type | Number | Duration | Time |
|---|---|---|---|
| @php $type = $log->type ?? 'info'; @endphp {{ ucfirst($type) }} | {{ \Illuminate\Support\Str::limit($log->caller_number ?? 'No number', 40) }} | {{ $log->duration_seconds ?? 0 }}s | {{ \Carbon\Carbon::parse($log->created_at)->diffForHumans() }} |
| No logs found. | |||
| Name | Property Interest | Agreed Rent | Status | Date |
|---|---|---|---|---|
| {{ $inquiry->customer_name ?? 'N/A' }} | {{ \Illuminate\Support\Str::limit($inquiry->property_id ?? '-', 30) }} | {{ $inquiry->agreed_rent ?? 0.00 }} | @php $s = strtolower($inquiry->status ?? 'pending'); // Color Mapping $color = 'warning'; // Default (Pending) if($s == 'scheduled' || $s == 'resolved') $color = 'success'; if($s == 'cancelled' || $s == 'rejected') $color = 'danger'; @endphp {{ ucfirst($s) }} | {{ \Carbon\Carbon::parse($inquiry->created_at)->format('d M') }} |
| No inquiries found. | ||||
| ID | Address | Type | Max Rent | Status |
|---|---|---|---|---|
| {{ $property->_id ?? 'N/A' }} | {{ \Illuminate\Support\Str::limit($property->address ?? 'N/A', 25) }} | {{ $property->type ?? '-' }} | {{ $property->rent_max ? '$'.number_format($property->rent_max) : '-' }} | @php $ps = $property->status ?? 'active'; @endphp {{ ucfirst($ps) }} |
| No properties found. | ||||