{{__('Your Notifications')}}
{{__('Stay updated with all your important notifications')}}
{{ $notifications->count() }}
{{__('Total Notifications')}}
{{ $unreadCount }}
{{__('Unread')}}
{{ $notifications->count() - $unreadCount }}
{{__('Read')}}
{{ $notifications->where('created_at', '>=', today())->count() }}
{{__('Today')}}
@forelse($notifications as $notification)
@php
$iconClass = 'bx-bell';
$iconColor = 'text-primary';
$bgColor = 'rgba(var(--bs-primary-rgb), 0.1)';
switch($notification->type) {
case 'task_created':
case 'task_approved':
case 'new_content':
$iconClass = 'bx-task';
$iconColor = 'text-success';
$bgColor = 'rgba(var(--bs-success-rgb), 0.1)';
break;
case 'ticket_created':
case 'ticket_replied':
$iconClass = 'bx-support';
$iconColor = 'text-info';
$bgColor = 'rgba(var(--bs-info-rgb), 0.1)';
break;
case 'withdrawal_request':
case 'withdrawal_approved':
case 'balance_approved':
$iconClass = 'bx-money';
$iconColor = 'text-warning';
$bgColor = 'rgba(var(--bs-warning-rgb), 0.1)';
break;
case 'announcement':
$iconClass = 'bx-megaphone';
$iconColor = 'text-danger';
$bgColor = 'rgba(var(--bs-danger-rgb), 0.1)';
break;
}
@endphp
@empty
@endforelse
@if($notifications->hasPages())
@endif
{{ $notification->title }}
@if($notification->status == 1)
{{__('New')}}
@endif
{{ $notification->description }}
{{ $notification->created_at->diffForHumans() }}
@if($notification->expires_at)
{{__('Expires')}}: {{ $notification->expires_at->diffForHumans() }}
@endif
@if($notification->status == 1)
@endif
@if($notification->link && $notification->link !== '#')
@endif
{{__('No Notifications')}}
{{__('You have no notifications at the moment. Check back later!')}}