@extends('layouts.app') @section('title', app()->getLocale() === 'bn' ? 'অভিযোগ তালিকা' : 'Grievances') @section('page-title', app()->getLocale() === 'bn' ? 'অভিযোগ' : 'Grievances') @section('content')

{{ app()->getLocale() === 'bn' ? 'অভিযোগ তালিকা' : 'Grievance List' }}

{{-- Filters --}}
{{ app()->getLocale() === 'bn' ? 'রিসেট' : 'Reset' }}
{{-- Table --}}
@forelse($grievances as $g) @empty @endforelse
{{ app()->getLocale() === 'bn' ? 'ট্র্যাকিং নং' : 'Tracking #' }} {{ app()->getLocale() === 'bn' ? 'অভিযোগকারী' : 'Complainant' }} {{ app()->getLocale() === 'bn' ? 'ক্যাটাগরি' : 'Category' }} {{ app()->getLocale() === 'bn' ? 'অগ্রাধিকার' : 'Priority' }} {{ __('Status') }} {{ app()->getLocale() === 'bn' ? 'তারিখ' : 'Date' }} {{ __('Actions') }}
{{ $g->tracking_number }}

{{ $g->complainant_name }}

{{ $g->complainant_phone }}

{{ ucfirst(str_replace('_',' ',$g->category)) }} @php $pc = match($g->priority ?? 'medium') { 'high' => 'red', 'low' => 'green', default => 'yellow' }; @endphp {{ ucfirst($g->priority ?? 'medium') }} @php $sc = match($g->status) { 'resolved' => 'green', 'under_review' => 'blue', 'rejected' => 'red', default => 'yellow' }; @endphp {{ ucfirst(str_replace('_',' ',$g->status)) }} {{ $g->created_at->format('d/m/Y') }}
{{ __('No results found') }}
@if($grievances->hasPages())
{{ $grievances->links() }}
@endif
@endsection