@extends('admin.layouts.admin') @section('content')

إدارة طلبات الأدوية (Expired & Washout)

@if(session('success'))
{{ session('success') }}
@endif
@foreach($requests as $request) @endforeach
رقم الطلب الصيدلي النوع عدد الأصناف الإجمالي الحالة التاريخ العمليات
{{ $request->request_number }} {{ $request->user->name }}
{{ $request->user->phone }}
@if($request->type == 'expired') Expired @else Washout @endif {{ $request->total_items }} {{ $request->total_quantity }} @php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'processing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $statusAr = [ 'pending' => 'قيد الانتظار', 'processing' => 'جاري التنفيذ', 'completed' => 'تم الانتهاء', 'cancelled' => 'ملغي', ]; @endphp {{ $statusAr[$request->status] ?? $request->status }} {{ $request->created_at->format('Y-m-d H:i') }} عرض
@csrf @method('DELETE')
{{ $requests->links() }}
@endsection