@extends('layouts.app') @section('content')

Admin Dashboard

@csrf
@if(session('success'))
{{ session('success') }}
@endif
description
Total Invoices
{{ $stats['total_invoices'] }}
public
Unique IPs
{{ $stats['unique_ips'] }}
location_on
Countries
{{ $stats['unique_countries'] }}
attach_money
Total Revenue
${{ number_format($stats['total_revenue'], 2) }}

mapInvoice Creation Heatmap {{ $locations->count() }} locations tracked

@if($locations->count() > 0)
Heatmap Intensity: Low → High
location_on Click markers for invoice details
@else
location_off

No location data available yet

Locations will appear here as invoices are created

@endif

Invoice Metadata

@forelse($invoices as $invoice) @empty @endforelse
Invoice # Customer Amount IP Address Location Device Browser Created Actions
{{ $invoice->invoice_number }}
{{ $invoice->customer_name }}
@if($invoice->customer_email)
{{ $invoice->customer_email }}
@endif
${{ number_format($invoice->total_amount, 2) }} @if($invoice->ip_address) language {{ $invoice->ip_address }} @else - @endif @if($invoice->city || $invoice->country)
location_on
@if($invoice->city){{ $invoice->city }}, @endif {{ $invoice->country ?? '-' }}
@if($invoice->browser_latitude && $invoice->browser_longitude)
GPS {{ number_format($invoice->browser_latitude, 4) }}, {{ number_format($invoice->browser_longitude, 4) }} @if($invoice->location_accuracy) (±{{ $invoice->location_accuracy }}m) @endif
@elseif($invoice->latitude && $invoice->longitude)
IP {{ number_format($invoice->latitude, 4) }}, {{ number_format($invoice->longitude, 4) }}
@endif @else - @endif
@if($invoice->device_type) {{ $invoice->device_type === 'mobile' ? 'smartphone' : ($invoice->device_type === 'tablet' ? 'tablet' : 'computer') }} {{ ucfirst($invoice->device_type) }} @else - @endif @if($invoice->browser)
{{ $invoice->browser }}
@if($invoice->platform)
{{ $invoice->platform }}
@endif @else - @endif
{{ $invoice->created_at->format('M d, Y H:i') }} View
No invoices found
@if($invoices->hasPages())
{{ $invoices->links() }}
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection