@extends('admin.layouts.master') @section('content')

Dashboard

Total Users

@php $usersCount = \App\Models\User::where('role', '!=', 'admin')->count(); @endphp {{ $usersCount }}

Referred users

@php $referredUsersCount = \App\Models\Referral::all()->count(); @endphp {{ $referredUsersCount }}

Non referred users

@php $nonReferredUsersCount = $usersCount - $referredUsersCount; @endphp {{ $nonReferredUsersCount }}

Celebrant this week

@php $celebrantCount = \App\Models\User::userCelebratingBirthdayThisWeek()->count(); @endphp {{ $celebrantCount }}
{{ $dataTable->table() }}
@endsection @push('scripts') {{ $dataTable->scripts(attributes: ['type' => 'module']) }} @endpush