@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
@if($iuran && $iuran->count()) @foreach($iuran as $i)
Iuran {{ $i->bulan }} {{ $i->tahun }}

Jumlah: Rp {{ number_format($i->jumlah,0,',','.') }}

{{-- STATUS --}}
Status: @if($i->status == 'lunas') Lunas @elseif($i->bukti_pembayaran) Menunggu Verifikasi @else Belum Bayar @endif
@endforeach @endif @else
Data penghuni belum tersedia
@endif @endsection
Bulan Tanggal Bayar Progress Status Aksi