@extends('layouts.app') @section('title', 'Edit Pengaduan') @section('content')

Edit Pengaduan

Edit pengaduan #{{ $pengaduan->id ?? '1' }}

Kembali Lihat Detail
@csrf @method('PUT')
Edit Pengaduan
Pilih warga yang melaporkan pengaduan
Tanggapan ini akan dikirim ke pelapor
Upload foto tambahan jika ada (opsional, maksimal 5 file)
@if(isset($pengaduan->foto) && $pengaduan->foto)
Foto yang sudah ada:
@foreach(json_decode($pengaduan->foto, true) ?? [] as $foto)
{{ basename($foto) }}
@endforeach
@endif
Info Pelapor
@if(isset($pengaduan->pelapor))
{{ $pengaduan->pelapor->nama }}
NIK: {{ $pengaduan->pelapor->nik }}
Alamat: {{ $pengaduan->pelapor->alamat }}
Telepon: {{ $pengaduan->pelapor->telepon ?: 'Belum diisi' }}
@else

Pilih pelapor untuk melihat informasi

@endif
Timeline Proses
Pengaduan Diterima

{{ isset($pengaduan->created_at) ? $pengaduan->created_at->format('d M Y H:i') : 'Belum tersedia' }}

Sedang Diproses

@if(in_array($pengaduan->status ?? 'pending', ['diproses', 'selesai'])) {{ isset($pengaduan->updated_at) ? $pengaduan->updated_at->format('d M Y H:i') : 'Belum tersedia' }} @else - @endif

Selesai

@if(($pengaduan->status ?? '') === 'selesai') {{ isset($pengaduan->updated_at) ? $pengaduan->updated_at->format('d M Y H:i') : 'Belum tersedia' }} @else - @endif

Informasi Sistem
ID Pengaduan #{{ $pengaduan->id ?? '1' }}
Dibuat {{ isset($pengaduan->created_at) ? $pengaduan->created_at->format('d/m/Y H:i') : 'Belum tersedia' }}
Diperbarui {{ isset($pengaduan->updated_at) ? $pengaduan->updated_at->format('d/m/Y H:i') : 'Belum tersedia' }}
Lihat Detail
Zona Bahaya

Hapus pengaduan secara permanen.

@endsection @push('styles') @endpush @push('scripts') @endpush