@extends('layout') @section('content')
Bayar Iuran
Data Bayar Iuran

@csrf
@if (session()->get('error'))

{{ session()->get('error') }}

@endif @if (session()->get('success'))

{{ session()->get('success') }}

@endif
@foreach ($result as $row) @endforeach
No Nama Kecamatan/Kelurahan RT/RW Tanggal Bayar Jumlah Bayar Action
{{ $loop->iteration }} {{ $row->anggota->nama }} {{ $row->anggota->kecamatan . '/' . $row->anggota->kelurahan }} {{ $row->anggota->rt . '/' . $row->anggota->rw }} {{ date('d F Y', strtotime($row->tgl)) }} Rp. {{ number_format($row->jumlah) }}
Jumlah Rp. {{ number_format($result->sum('jumlah')) }}
@endsection