@extends('admin.layouts.master') @section('title') الإشعارات @endsection @section('css') @include('admin.layouts.css') @endsection @section('body')
@foreach($notifications as $notification) @endforeach
# العنوان الرسالة النوع مرتبط بـ التاريخ الحالة العمليات
{{ $i }} {{ $notification->title }} {{ Str::limit($notification->message, 100) }} {{ $notification->type }} @if ($notification->related) @php $relatedRoute = ''; if ($notification->related_type === 'App\\Models\\Order') { $relatedRoute = route('admin.orders.show', $notification->related_id); } elseif ($notification->related_type === 'App\\Models\\TowRequest') { $relatedRoute = route('admin.tow-requests.show', $notification->related_id); } @endphp @if ($relatedRoute) عرض التفاصيل @else غير متوفر @endif @else غير مرتبط @endif {{ $notification->created_at->diffForHumans() }} {{ $notification->is_read ? 'مقروء' : 'غير مقروء' }} @if (!$notification->is_read) @endif
{{ $notifications->links() }}
@endsection @section('js') @include('admin.layouts.js') @endsection