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

Dashboard Overview

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

{{ number_format($stats['total_hs_codes']) }}

HS Codes

{{ number_format($stats['total_country_overrides']) }}

Country Overrides

{{ number_format($stats['today_calculations']) }}

Today's Calculations

KES {{ number_format($stats['total_revenue'], 2) }}

Today's Revenue

Recent Calculations
@if($recentCalculations->count() > 0)
@foreach($recentCalculations as $calculation) @endforeach
HS Code Country CIF Value Total Payable User Time
{{ $calculation->input['hs_code'] ?? 'N/A' }} {{ $calculation->input['country_of_origin'] ?? 'N/A' }} KES {{ number_format($calculation->input['cif_value'] ?? 0, 2) }} KES {{ number_format($calculation->total_payable, 2) }}
{{ $calculation->user->name ?? 'System' }}
{{ $calculation->created_at->diffForHumans() }}
@else
No calculations yet

Start using the tax calculator to see recent activity here.

Start Calculating
@endif
System Status
HS Codes
{{ $stats['total_hs_codes'] }}
Active Countries
{{ $stats['total_countries'] }}
Tax Rules
{{ $stats['active_tax_rules'] }}
Today's Calculations
{{ $stats['today_calculations'] }}
Exchange Rates
{{ $exchangeRatesStatus ? 'Updated' : 'Pending' }}
@if($popularHsCodes->count() > 0)
Popular HS Codes
@foreach($popularHsCodes as $hsCode)
{{ $hsCode['code'] }}
{{ Str::limit($hsCode['description'], 30) }}
{{ $hsCode['count'] }}
@endforeach
@endif
@endsection