@extends('layouts.app') @section('content')
{{-- Header --}}

Detail Rekap Iuran

Periode: {{ $rekap->periode }}
← Kembali
{{-- Alert ditolak --}} @if($rekap->status === 'ditolak')
⚠️
Rekap Ditolak RT
{{ $rekap->catatan_rt }}
@endif {{-- Summary card --}}
Total Iuran Terkumpul
Rp {{ number_format($rekap->iurans->sum('jumlah'), 0, ',', '.') }}
{{ $rekap->iurans->count() }} penghuni
{{ $rekap->iurans->where('status','lunas')->count() }} lunas
{{-- ── DESKTOP TABLE ── --}}
@foreach($rekap->iurans as $i) @endforeach
Penghuni Bulan / Tahun Jumlah Status
{{ $i->penghuni->nama ?? '-' }} {{ $i->bulan }} {{ $i->tahun }} Rp {{ number_format($i->jumlah, 0, ',', '.') }} @php $s = strtolower($i->status); @endphp {{ ucfirst($i->status) }}
Total Keseluruhan Rp {{ number_format($rekap->iurans->sum('jumlah'), 0, ',', '.') }}
{{-- ── MOBILE CARDS ── --}}
@foreach($rekap->iurans as $i) @php $s = strtolower($i->status); @endphp
{{ $i->penghuni->nama ?? '-' }}
{{ $i->bulan }} {{ $i->tahun }}
Rp {{ number_format($i->jumlah, 0, ',', '.') }}
{{ ucfirst($i->status) }}
@endforeach
Total Keseluruhan Rp {{ number_format($rekap->iurans->sum('jumlah'), 0, ',', '.') }}
@endsection