@extends('layouts.app') @section('content') @php $typeClass = match($notification->type_id) { 1, 2 => 'bg-type-booking', 3 => 'bg-type-chat', 4, 6 => 'bg-type-cancel', 5 => 'bg-type-system', default => 'bg-type-default' }; $typeIcon = match($notification->type_id) { 1, 2 => 'fa-calendar-check', 3 => 'fa-comments', 4, 6 => 'fa-ban', 5 => 'fa-cogs', default => 'fa-bell' }; $isRead = $notification->getRawOriginal('is_read') == 1; @endphp
إشعار رقم #{{ $notification->id }}

{{ $notification->title }}

@if($isRead) مقروء @else لم يُقرأ @endif
محتوى الإشعار
@if($notification->description) {!! nl2br(e($notification->description)) !!} @else لا يوجد تفاصيل إضافية لهذا الإشعار (اعتمد على العنوان فقط). @endif
البيانات المرتبطة
المستخدم المستلم
@if($notification->user)
{{ $notification->user->full_name }}
ID: {{ $notification->to_user_id }}
@else مستخدم غير معروف (ID: {{ $notification->to_user_id }}) @endif
الحجز المرتبط
@if($notification->booking_id)
حجز رقم #{{ $notification->booking_id }}
نوع الحجز: {{ $notification->booking_type ?: 'غير محدد' }}
@else غير مرتبط بحجز @endif
توقيت الإرسال
{{ \Carbon\Carbon::parse($notification->created_on)->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($notification->created_on)->format('h:i A') }}

معلومات إضافية
نوع الإشعار (DB): {{ $notification->type_label }} ({{ $notification->type_id }})
أُرسل بواسطة (ID): {{ $notification->created_by_id ?: 'System' }}
@endsection