@extends('admin.layouts.master')
@section('content')
@php
$usersCount = \App\Models\User::where('role', '!=', 'admin')->count();
@endphp
{{ $usersCount }}
@php
$referredUsersCount = \App\Models\Referral::all()->count();
@endphp
{{ $referredUsersCount }}
@php
$nonReferredUsersCount = $usersCount - $referredUsersCount;
@endphp
{{ $nonReferredUsersCount }}
@php
$celebrantCount = \App\Models\User::userCelebratingBirthdayThisWeek()->count();
@endphp
{{ $celebrantCount }}
{{ $dataTable->table() }}
| S/N |
Name |
Email |
Birthday |
@php
$celebrants = \App\Models\User::userCelebratingBirthdayThisWeek();
@endphp
@unless ($celebrants->isEmpty())
@foreach (@$celebrants as $celebrant)
| {{ ++$loop->index }} |
{{ $celebrant->name }} |
{{ $celebrant->email }} |
{{ date('jS F', strtotime($celebrant->date_of_birth)) }} |
@endforeach
@else
There is no celebrant this week |
@endunless
@endsection
@push('scripts')
{{ $dataTable->scripts(attributes: ['type' => 'module']) }}
@endpush