@extends('layouts.public') @section('content')
{{-- ================= HEADER ================= --}}
{{-- Left Logo --}}
{{-- Center Logo --}}
{{-- Right Logo --}}

Home & Tribal Affairs Department

Khyber Pakhtunkhwa

Track Complaint Status


{{-- ================= SEARCH FORM ================= --}}

Track Your Complaint

Enter your CNIC number to view your complaints and their current status.

@if($errors->any())
{{ $errors->first() }}
@endif
@csrf
Enter CNIC in the format: 12345-1234567-1
{{-- ================= RESULTS ================= --}} @isset($complaints)

Complaint History

CNIC: {{ $cnic }}

{{ $complaints->count() }} Complaint(s)
@if($complaints->count() > 0)
@foreach($complaints as $complaint)
Complaint #{{ $complaint->id }} @php $status = $complaint->latestStatus->status ?? 'Pending'; @endphp @if($status == 'Resolved') Resolved @elseif($status == 'In Progress') In Progress @elseif($status == 'Rejected') Rejected @else {{ $status }} @endif
Complaint Type
{{ $complaint->complaintType->type_name ?? 'N/A' }}
Complaint Against
{{ $complaint->complaintAgainst->name ?? 'N/A' }}
District
{{ $complaint->district->district_name ?? 'N/A' }}
Complaint
{{ \Illuminate\Support\Str::limit( $complaint->complaint, 180 ) }}
Submitted On
{{ $complaint->created_at->format('d M Y, h:i A') }}
@endforeach
@else
No Complaint Found

No complaint has been registered against CNIC {{ $cnic }}.

@endif @endisset
@endsection