@extends('admin.layout') @section('title', 'Home') @section('content')

Dashboard

Overview of trip plans and submitted enquiries.
Completed
{{ number_format($completed) }}
Quote submitted (enquiries)
Incomplete
{{ number_format($incomplete) }}
Started, no quote sent
This week
{{ number_format($enquiriesThisWeek) }}
New enquiries
Quote value
AED {{ number_format($quoteValueAed) }}
Across all enquiries

Recent enquiries

@if ($recent->isEmpty())
No enquiries yet.
@else @foreach ($recent as $lead) @php $snap = $lead->quote_snapshot ?? []; @endphp @endforeach
NamePhoneEmiratesDays Grand totalReceived
{{ $lead->name }} {{ $lead->phone }} {{ count($lead->tripPlan->preferred_region_ids ?? []) }} {{ $lead->tripPlan->number_of_days ?? '—' }} {{ $snap['currency'] ?? 'AED' }} {{ number_format($snap['amounts']['grand_total'] ?? 0) }} {{ $lead->created_at->format('d M Y, H:i') }} View
@endif @endsection