@extends('layouts.main') @section('content')

User Wise Report

User booking statistics
@php $totalBookings = 0; $totalCompleted = 0; $totalCancelled = 0; foreach($users as $user){ if(isset($userStats[$user->id])){ $totalBookings += $userStats[$user->id]['total']; $totalCompleted += $userStats[$user->id]['completed']; $totalCancelled += $userStats[$user->id]['cancelled']; } } @endphp
{{ $totalBookings }}

Total Bookings

{{ $totalCompleted }}

Completed

{{ $totalCancelled }}

Cancelled

User Booking Report
@forelse($users as $user) @php $stats = $userStats[$user->id] ?? [ 'total' => 0, 'completed' => 0, 'cancelled' => 0 ]; $successRate = $stats['total'] > 0 ? round(($stats['completed'] / $stats['total']) * 100) : 0; @endphp @empty @endforelse
User Total Bookings Completed Cancelled Success Rate
{{ $user->name ?? $user->first_name ?? 'N/A' }}
Registered User
{{ $stats['total'] }}
{{ $stats['completed'] }}
{{ $stats['cancelled'] }}
{{ $successRate }}%
No User Data Found

User analytics are not available right now.

@endsection