@extends('layouts.app') @section('title', 'WHMCS Admin - Dashboard') @section('page-title', 'Dashboard') @section('breadcrumb') Dashboard @endsection @section('content')
{{ $stats['total_customers'] ?? 1247 }}
Total Customers
+{{ abs($stats['customers_change'] ?? 12) }}% from last month
{{ $stats['active_licenses'] ?? 3456 }}
Active Licenses
+{{ abs($stats['licenses_change'] ?? 8) }}% from last month
${{ number_format($stats['monthly_revenue'] ?? 89247, 0) }}
Monthly Revenue
+{{ abs($stats['revenue_change'] ?? 15) }}% from last month
{{ $stats['support_tickets'] ?? 23 }}
Support Tickets
{{ $stats['tickets_change'] ?? -5 }}% from last month
Revenue Overview
Quick Actions
Recent Activity
View All
@forelse($recent_activities ?? [] as $activity) @empty @endforelse
Time Activity User Status
{{ $activity->created_at->diffForHumans() }} {{ $activity->description }} {{ $activity->customer->email ?? ($activity->user->name ?? 'System') }} {{ ucfirst($activity->action) }}
No Record Available
@include('partials.system-status')
Upcoming License Renewals
View All Licenses
@forelse($upcomingRenewals ?? [] as $license) @empty @endforelse
Customer License Plan Renewal Date Amount Status Actions
{{ strtoupper(substr($license->customer->first_name, 0, 1) . substr($license->customer->last_name, 0, 1)) }}
{{ $license->customer->first_name }} {{ $license->customer->last_name }}
{{ $license->customer->email }}
{{ $license->product->name }}
{{ $license->license_key }}
{{ ucfirst($license->product->type) }}
{{ $license->expires_at->format('M d, Y') }}
{{ $license->expires_at->diffInDays() }} days remaining
${{ number_format($license->product->price, 2) }} {{ ucfirst($license->status) }}
No upcoming renewals
@endsection {{-- @push('modals') @include('modals.add-customer') @include('modals.generate-invoice') @include('modals.renew-license') @include('modals.send-reminder') @include('modals.suspend-license') @endpush --}} @push('scripts') @endpush