@extends('user.layouts.app') @section('css') @endsection @section('title') تفاصيل {{ $complaint->type === 'complaint' ? 'الشكوى' : 'الاقتراح' }} @endsection @php $typeLabels = [ 'complaint' => 'شكوى', 'suggestion' => 'اقتراح', ]; $statusLabels = [ 'pending' => 'معلّقة', 'under_review' => 'قيد المراجعة', 'resolved' => 'تم الحل', 'rejected' => 'مرفوضة', ]; @endphp @section('content')
العودة للشكاوى والاقتراحات
{{-- بطاقة تفاصيل الشكوى --}}
النوع: @if($complaint->type === 'complaint') @else @endif {{ $typeLabels[$complaint->type] ?? $complaint->type }}
الحالة: {{ $statusLabels[$complaint->status] ?? $complaint->status }}
الموضوع: {{ $complaint->subject }}
التاريخ: {{ $complaint->created_at->format('Y/m/d h:i A') }}
التفاصيل:
{{ $complaint->message }}
@if($complaint->image)
المرفق:
@endif
{{-- رد المشرف --}} @if($complaint->admin_response)
رد الإدارة
{{ $complaint->admin_response }}
@endif
@endsection