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