@extends('layouts.app') @section('content') @php $formatRupiah = fn ($value) => 'Rp ' . number_format((float) $value, 0, ',', '.'); $entries = $entries ?? collect(); $summary = $summary ?? []; $accounts = $accounts ?? collect(); @endphp
Jumlah Baris
{{ number_format((int) ($summary['total_rows'] ?? 0), 0, ',', '.') }}
Jumlah Jurnal
{{ number_format((int) ($summary['total_journals'] ?? 0), 0, ',', '.') }}
Total Debit
{{ $formatRupiah($summary['total_debit'] ?? 0) }}
Total Kredit
{{ $formatRupiah($summary['total_kredit'] ?? 0) }}
@php $lastGroup = null; @endphp @forelse($entries as $entry) @php $lastGroup = $entry['group_key']; @endphp @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 jurnal pada periode ini.
Total {{ $formatRupiah($summary['total_debit'] ?? 0) }} {{ $formatRupiah($summary['total_kredit'] ?? 0) }}
@endsection