@if (session()->get('error'))
{{ session()->get('error') }}
@endif
@if (session()->get('success'))
{{ session()->get('success') }}
@endif
|
No
|
Nama |
Kecamatan/Kelurahan |
RT/RW |
Tanggal Bayar |
Jumlah Bayar |
Action |
@php
$total = 0;
@endphp
@foreach ($anggota as $row)
| {{ $loop->iteration }} |
{{ $row->nama }} |
{{ $row->kecamatan . '/' . $row->kelurahan }} |
{{ $row->rt . '/' . $row->rw }} |
@php
$bayar = App\Models\BayarModel::where('anggota_id', $row->id)->where('bulan',$bulanIndo)->where('tahun',date("Y"))->first();
@endphp
@if ($bayar)
{{ date('d F Y', strtotime($bayar->tgl)) }} |
Rp. {{ number_format($bayar->jumlah) }} |
@else
Belum Bayar |
Belum Bayar |
@endif
@if ($bayar)
@else
@endif
|
@php
$total += $bayar->jumlah ?? 0;
@endphp
@endforeach
| Jumlah |
Rp. {{ number_format($total) }}
|