@php
$total_penerima = $penerimas->count();
$sudah_cair = 0;
$belum_cair = 0;
$current_month = now()->format('Y-m');
foreach($penerimas as $p) {
if ($p->tanggal_pencairan_terakhir && $p->tanggal_pencairan_terakhir->format('Y-m') === $current_month) {
$sudah_cair++;
} else {
$belum_cair++;
}
}
@endphp
Total Penerima
Sudah Cair
Belum Cair
@if(Auth::user()->role === 'user')
Tempat Ibadah Anda
@forelse($ibadahs as $index => $ib)
{{ $ib->nama_tempat }}
{{ $ib->jenis_tempat_ibadah ?? 'Lainnya' }}
Pengurus
{{ $ib->nama_pengurus ?? '-' }}
Kontak
{{ $ib->kontak_pengurus ?? '-' }}
Radius
{{ $ib->radius_meter }} m
Alamat
{{ $ib->alamat }}
@empty
Belum ada data
Anda belum menambahkan lokasi tempat ibadah.
@endforelse
@endif
@if(Auth::user()->role === 'user')
@endif