@extends('company::components.layouts.master') @section('title', 'تفاصيل الإشعار') @section('page-title', 'تفاصيل الإشعار') @section('page-description', 'عرض تفاصيل الإشعار والإجراءات المتاحة') @section('content')
@switch($notification->type) @case('fuel_request_created') @case('fuel_request_submitted') @break @default @endswitch

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->format('Y-m-d H:i') }} ({{ $notification->created_at->diffForHumans() }})
{{ $notification->type_name }}
@if($notification->isRead())
مقروء
@else
جديد
@endif
العودة للقائمة
@csrf @method('DELETE')
@if($notification->data)

تفاصيل إضافية

@if(isset($notification->data['station_name']))
المحطة
{{ $notification->data['station_name'] }}
@endif @if(isset($notification->data['fuel_request_id']))
رقم طلب الوقود
#{{ $notification->data['fuel_request_id'] }}
@endif @if(isset($notification->data['total_amount']))
الكمية المطلوبة
{{ number_format($notification->data['total_amount']) }} لتر
@endif @if(isset($notification->data['priority']))
الأولوية
@if($notification->data['priority'] === 'urgent') عاجل @else عادي @endif
@endif @if(isset($notification->data['requested_by']))
طلب بواسطة
{{ $notification->data['requested_by'] }}
@endif @if(isset($notification->data['status']))
الحالة
@switch($notification->data['status']) @case('draft') مسودة @break @case('submitted') مرسل @break @case('under_review') قيد المراجعة @break @case('approved') معتمد @break @case('rejected') مرفوض @break @default {{ $notification->data['status'] }} @endswitch
@endif
@endif @if($notification->data && isset($notification->data['fuel_request_id']))

إجراءات مرتبطة

عرض طلب الوقود @if(in_array($notification->data['status'] ?? '', ['submitted', 'under_review'])) مراجعة الطلب @endif جميع طلبات الوقود
@endif
@endsection