@extends('layouts.owner') @section('breadcrumb') Keluhan / Detail Laporan @endsection @section('content')

Detail Keluhan

Informasi lengkap dan histori penanganan keluhan.

{{ str_replace('_', ' ', $complaint->category) }}

{{ $complaint->title }}

{{ $complaint->description }}

@if($complaint->photos->isNotEmpty())

Foto Lampiran

@foreach($complaint->photos as $photo) @endforeach
@endif

Histori Penanganan

@foreach($complaint->logs->sortByDesc('created_at') as $log)

Status berubah jadi {{ str_replace('_', ' ', $log->new_status) }}

• {{ $log->created_at->translatedFormat('d M Y, H:i') }}

Diperbarui oleh {{ $log->updater->name }}

@if($log->notes)
{{ $log->notes }}
@endif
@endforeach

Keluhan Dibuat

• {{ $complaint->created_at->translatedFormat('d M Y, H:i') }}

Update Penanganan

@csrf @method('PUT')

Pelapor

{{ substr($complaint->resident->user->name, 0, 1) }}

{{ $complaint->resident->user->name }}

Unit {{ $complaint->resident->lease->room->room_number }}

@endsection