{{ config('app.name') }}
@if ($role === 'adviser' || $role === 'admin')
@php
$notifGroups = [];
if ($unreadCount > 0) {
$notifGroups[] = [
'key' => 'feedback',
'label' => 'Новые отзывы',
'count' => $unreadCount,
'textClass' => 'text-primary',
'badgeClass' => 'bg-primary',
];
}
if (! empty($absenceNotifications)) {
$notifGroups[] = [
'key' => 'absences',
'label' => 'Пропуски занятий',
'count' => count($absenceNotifications),
'textClass' => 'text-danger',
'badgeClass' => 'bg-danger',
];
}
if (! empty($delayNotifications)) {
$notifGroups[] = [
'key' => 'delays',
'label' => 'Опоздания',
'count' => count($delayNotifications),
'textClass' => 'text-info',
'badgeClass' => 'bg-info text-dark',
];
}
if (! empty($paymentReminders)) {
$notifGroups[] = [
'key' => 'payments',
'label' => 'Напоминания об оплате',
'count' => count($paymentReminders),
'textClass' => 'text-warning',
'badgeClass' => 'bg-warning text-dark',
];
}
@endphp
@if (count($notifGroups) > 0)
{{ count($notifGroups) }}
@endif
@if (empty($notifGroups))
Нет уведомлений
@else
@foreach ($notifGroups as $g)
{{ $g['label'] }}
{{ $g['count'] }}
@endforeach
@endif
Все уведомления
@endif
@php($theme = Auth::user()?->theme ?? 'light')