@php
$adminNotifications = [
'id_checks' => \App\Model\UserVerify::where('status', 'pending')->count(),
'withdrawals' => \App\Model\Withdrawal::where('status', 'requested')->count(),
'deposits' => \App\Model\PaymentRequest::where('status', 'pending')->count(),
];
$hasNotifications = array_filter($adminNotifications, function($value) {
return $value >= 1;
});
$hasNotifications = !empty($hasNotifications);
@endphp
@if($hasNotifications)
@endif
@include('elements.admin.metrics')
There are new events that require your attention.
Please review them at:
-
@if($adminNotifications['id_checks'])
- User ID Checks ({{$adminNotifications['id_checks']}}) @endif @if($adminNotifications['withdrawals'])
- Withdrawals ({{$adminNotifications['withdrawals']}}) @endif @if($adminNotifications['deposits'])
- Offline Payment Deposits ({{$adminNotifications['deposits']}}) @endif