@extends('dashboard.layouts.base') @section('content')

سجل الإشعارات المرسلة

@if(request()->hasAny(['search', 'admin_id', 'notification_type', 'date_from', 'date_to'])) @endif
{{-- --}} @forelse($notifications as $index => $notification) {{-- --}} @empty @endforelse
# العنوان المحتوى المرسل إليهالنوعالمشرف المرسل تاريخ الإرسال الإجراءات
{{ $notifications->firstItem() + $index }} @if(isset($notification->data->title_translations->ar)) {{ Str::limit($notification->data->title_translations->ar, 50) }} @else {{ Str::limit($notification->data->title ?? '-', 50) }} @endif @if(isset($notification->data->body_translations->ar)) {{ Str::limit($notification->data->body_translations->ar, 60) }} @else {{ Str::limit($notification->data->body ?? '-', 60) }} @endif @if($notification->notifiable_id && isset($notification->recipient)) @if(isset($notification->recipient->provider)) {{ $notification->recipient->first_name }} {{ $notification->recipient->last_name }}
(مقدم خدمة)
@else {{ $notification->recipient->first_name }} {{ $notification->recipient->last_name }}
(مستخدم)
@endif @else إرسال جماعي @endif
@if(isset($notification->data->type)) @if($notification->data->type == 'user') مستخدم @elseif($notification->data->type == 'provider') مقدم خدمة @else {{ $notification->data?->type }} @endif @else - @endif @if(isset($notification->admin)) {{ $notification->admin?->name }} @else النظام @endif {{ \Carbon\Carbon::parse($notification->created_at)->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($notification->created_at)->format('h:i A') }}
لا توجد إشعارات مرسلة
{{ $notifications->appends(request()->query())->links() }}
@endsection