@extends('layouts.admin') {{-- Keep libs only if you actually use them --}} @section('content')

Dashboard

Quick overview of your events and recent activity

@if(Auth::user()->hasRole('Admin')) @php $fmt = fn($n) => number_format((int)($n ?? 0)); @endphp

Total Events

{{ $fmt($eventCount ?? $evntCount ?? 0) }}

Total Attendees

{{ $fmt($attendeeCount ?? 0) }}

Total Speakers

{{ $fmt($speakerCount ?? 0) }}

Total Sponsors

{{ $fmt($sponsorCount ?? 0) }}

Total Exhibitors

{{ $fmt($exhibitorCount ?? 0) }}

Revenue

{{ isset($revenue) ? '₹'.number_format($revenue,2) : '₹0.00' }}

Quick Actions

Create & manage in a click
Create New Event

Set up a new event with details and configurations.

Manage Registrations

Handle registrations and participant management.

{{-- /row --}}
@endif

Recent Activity

View All
@forelse($logs ?? [] as $log) @php $action = match($log->event) { 'created' => 'New '.class_basename($log->auditable_type), 'updated' => 'Updated '.class_basename($log->auditable_type), 'deleted' => 'Deleted '.class_basename($log->auditable_type), default => ucfirst($log->event), }; @endphp
#{{ $log->auditable_id }} {{ $action }}: “{{ $log->user?->full_name ?? 'System' }}” on {{ $log->created_at->format('M d, Y') }}, {{ $log->created_at->format('h:i A') }}
{{ $log->created_at->diffForHumans() }}
@empty
No recent activity.
@endforelse

Login Activity

@forelse($loginlogs ?? [] as $log)
{{ $log->user?->full_name ?? 'System' }} logged in on {{ $log->created_at->format('M d, Y') }}, {{ $log->created_at->format('h:i A') }}
{{ $log->created_at->diffForHumans() }}
@empty
No login activity yet.
@endforelse
@endsection