@extends('layouts.superadmin') @section('title', 'جميع الإشعارات') @section('page-title', 'جميع الإشعارات') @section('content')

إدارة الإشعارات

عرض وإدارة جميع إشعارات النظام

@if($unreadNotifications->count() > 0) @endif @if($readNotifications->count() > 0) @endif

إجمالي الإشعارات

{{ $unreadNotifications->count() + $readNotifications->total() }}

غير المقروءة

{{ $unreadNotifications->count() }}

المقروءة

{{ $readNotifications->total() }}

إشعارات اليوم

{{ $unreadNotifications->where('created_at', '>=', today())->count() + $readNotifications->where('created_at', '>=', today())->count() }}

@if($unreadNotifications->count() > 0)

الإشعارات غير المقروءة ({{ $unreadNotifications->count() }})

@foreach($unreadNotifications as $notification)
@if($notification->icon) @else @endif

{{ $notification->message }}

{{ $notification->type }}

{{ $notification->created_at->diffForHumans() }}

@if($notification->action_url) عرض التفاصيل @endif
@endforeach
@endif @if($readNotifications->count() > 0)

الإشعارات المقروءة ({{ $readNotifications->total() }})

@foreach($readNotifications as $notification)
@if($notification->icon) @else @endif

{{ $notification->message }}

{{ $notification->type }}

{{ $notification->created_at->diffForHumans() }}

@if($notification->action_url) عرض التفاصيل @endif
@endforeach
@if($readNotifications->hasPages())
{{ $readNotifications->links() }}
@endif
@else

لا توجد إشعارات مقروءة

جميع الإشعارات غير مقروءة

@endif @if($unreadNotifications->count() === 0 && $readNotifications->count() === 0)

لا توجد إشعارات

لم يتم إنشاء أي إشعارات بعد

@endif
@endsection