Laporan Neraca Keuangan

{{ config('app.name', 'EventCek') }}

Periode: Per {{ \Carbon\Carbon::now()->format('d F Y') }}

Ringkasan Keuangan

Total Pendapatan : Rp {{ number_format($summary['income'], 0, ',', '.') }}
Total Pengeluaran : Rp {{ number_format($summary['expense'], 0, ',', '.') }}
Saldo Akhir : Rp {{ number_format($summary['balance'], 0, ',', '.') }}
@php $runningBalance = 0; @endphp {{-- We need to process in chronological order for running balance, but display logic might differ. Typically reports show chronological order. --}} @foreach($entries->sortBy('date') as $entry) @php $amount = $entry['amount']; $isIncome = $entry['category'] === 'income'; $isExpense = $entry['category'] === 'expense'; // Calculate valid balance contribution $effectiveAmount = 0; if (in_array(strtolower($entry['status']), ['approved', 'active', 'paid'])) { if ($isIncome) $effectiveAmount = $amount; if ($isExpense) $effectiveAmount = -$amount; } $runningBalance += $effectiveAmount; @endphp @endforeach @if($entries->isEmpty()) @endif
Tanggal Keterangan Debit (Masuk) Kredit (Keluar) Saldo
{{ \Carbon\Carbon::parse($entry['date'])->format('d/m/Y H:i') }} {{ $entry['title'] }}
{{ Str::limit($entry['description'], 100) }}
Status: {{ $entry['status'] }}
@if($isIncome && in_array(strtolower($entry['status']), ['approved', 'active', 'paid'])) Rp {{ number_format($amount, 0, ',', '.') }} @else - @endif @if($isExpense && in_array(strtolower($entry['status']), ['approved', 'active', 'paid'])) Rp {{ number_format($amount, 0, ',', '.') }} @else - @endif Rp {{ number_format($runningBalance, 0, ',', '.') }}
Belum ada transaksi