@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('header_title', 'Dashboard Overview') @section('content')
{{-- Negative margins to counteract layout padding --}}
{{-- Re-apply padding for content blocks if needed, or manage padding within each block --}}

{{ $stats['total_users'] ?? 'N/A' }}

Total Users

{{ $stats['admin_users'] ?? 'N/A' }}

Admin Users

{{ $stats['active_modules'] ?? 'N/A' }}

Active Modules

{{ $stats['total_modules'] ?? 'N/A' }}

Total Modules

{{-- Google Analytics Summary - Conditionally Displayed --}} @if (Module::has('LandingPage') && Module::isEnabled('LandingPage')) @if (isset($landingPageGaEnabled) && $landingPageGaEnabled && isset($gaStats))

Website Analytics (Last 7 Days - via LandingPage Module)

{{-- Users Card --}}
Total Users
{{ $gaStats['users'] ?? 'N/A' }}
{{-- Page Views Card --}}
Page Views
{{ $gaStats['pageViews'] ?? 'N/A' }}
{{-- Sessions Card --}}
{{-- Using clock as a proxy for sessions --}}
Sessions
{{ $gaStats['sessions'] ?? 'N/A' }}
@elseif (setting('google_analytics_enable_tracking', false) && !setting('google_analytics_property_id')) @endif @endif

User Registrations (Last 7 Days)

System Information

  • PHP Version: {{ PHP_VERSION }}
  • Laravel Version: {{ app()->version() }}
  • Debug Mode: {{ config('app.debug') ? 'Enabled' : 'Disabled' }}
  • App Environment: {{ config('app.env') }}
  • Cache Driver: {{ config('cache.default') }}
  • Queue Driver: {{ config('queue.default') }}
  • {{-- Add more system info as needed --}}

Recent Activity

@if(empty($recentActivities))

No recent activity to display.

@else
    @foreach($recentActivities as $activity)
  • {{-- Example: User registration icon --}}

    {{ $activity->description ?? 'Activity description missing' }}

    {{ $activity->created_at->diffForHumans() }}

  • @endforeach
@endif
@endsection @push('scripts') @endpush