@extends('layouts.admin') @section('title', 'Users Report') @section('content')

Users Report

User registration and engagement analysis

Back to Reports
Report Filters
Clear Filters
Total Users
{{ $reportData['total_users'] }}
Active Users
{{ $reportData['users_by_status']['active'] ?? 0 }}
Users with Applications
{{ $reportData['user_engagement']['users_with_applications'] }}
Avg Applications/User
{{ number_format($reportData['user_engagement']['avg_applications_per_user'], 1) }}
Users by Role
@if($reportData['users_by_role']->count() > 0) @foreach($reportData['users_by_role'] as $role => $count)
{{ $role }}
{{ $count }} ({{ $reportData['total_users'] > 0 ? round(($count / $reportData['total_users']) * 100, 1) : 0 }}%)
@endforeach @else

No data available for the selected period.

@endif
User Engagement
Users with Applications {{ $reportData['user_engagement']['users_with_applications'] }}
Users without Applications {{ $reportData['user_engagement']['users_without_applications'] }}
Engagement Rate {{ $reportData['total_users'] > 0 ? round(($reportData['user_engagement']['users_with_applications'] / $reportData['total_users']) * 100, 1) : 0 }}%
Registration Trends
@if($reportData['registration_trends']->count() > 0)
@foreach($reportData['registration_trends'] as $month => $count) @endforeach
Month New Registrations Percentage
{{ \Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y') }} {{ $count }} {{ $reportData['total_users'] > 0 ? round(($count / $reportData['total_users']) * 100, 1) : 0 }}%
@else

No registration data available for the selected period.

@endif
Most Active Users
@if($reportData['most_active_users']->count() > 0)
@foreach($reportData['most_active_users'] as $user) @endforeach
User Name Email Role Total Applications Registration Date Last Activity
{{ $user->name }} {{ $user->email }} {{ ucfirst($user->role) }} {{ $user->applications->count() }} {{ $user->created_at->format('M d, Y') }} {{ $user->updated_at->format('M d, Y H:i') }}
@else

No active users found for the selected criteria.

@endif
@endsection