@extends('layout') @section('content')
Dashboard

Total Pembayaran

Rp {{ number_format($total, 0, ',', '.') }}

Pelayanan Masih Proses

{{ $proses }}

Sisa Saldo

Rp {{ number_format($sisa, 0, ',', '.') }}

Total Pelayanan

{{ $pelayanan }}

Report Pembayaran Iuran Periode {{ $bulanIndo . ' ' . date('Y') }} @if (isset($satu) && isset($dua))
Kecamatan {{ $satu->nama }}
Kelurahan {{ $dua->nama }}
@endif
@csrf
@php $total = 0; @endphp @foreach ($anggota as $row) @php $bayar = App\Models\BayarModel::where('anggota_id', $row->id) ->where('bulan', $bulanIndo) ->where('tahun', date('Y')) ->first(); @endphp @if ($bayar) @else @endif @php $total += $bayar->jumlah ?? 0; @endphp @endforeach
No Nama Kecamatan/Kelurahan RT/RW Tanggal Bayar Jumlah Bayar
{{ $loop->iteration }} {{ $row->nama }} {{ $row->kecamatans?->nama . '/' . $row->kelurahans?->nama }} {{ $row->rt . '/' . $row->rw }}{{ date('d F Y', strtotime($bayar->tgl)) }} Rp. {{ number_format($bayar->jumlah) }}Belum Bayar Belum Bayar
Jumlah Rp. {{ number_format($total) }}
@endsection