@extends('layouts.app') @section('title', app()->getLocale() === 'bn' ? 'অভিযোগের বিবরণ' : 'Grievance Details') @section('page-title', app()->getLocale() === 'bn' ? 'অভিযোগের বিবরণ' : 'Grievance Details') @section('content')
← {{ __('Back') }}
{{-- Main --}}

{{ $grievance->tracking_number }}

{{ $grievance->created_at->format('d/m/Y H:i') }}

@php $sc = match($grievance->status) { 'resolved' => 'green', 'under_review' => 'blue', 'rejected' => 'red', default => 'yellow' }; @endphp {{ ucfirst(str_replace('_',' ',$grievance->status)) }}
{{ app()->getLocale() === 'bn' ? 'অভিযোগকারী' : 'Complainant' }}: {{ $grievance->complainant_name }}
{{ __('Phone') }}: {{ $grievance->complainant_phone }}
{{ __('NID Number') }}: {{ $grievance->complainant_nid ?? '—' }}
{{ app()->getLocale() === 'bn' ? 'ক্যাটাগরি' : 'Category' }}: {{ ucfirst(str_replace('_',' ',$grievance->category)) }}
{{ app()->getLocale() === 'bn' ? 'অগ্রাধিকার' : 'Priority' }}: {{ ucfirst($grievance->priority ?? 'medium') }}
{{ app()->getLocale() === 'bn' ? 'দায়িত্বপ্রাপ্ত' : 'Assigned To' }}: {{ $grievance->assignedTo?->name ?? '—' }}
@if($grievance->family) @endif
{{ __('Union') }}: {{ $grievance->family?->union?->name }} → {{ $grievance->family?->union?->upazila?->name }} → {{ $grievance->family?->union?->upazila?->district?->name }} → {{ $grievance->family?->union?->upazila?->district?->division?->name }}

{{ app()->getLocale() === 'bn' ? 'বিবরণ' : 'Description' }}

{{ $grievance->description }}

@if($grievance->resolution_note)

{{ app()->getLocale() === 'bn' ? 'সমাধান নোট' : 'Resolution Note' }}

{{ $grievance->resolution_note }}

@if($grievance->resolved_at)

{{ app()->getLocale() === 'bn' ? 'সমাধানের তারিখ' : 'Resolved' }}: {{ $grievance->resolved_at->format('d/m/Y H:i') }}

@endif
@endif @if($grievance->attachment_path)

{{ app()->getLocale() === 'bn' ? 'সংযুক্তি' : 'Attachment' }}

{{ app()->getLocale() === 'bn' ? 'ফাইল দেখুন' : 'View File' }} →
@endif
{{-- Sidebar Actions --}}
@if(in_array($grievance->status, ['submitted','under_review'])) {{-- Assign --}}

{{ app()->getLocale() === 'bn' ? 'দায়িত্ব অর্পণ' : 'Assign' }}

@csrf
{{-- Resolve --}}

{{ app()->getLocale() === 'bn' ? 'সমাধান' : 'Resolve' }}

@csrf
{{-- Reject --}}

{{ app()->getLocale() === 'bn' ? 'বাতিল' : 'Reject' }}

@csrf
@else

{{ app()->getLocale() === 'bn' ? 'এই অভিযোগ ইতিমধ্যে প্রক্রিয়া সম্পন্ন হয়েছে।' : 'This grievance has already been processed.' }}

@endif
@endsection