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

Beranda Penghuni

@if(!$penghuni)
Lengkapi Data Penghuni
@csrf
@endif {{-- DATA PENGHUNI --}} @if(isset($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
{{-- RUMAH --}} @if($penghuni->rumah)
Rumah Anda

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

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

@endif @endif {{-- ========================= --}} {{-- 🔥 DATA IURAN FINAL --}} {{-- ========================= --}}

Data Iuran Saya

@if(isset($iuran) && count($iuran) > 0) @foreach($iuran as $i)
{{-- JUDUL --}}
Iuran {{ $i->bulan }} {{ $i->tahun }}
{{-- JUMLAH --}}

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

{{-- TANGGAL --}}

Tanggal Bayar: {{ $i->tanggal_bayar ? \Carbon\Carbon::parse($i->tanggal_bayar)->translatedFormat('d M Y') : '-' }}

{{-- PROGRESS --}}
{{-- STEP 1 --}}
@if($i->bukti_pembayaran)
✔
@else
@endif Upload
{{-- STEP 2 --}}
@if($i->status == 'lunas')
✔
@elseif($i->bukti_pembayaran)
@else
2
@endif Verifikasi
{{-- STEP 3 --}}
@if($i->status == 'lunas')
✔
@else
3
@endif Selesai
{{-- STATUS --}}
Status: @if($i->status == 'lunas') Lunas @elseif(!empty($i->bukti_pembayaran)) Menunggu Verifikasi @else Belum Bayar @endif
@if($i->status == 'lunas')
@csrf @method('DELETE')
@endif
@endforeach @else
Belum ada data iuran
@endif
@endsection {{-- 🔥 STYLE --}} @section('scripts') @endsection @section('scripts') @endsection