@extends('adminlte::page') @section('title', 'Detail Jurnal Umum') @section('content_header')

Detail Jurnal: {{ $journal->transaction_number }}

Kembali
@stop @section('content')

Informasi Transaksi

{{-- HEADER JURNAL --}}
Tanggal Transaksi

{{ \Carbon\Carbon::parse($journal->transaction_date)->format('d M Y') }}

Nomor Referensi

{{ $journal->reference ?? '-' }}

Dibuat Oleh

{{ $journal->creator->name ?? 'Sistem' }}

Keterangan / Deskripsi
{{ $journal->description }}
{{-- TABEL DETAIL DEBIT / KREDIT --}}
@php $totalDebit = 0; $totalCredit = 0; @endphp @foreach($journal->details as $detail) @endforeach
Kode Akun Nama Akun Debit (Rp) Kredit (Rp)
{{ $detail->account->code ?? 'N/A' }} {{ $detail->account->name ?? 'Akun Terhapus' }}
{{ $detail->description }}
@if($detail->debit > 0) Rp {{ number_format($detail->debit, 0, ',', '.') }} @php $totalDebit += $detail->debit; @endphp @else - @endif @if($detail->credit > 0) Rp {{ number_format($detail->credit, 0, ',', '.') }} @php $totalCredit += $detail->credit; @endphp @else - @endif
Total Rp {{ number_format($totalDebit, 0, ',', '.') }} Rp {{ number_format($totalCredit, 0, ',', '.') }}
Balance Check: @if($totalDebit == $totalCredit) SEIMBANG (BALANCE) @else TIDAK SEIMBANG (UNBALANCED) @endif
@stop @section('css') @stop