{{-- Header --}}

Catat Keuangan

Input pemasukan & pengeluaran operasional

@if (session()->has('success'))
{{ session('success') }}
@endif
{{-- Form Section --}}
{{-- Type Switcher --}}
{{-- Amount --}}
Rp
@error('amount') {{ $message }} @enderror
{{-- Category & Date --}}
@error('category') {{ $message }} @enderror
@error('transactionDate') {{ $message }} @enderror
{{-- Description --}}
@error('description') {{ $message }} @enderror
{{-- Proof File --}}
@if($proofFile) {{-- Preview --}}
@endif
@error('proofFile') {{ $message }} @enderror
Uploading...
{{-- Submit Button --}}
{{-- Sidebar --}}
{{-- Petty Cash --}}

Saldo Kas Kecil (Petty Cash)

Rp {{ number_format($this->pettyCash, 0, ',', '.') }}

Untuk operasional harian

{{-- Recent Transactions --}}

Riwayat Input

@forelse($this->recentTransactions as $trx)
{{ $trx->category }} @if($trx->proofFile) @endif
{{ $trx->transactionDate->diffForHumans() }}
{{ Str::limit($trx->description ?? '-', 20) }} {{ $trx->type === 'INCOME' ? '+' : '-' }} Rp {{ number_format($trx->amount, 0, ',', '.') }}
@empty

Belum ada riwayat

@endforelse
{{-- Modal Preview Bukti --}} @push('scripts') @endpush