@extends('layouts.master') @section('content')
{{-- PAGE HEADER --}}

Dashboard Analytics

User analytics, gameplay funnel, personas & university insights

{{-- KPI GRID --}}

Total Users

{{ number_format($totalUsers) }}

Daily: {{ number_format($dailyUsers) }}

Weekly Users

{{ number_format($weeklyUsers) }}

Monthly: {{ number_format($monthlyUsers) }}

Games Started

{{ number_format($gamesStarted) }}

Games Completed

{{ number_format($gamesCompleted) }}

Completion Rate

{{ $completionRate }}%

{{-- MAIN GRID --}}
{{-- LEFT SECTION --}}
{{-- GAME FUNNEL --}}

Game Funnel

@foreach($gameFunnel as $key => $value)

{{ str_replace('_', ' ', $key) }}

{{ number_format($value) }}

@endforeach
{{-- AGE DISTRIBUTION --}}

Age Distribution

@php $totalAge = array_sum($ageDistribution); @endphp @foreach($ageDistribution as $range => $count) @php $percent = $totalAge > 0 ? round(($count / $totalAge) * 100) : 0; @endphp
{{ $range }} {{ $count }} ({{ $percent }}%)
@endforeach
{{-- PERSONA CARDS --}}

Persona Overview

@foreach($primaryPersonaCards as $persona)

{{ $persona['label'] }}

{{ $persona['count'] }}

@endforeach
{{-- UNIVERSITY TABLE --}}

University Interest Reports

@foreach($universityReports as $item) @endforeach
University Interest
{{ $item->university }} {{ $item->total }}
{{-- RIGHT SECTION --}}
{{-- GUEST VS REGISTERED --}}

Guest vs Registered

Registered {{ $registeredPercent }}%
Guest {{ $guestPercent }}%
{{-- INDIA VS GLOBAL --}}

India vs Global

{{-- DEVICE --}}

Device Usage

{{ $mobilePercent }}%

Mobile

{{ $desktopPercent }}%

Desktop

{{-- TOP INDUSTRIES --}}

Top Industries

@foreach($topIndustries as $item)
{{ $item['industry'] }} {{ $item['count'] }}
@endforeach
{{-- TOP COURSES --}} {{-- WISHLISTED UNIVERSITIES --}}
@endsection