@php $formatRupiah = fn (int $value) => 'Rp ' . number_format($value, 0, ',', '.'); $formatShort = fn (int $value) => 'Rp ' . number_format($value / 1000000, 1, ',', '.') . 'Jt'; $typeLabel = ['income' => 'Uang Masuk', 'expense' => 'Uang Keluar']; $typeBadge = [ 'income' => 'bg-success-light text-success dark:bg-success/10', 'expense' => 'bg-danger-light text-danger dark:bg-danger/10', ]; $accountTone = [ 'success' => [ 'icon' => 'bg-success-light text-success dark:bg-success/10', 'bar' => 'bg-success', 'text' => 'text-success', ], 'info' => [ 'icon' => 'bg-info-light text-info dark:bg-info/10', 'bar' => 'bg-info', 'text' => 'text-info', ], ]; @endphp Arus Barang Input Kas

Total Saldo

{{ $formatRupiah($summary['total_balance']) }}

Gabungan semua akun kas

Uang Masuk

{{ $formatRupiah($summary['income_today']) }}

Dari arus keluar barang

Uang Keluar

{{ $formatRupiah($summary['expense_today']) }}

Arus masuk dan laporan manual

Laporan Pending

{{ $summary['pending_reports'] }}

Butuh rekonsiliasi staf

@foreach ($accounts as $account) @php $tone = $accountTone[$account['tone']]; @endphp

Akun {{ ucfirst($account['type']) }}

{{ $account['name'] }}

{{ $account['description'] }}

Saldo saat ini

{{ $formatRupiah($account['balance']) }}

Tersedia

{{ $formatShort($account['available']) }}

Reserved

{{ $formatShort($account['reserved']) }}

Net Hari Ini

@php $net = $account['income_today'] - $account['expense_today']; @endphp

{{ $net >= 0 ? '+' : '-' }}{{ $formatShort(abs($net)) }}

Kesehatan kas operasional {{ $account['usage_percent'] }}%
Masuk: {{ $formatRupiah($account['income_today']) }} Keluar: {{ $formatRupiah($account['expense_today']) }}
@endforeach

Riwayat Transaksi Kas

Preview uang masuk/keluar dari arus barang dan laporan manual.

@foreach ($transactions as $transaction) @endforeach
Kode Akun Tipe Kategori Sumber Nilai Saldo Status Aksi

{{ $transaction['code'] }}

{{ $transaction['time'] }}

{{ $transaction['account'] }} {{ $typeLabel[$transaction['type']] }} {{ $transaction['category'] }}

{{ $transaction['source'] }}

{{ $transaction['note'] }}

{{ $transaction['type'] === 'income' ? '+' : '-' }}{{ $formatRupiah($transaction['amount']) }} {{ $formatShort($transaction['balance_before']) }} -> {{ $formatShort($transaction['balance_after']) }}