@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('content')

Dashboard

Welcome back! Here's what's happening with your logistics today.

@php // Fetch the latest GBP → NGN rate $gbpToNgnRate = \App\Models\CurrencyRate::latest()->value('gbp_to_ngn') ?? 1000; @endphp
{{-- Total Customers --}}
Total Customers
{{ $totalCustomers }}
+12% this month
{{-- Premium Customers --}}
Premium Customers
{{ $premiumCustomers }}
+8% this month
{{-- Total Shipments --}}
Total Shipments
{{ $totalShipments }}
+18% this month
{{-- Total Revenue with Currency Switch --}}
Total Revenue
{{-- Currency Selector --}}
£{{ number_format($totalRevenue, 2) }}
+22% this month
{{-- Currency Toggle Script --}}

Quick Actions

Add Customer Add Shipment Activate Premium View Renewals Premium Reports

Recent Shipments

View All →
@foreach($recentShipments as $shipment) {{-- Payment Status --}} {{-- Shipment Status --}} @endforeach
Tracking Price Payment Status Actions
{{ $shipment->tracking_number }} ₦{{ number_format($shipment->price) }} {{ ucfirst($shipment->payment_status) }} {{ $shipment->status }} View
@endsection