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

Beranda Penghuni

@if($penghuni)
Data Anda

Nama: {{ $penghuni->nama }}

Email: {{ $penghuni->email }}

Status Huni: @if($penghuni->status_huni == 'Tetap') Tetap @else Kontrak @endif

@if($penghuni->status_huni == 'Kontrak')

Tanggal Keluar: {{ $penghuni->tanggal_keluar }}

@endif
@if($penghuni->rumah)
Rumah Anda

Blok {{ $penghuni->rumah->blok }} - No {{ $penghuni->rumah->no_rumah }}

Status: {{ $penghuni->rumah->status }}

@endif {{-- 🔥 PROGRESS IURAN --}} @if($iuran->count())
Riwayat Iuran
@foreach($iuran as $i) {{-- BULAN --}} {{-- TANGGAL --}} {{-- PROGRESS --}} {{-- STATUS --}} {{-- AKSI --}} @endforeach
Bulan Tanggal Bayar Progress Status Aksi
{{ $i->bulan }} {{ $i->tahun }} {{ $i->tanggal_bayar ? \Carbon\Carbon::parse($i->tanggal_bayar)->translatedFormat('d M Y') : '-' }}
{{-- STEP 1 --}} @if($i->bukti_pembayaran) ✔ Upload @else Upload @endif {{-- STEP 2 --}} @if($i->status == 'lunas') ✔ Verifikasi @elseif($i->bukti_pembayaran) Proses @else Verifikasi @endif {{-- STEP 3 --}} @if($i->status == 'lunas') ✔ Selesai @else Selesai @endif
@if($i->status == 'lunas') Lunas @elseif($i->bukti_pembayaran) Menunggu @else Belum Bayar @endif {{-- BAYAR --}} @if($i->status != 'lunas') Bayar @endif {{-- HAPUS --}}
@csrf @method('DELETE')
@endif @else
Data penghuni belum tersedia
@endif
@endsection