{{-- --}}
Total Orders
{{ $metrics['total_orders'] }}
Total Revenue
${{ number_format($metrics['total_revenue'], 2) }}
Total Customers
{{ $metrics['total_customers'] }}
Job Applications
{{ $metrics['job_applications'] }}
Dashboard Overview
Bookings: {{ $metrics['total_bookings'] }}
Completed: {{ $metrics['completed_bookings'] }}
Pending: {{ $metrics['pending_bookings'] }}
Customers: {{ $metrics['total_customers'] }}
Quick Stats
Quotes
{{ $metrics['total_quotes'] }}
Orders
{{ $metrics['total_orders'] }}
Conversion Rate
@if($metrics['total_quotes'] > 0) {{ number_format(($metrics['total_orders'] / $metrics['total_quotes']) * 100, 2) }}% @else 0.00% @endif
Earnings
${{ number_format($metrics['total_revenue'], 2) }}
Revenue Trend
Top Locations ({{ date('Y') }})
@php
$totalSales = array_sum(array_column($topLocations, 'revenue'));
@endphp
${{ number_format($totalSales, 2) }}
Total Sales
@forelse($topLocations as $index => $location)
@php
$totalSales = array_sum(array_column($topLocations, 'revenue'));
$percentage = $totalSales > 0 ? ($location['revenue'] / $totalSales) * 100 : 0;
@endphp
@empty
{{ $location['location'] ?: 'Unknown Location' }}
{{ $location['count'] }} booking(s)
${{ number_format($location['revenue'], 2) }}
{{ number_format($percentage, 0) }}%
No location data available
@endforelseRecent Orders
View All| Order ID | Customer | Amount | Date | Status | Action |
|---|---|---|---|---|---|
| #{{ $quote->order_number ?? $quote->quote_number ?? $quote->id }} | {{ $quote->user->name ?? 'N/A' }} | ${{ number_format($quote->total_cost ?? 0, 2) }} | {{ $quote->created_at->format('d M Y, h:i A') }} | @if($quote->status == 'approved') Approved @elseif($quote->status == 'pending') Pending @else {{ ucfirst($quote->status) }} @endif | View |
| No orders found | |||||
Recent Customers
View All
@forelse($recentCustomers as $customer)
@empty
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }}
{{ $customer->email }}
{{ $customer->created_at->format('d M Y') }}
No customers found
@endforelse