@extends('layouts.layoutMaster') @section('title', 'Detail Buku Besar') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', //'resources/assets/vendor/fonts/boxicons.scss' ]) @endsection @section('page-style') @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js' ]) @endsection @section('content')
| Nama Detail | Debit (Rp) | Kredit (Rp) | Saldo (Rp) | Aksi |
|---|---|---|---|---|
| {{ $listSub->name }} | {{ rupiah_format($listDebit, 0, ',', '.') }} | {{ rupiah_format($listCredit, 0, ',', '.') }} | {{ rupiah_format(abs($listBalance), 0, ',', '.') }} | Detail |
| Total | {{ rupiah_format($subAccount->debit_total, 0, ',', '.') }} | {{ rupiah_format($subAccount->credit_total, 0, ',', '.') }} | @php $totalBalance = in_array($account->account_type, ['asset', 'expense']) ? $subAccount->debit_total - $subAccount->credit_total : $subAccount->credit_total - $subAccount->debit_total; @endphp {{ rupiah_format(abs($totalBalance), 0, ',', '.') }} |
| Tanggal | Referensi | Deskripsi | Debit (Rp) | Kredit (Rp) |
|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($entry->journal->transaction_date)->format('d-m-Y') }} | {{ $entry->journal->reference }} | {{ $entry->journal->description }} | {{ $entry->entry_type == 'debit' ? rupiah_format($entry->amount, 0, ',', '.') : '-' }} | {{ $entry->entry_type == 'credit' ? rupiah_format($entry->amount, 0, ',', '.') : '-' }} |
| Tidak ada transaksi dalam periode ini | ||||
{{ $entries->where('entry_type', 'debit')->count() }} transaksi debit
{{ $entries->where('entry_type', 'credit')->count() }} transaksi kredit
Per tanggal {{ $endDate->format('d M Y') }}
| No | Tanggal | Referensi | Deskripsi | Debit (Rp) | Kredit (Rp) | Saldo (Rp) |
|---|---|---|---|---|---|---|
| {{ $no++ }} | {{ \Carbon\Carbon::parse($entry->transaction_date)->format('d-m-Y') }} | {{ $entry->reference }} | {{ $entry->description }} | {{ $entry->entry_type == 'debit' ? rupiah_format($entry->amount, 0, ',', '.') : '-' }} | {{ $entry->entry_type == 'credit' ? rupiah_format($entry->amount, 0, ',', '.') : '-' }} | {{ rupiah_format(abs($entry->balance), 0, ',', '.') }} |
| Total: | {{ rupiah_format($entries->where('entry_type', 'debit')->sum('amount'), 0, ',', '.') }} | {{ rupiah_format($entries->where('entry_type', 'credit')->sum('amount'), 0, ',', '.') }} | {{ $entries->last() ? rupiah_format(abs($entries->last()->balance), 0, ',', '.') : '0' }} | |||