@extends('layouts.admin') @section('title', trans('app.reports_and_statistics')) @section('admin-content')

{{ trans('app.reports_and_statistics') }}

{{ trans('app.comprehensive_analytics_and_insights') }}

{{ trans('app.back_to_dashboard') }}

{{ trans('app.export_reports') }}

{{ trans('app.multiple_formats') }}

{{ trans('app.export_pdf') }}

{{ trans('app.download_comprehensive_pdf_report') }}

{{ trans('app.export_csv') }}

{{ trans('app.download_data_for_analysis') }}

{{ trans('app.filters') }}

{{ trans('app.customize_data_range') }}
@csrf

{{ trans('app.key_metrics') }}

{{ trans('app.system_overview') }}
+12%

{{ number_format($totalLicenses) }}

{{ trans('app.Total_licenses') }}

{{ $totalLicenses > 0 ? round(($activeLicenses / $totalLicenses) * 100, 1) : 0 }}%

{{ number_format($activeLicenses) }}

{{ trans('app.Active_licenses') }}

{{ $totalLicenses > 0 ? round(($expiredLicenses / $totalLicenses) * 100, 1) : 0 }}%

{{ number_format($expiredLicenses) }}

{{ trans('app.expired_licenses') }}

{{ trans('app.security') }}

{{ $rateLimitedIPs->count() }}

{{ trans('app.blocked_ips') }}

{{ trans('app.Invoices & Revenue') }}

{{ trans('app.financial_overview') }}
+8.2%

${{ number_format($invoiceStatusTotals['paid'] ?? 0, 2) }}

{{ trans('app.Total Paid Amount') }}

{{ trans('app.due_soon') }}

${{ number_format($invoiceStatusTotals['due_soon'] ?? 0, 2) }}

{{ trans('app.Due Soon Amount') }}

-2.1%

${{ number_format($invoiceStatusTotals['cancelled'] ?? 0, 2) }}

{{ trans('app.Cancelled/Unpaid Amount') }}

{{ trans('app.monthly_revenue_chart') }}

{{ trans('app.revenue_analytics') }}

{{ trans('app.financial_insights') }}

{{ trans('app.monthly_revenue_from_licenses') }}

{{ trans('app.data_visualization') }}

{{ trans('app.interactive_charts') }}

{{ trans('app.system_overview') }}

{{ trans('app.license_type_distribution') }}

{{ trans('app.monthly_licenses') }}

{{ trans('app.user_registrations') }}

{{ trans('app.activity_timeline') }}

{{ trans('app.detailed_reports') }}

{{ trans('app.activity_logs') }}

{{ trans('app.top_products') }}

{{ $topProducts->count() }} {{ trans('app.products') }}
@if($topProducts->count() > 0)
@foreach ($topProducts->take(5) as $product) @endforeach
{{ trans('app.Product') }} {{ trans('app.Licenses') }} {{ trans('app.Revenue') }}
{{ $product->name }}
{{ $product->licenses_count }} ${{ number_format($product->revenue ?? 0, 2) }}
@else

{{ trans('app.No_products_found') }}

{{ trans('app.no_top_products_available') }}

@endif
@if($recentActivities->count() > 0)
@foreach ($recentActivities as $activity) @endforeach
{{ trans('app.User') }} {{ trans('app.Action') }} {{ trans('app.date') }}
{{ $activity->license->user->name ?? 'N/A' }}
@if($activity->action === 'activate') {{ trans('app.license_activated') }} @elseif($activity->action === 'add_domain') {{ trans('app.domain_added') }} @elseif($activity->action === 'check_status') {{ trans('app.Status_checked') }} @else {{ $activity->action ?? 'N/A' }} @endif {{ $activity->created_at->format('M d, Y H:i') }}
@else

{{ trans('app.No_activity_found') }}

{{ trans('app.no_recent_activities') }}

@endif

{{ trans('app.blocked_ips_due_to_rate_limiting') }}

{{ $rateLimitedIPs->count() }} {{ trans('app.blocked') }} @if($rateLimitedIPs->count() > 0) @endif
@if($rateLimitedIPs->count() > 0)
@foreach ($rateLimitedIPs as $blockedIP) @endforeach
{{ trans('app.ip_address') }} {{ trans('app.attempts') }} {{ trans('app.blocked_until') }}
{{ $blockedIP['ip'] }}
{{ $blockedIP['attempts'] }} {{ trans('app.attempts') }} {{ $blockedIP['blocked_until']->format('M d, Y H:i:s') }}
@else

{{ trans('app.No_blocked_ips') }}

{{ trans('app.no_blocked_ips_found') }}

@endif
@endsection