@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
@if(!checkMysqlndForPDO() || !checkForMysqlND())
@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
{{__("Warning!")}}
{{__("Your PHP's pdo_mysql extension is not using mysqlnd driver. ")}} {{__('This might cause different UI related issues.')}}
{{__("Please contact your hosting provider and check if they can enable mysqlnd for pdo_mysql as default driver. Alternatively, you can check if the other PHP versions act the same. ")}}
- {{__("Mysqlnd loaded:")}} {{checkForMysqlND() ? __('True') : __('False')}}
- {{__("Mysqlnd for PDO:")}} {{checkMysqlndForPDO() ? __('True') : __('False')}}