@extends('layout') @section('content')
Total Pembayaran
Rp {{ number_format($total, 0, ',', '.') }}
Pelayanan Masih Proses
{{ $proses }}
Sisa Saldo
Rp {{ number_format($sisa, 0, ',', '.') }}
Total Pelayanan
{{ $pelayanan }}
| No | Nama | Kecamatan/Kelurahan | RT/RW | Tanggal Bayar | Jumlah Bayar | ||
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $row->nama }} | {{ $row->kecamatans?->nama . '/' . $row->kelurahans?->nama }} | {{ $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) }} | @elseBelum Bayar | Belum Bayar | @endif
| Jumlah | Rp. {{ number_format($total) }} | ||||||