@push('header', 'الإشعارات')
@if(auth()->user()->is_admin) @endif
@if($activeTab === 'inbox' && !$selectedNotification && $myNotifications->count() > 0) @endif
@if ($activeTab === 'inbox') @if ($selectedNotification)

{{ $selectedNotification->title ?? 'بدون عنوان' }}

{{ $selectedNotification->created_at->translatedFormat('d F Y - h:i A') }}
{!! nl2br(e($selectedNotification->message ?? '')) !!}
@else
@forelse ($myNotifications as $notification)

{{ $notification->title ?? 'إشعار' }}

{{ $notification->message ?? '' }}

{{ $notification->created_at->diffForHumans() }} @if(!$notification->read) @endif
@empty

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

صندوق الوارد الخاص بك فارغ حالياً.

@endforelse
@if ($myNotifications->hasPages())
{{ $myNotifications->links() }}
@endif
@endif @elseif ($activeTab === 'send')
@if ($targetType === 'specific')
@if($selectedUserId) @endif
@if (!$selectedUserId && strlen($search) >= 2)
@forelse ($users as $user)
{{ mb_substr($user->name, 0, 1) }}

{{ $user->name }}

{{ $user->phone }}

@if($user->fcm_token) App @else No Token @endif
@empty
لا توجد نتائج مطابقة
@endforelse
@endif @error('selectedUserId') {{ $message }} @enderror
@endif
@error('title') {{ $message }} @enderror
@error('message') {{ $message }} @enderror

معلومات هامة

الإشعارات المرسلة ستصل للمستخدمين الذين لديهم التطبيق مثبت وقاموا بتسجيل الدخول. سيتم حفظ الإشعار في سجل التنبيهات داخل التطبيق أيضاً.

  • الرسائل القصيرة والمباشرة تحقق تفاعل أكبر.
  • تجنب إرسال إشعارات في أوقات متأخرة.
@endif