@extends('layouts.app') @section('title', 'Laporan Iuran') @section('page-title', 'Analisis Laporan') @section('breadcrumb', 'SiIuran / Laporan') @push('styles') @endpush @section('content')

Laporan Keuangan

Analisis mendalam data iuran dan tunggakan anggota.

{{-- Filters --}}
@php $totalAll = $totalLunas + $totalBelum + $totalSebagian; $countLunas = $data->where('status','lunas')->count(); $countBelum = $data->where('status','belum_lunas')->count(); $countSebagian = $data->where('status','sebagian')->count(); @endphp {{-- Summary --}}
TOTAL TAGIHAN
Rp{{ number_format($totalAll, 0, ',', '.') }}
TOTAL LUNAS
Rp{{ number_format($totalLunas, 0, ',', '.') }}
BELUM LUNAS
Rp{{ number_format($totalBelum, 0, ',', '.') }}
SEBAGIAN BAYAR
Rp{{ number_format($totalSebagian, 0, ',', '.') }}
{{-- Detail Table --}}
Rincian Transaksi
{{ $data->count() }} Transaksi Tercatat
@forelse($data as $p) @empty @endforelse @if($data->count() > 0) @endif
Anggota Kategori Periode Nominal Status Tanggal
{{ substr($p->anggota?->nama ?? '?', 0, 1) }}
{{ $p->anggota?->nama ?? '-' }}
{{ $p->anggota?->kode_anggota }}
{{ $p->jenisIuran?->nama_iuran ?? '-' }} {{ $p->nama_bulan }} {{ $p->tahun }} Rp{{ number_format($p->jumlah, 0, ',', '.') }} @if($p->status === 'lunas') LUNAS @elseif($p->status === 'belum_lunas') BELUM LUNAS @else SEBAGIAN @endif {{ $p->tanggal_bayar ? $p->tanggal_bayar->format('d/m/y') : '-' }}
Data tidak ditemukan.
TOTAL LUNAS (DITERIMA) Rp{{ number_format($totalLunas, 0, ',', '.') }}
@endsection @push('scripts') @endpush