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

Complaints

Manage and resolve tenant complaints.

@forelse($complaints as $complaint)
{{ $complaint->title }}
{{ $complaint->user->name ?? 'Unknown' }}
{{ ucfirst(str_replace('_', ' ', $complaint->status)) }}

{{ $complaint->description }}

{{ $complaint->created_at->diffForHumans() }}
@if($complaint->status == 'pending')
@csrf
@endif @if($complaint->status != 'resolved')
@csrf
@endif
@empty

No complaints submitted yet

@endforelse
@endsection