@php $formatRupiah = fn ($value) => 'Rp ' . number_format((float) $value, 0, ',', '.'); $entries = $entries ?? collect(); $summary = $summary ?? []; $lastGroup = null; @endphp
JURNAL UMUM
Periode {{ \Carbon\Carbon::parse($startDate)->format('d/m/Y') }} s.d. {{ \Carbon\Carbon::parse($endDate)->format('d/m/Y') }}
Total Jurnal: {{ number_format((int) ($summary['total_journals'] ?? 0), 0, ',', '.') }} Total Debit: {{ $formatRupiah($summary['total_debit'] ?? 0) }} Total Kredit: {{ $formatRupiah($summary['total_kredit'] ?? 0) }}
@forelse($entries as $entry) @empty @endforelse @if($entries->isNotEmpty()) @endif
Tanggal Ref Keterangan Akun Debit Kredit
{{ \Carbon\Carbon::parse($entry['tanggal'])->format('d/m/Y') }} {{ $entry['reference'] }} {{ $entry['description'] }} {{ $entry['account'] }} {{ ($entry['debit'] ?? 0) > 0 ? $formatRupiah($entry['debit']) : '-' }} {{ ($entry['kredit'] ?? 0) > 0 ? $formatRupiah($entry['kredit']) : '-' }}
Tidak ada data
Total {{ $formatRupiah($summary['total_debit'] ?? 0) }} {{ $formatRupiah($summary['total_kredit'] ?? 0) }}