@extends('layouts.admin') @section('admin-content')

{{ trans('app.Dashboard Overview') }}

{{ trans('app.Monitor your license management system performance and key metrics') }}

{{ trans('app.Today') }} {{ \Carbon\Carbon::now()->format('M d, Y') }}
{{ trans('app.System Status') }} @php // Read maintenance mode from cached settings. If true -> site is in maintenance (Offline) $isMaintenance = \App\Models\Setting::get('maintenance_mode', false); @endphp {{ $isMaintenance ? trans('app.Offline') : trans('app.Online') }}
{{ $stats['api_requests_today'] ?? 0 }}
{{ trans('app.API Requests Today') }}
{{ $stats['api_requests_this_month'] ?? 0 }} {{ trans('app.this month') }}
{{ $stats['tickets_open'] ?? 0 }}
{{ trans('app.Open Tickets') }}
-5% {{ trans('app.from last month') }}
{{ $stats['licenses_active'] ?? 0 }}
{{ trans('app.Active Licenses') }}
+8% {{ trans('app.from last month') }}
{{ $stats['api_errors_today'] ?? 0 }}
{{ trans('app.API Errors Today') }}
{{ $stats['api_errors_this_month'] ?? 0 }} {{ trans('app.this month') }}
{{ $stats['invoices_count'] ?? 0 }}
{{ trans('app.Total Invoices') }}
{{ trans('app.Total Invoice Amount') }}: ${{ number_format($stats['invoices_total_amount'] ?? 0, 2) }}
${{ number_format($stats['invoices_total_amount'] ?? 0, 2) }}
{{ trans('app.Total Invoice Amount') }}
{{ trans('app.Total Invoices') }}: {{ $stats['invoices_count'] ?? 0 }}
{{ $stats['invoices_paid_count'] ?? 0 }}
{{ trans('app.Paid Invoices') }}
{{ trans('app.Amount') }}: ${{ number_format($stats['invoices_paid_amount'] ?? 0, 2) }}
{{ $stats['invoices_cancelled_count'] ?? 0 }}
{{ trans('app.Cancelled Invoices') }}
{{ trans('app.Amount') }}: ${{ number_format($stats['invoices_cancelled_amount'] ?? 0, 2) }}

{{ trans('app.Latest Tickets') }}

{{ trans('app.View All') }}

{{ trans('app.Recent customer support requests') }}

@forelse($latestTickets ?? [] as $ticket)
{{ ucfirst($ticket->status) }} {{ trans('app.View') }}
@empty

{{ trans('app.No tickets available') }}

@endforelse

{{ trans('app.Latest Licenses') }}

{{ trans('app.View All') }}

{{ trans('app.Recently issued licenses') }}

@forelse($latestLicenses ?? [] as $license)
{{ ucfirst($license->status) }}
@empty

{{ trans('app.No licenses available') }}

@endforelse

{{ trans('app.API Requests') }}

{{ trans('app.API Performance') }}

{{ trans('app.System Overview') }}

{{ trans('app.License Distribution') }}

{{ trans('app.Revenue Overview') }}

{{ trans('app.Activity Timeline') }}

@endsection