@extends('layouts.app') @section('title', 'Dashboard') @section('breadcrumb') @endsection @section('content')
Customers
{{ number_format($stats['total_customers']) }}
Active
{{ number_format($stats['active_licenses']) }}
Expired
{{ number_format($stats['expired_licenses']) }}
Suspended
{{ number_format($stats['suspended_licenses']) }}
Trial
{{ number_format($stats['trial_licenses']) }}
Lifetime
{{ number_format($stats['lifetime_licenses']) }}
Monthly License Sales (Last 12 Months)
License Status Distribution
Active: {{ $stats['active_licenses'] }} Expired: {{ $stats['expired_licenses'] }} Suspended: {{ $stats['suspended_licenses'] }}
Expiry Trend (Next 6 Months)
Upcoming Renewals
View All
@forelse($upcomingRenewals as $license)
{{ $license->license_key }}
{{ $license->customer?->company_name }}
{{ $license->days_until_expiry }}d left
{{ $license->expiry_date?->format('d M Y') }}
@empty

No upcoming renewals in the next 30 days.

@endforelse
Recent Activity
@foreach($recentActivities as $log) @endforeach
License Customer Action By When
{{ $log->license?->license_key }} {{ $log->license?->customer?->company_name }} {{ ucfirst($log->action) }} {{ $log->created_by }} {{ $log->created_at?->diffForHumans() }}
@endsection @push('scripts') @endpush