@extends('layouts.admin') @section('page_title', 'Laporan Setor User') @section('admin_content')

Laporan Setoran User

Manual

Matrix setoran harian per pengguna untuk validasi admin.

-
Download Excel
Total User
{{ number_format(count($matrix), 0, ',', '.') }}
Pengguna aktif dalam rentang ini
Belum Disetor
{{ number_format($statusSummary['pending'] ?? 0, 0, ',', '.') }}
Status tertunda / belum validasi admin
Sudah Disetor
{{ number_format($statusSummary['settled'] ?? 0, 0, ',', '.') }}
Status sudah dikonfirmasi admin
@foreach ($dateRange as $date) @endforeach @foreach ($matrix as $row) @foreach ($dateRange as $date) @php $cell = $row['cells'][$date] ?? ['amount' => 0, 'status' => 'pending', 'record_id' => null]; $isSettled = $cell['status'] === 'settled'; $hasNominal = (float) ($cell['amount'] ?? 0) > 0; @endphp @endforeach @endforeach
User {{ \Carbon\Carbon::parse($date)->format('d/m') }} Total
{{ $row['user']->name }}
{{ $row['user']->kelurahan ?? '-' }}
@if ($hasNominal)
Rp {{ number_format((float) $cell['amount'], 0, ',', '.') }}
@else
-
@endif @if ($hasNominal)
@csrf
@endif
Rp {{ number_format((float) $row['total'], 0, ',', '.') }}
@endsection