{{ strtoupper($tenant->name ?? 'PT. SAMPLE BUSINESS INDONESIA') }}

Jurnal Keuangan

{{ \Carbon\Carbon::parse($record->date ?? now())->locale('id')->translatedFormat('F - Y') }}

Saldo Akhir: {{ number_format($record->total_balance ?? 125000000, 0, ',', '.') }}
{{-- @dd($transactions) --}} @if(count($transactions) > 0) {{-- --}} @foreach($transactions as $index => $transaction) {{-- --}} @endforeach
NO TGL URAIAN PostingAllocationDebet Credit
{{ $loop->iteration }} {{ $transaction['date'] }} {{ $transaction['description'] }} {{ $transaction['posting'] }}{{ $transaction['allocation'] }}{{ number_format($transaction['debet'], 0, ',', '.') }} {{ number_format($transaction['credit'], 0, ',', '.') }}
@else
TGL URAIAN Posting Allocation Debet Credit
- - - - - 0
@endif

{{ strtoupper($tenant->name ?? 'PT. SAMPLE BUSINESS INDONESIA') }}

Posting Keuangan

{{ \Carbon\Carbon::parse($record->date ?? now())->locale('id')->translatedFormat('F - Y') }}

@if(count($revenue_sections) > 0) @foreach($revenue_sections as $section_name => $section_data) {{-- Debug: {{ dd($section_data) }} --}}
{{ $section_name }}
Total: {{ number_format($section_data['total'], 0, ',', '.') }},00
@if(count($section_data['items']) > 0) @foreach($section_data['items'] as $item) @endforeach @else {{-- --}} @endif
TGL URAIAN JUMLAH
{{ date('d', strtotime($item['date'])) ?? '-' }} {{ $item['description'] ?? '-' }} {{ number_format($item['amount'] ?? 0, 0, ',', '.') }},00
-- -
{{-- @empty --}} @endforeach @else
Pendapatan Jasa
Total: -
TGL URAIAN JUMLAH
- - -
@endif

{{ strtoupper($tenant->name ?? 'PT. SAMPLE BUSINESS INDONESIA') }}

Laba Rugi

{{ \Carbon\Carbon::parse($record->date ?? now())->locale('id')->translatedFormat('F - Y') }}

Laba Rugi (Profit and Loss Statement)

Pendapatan
@if(isset($profit_loss) && count($profit_loss) > 0) @foreach($profit_loss['details']['revenue'] as $section_name => $section_data) @endforeach @else @endif
{{ $section_name }} {{ number_format($section_data['total'] ?? 0, 0, ',', '.') }}
- 0
{{ number_format($profit_loss['revenue'] ?? 155000000, 0, ',', '.') }}
Pengeluaran
@if(isset($profit_loss['details']['expense']) && count($profit_loss['details']['expense']) > 0) @foreach($profit_loss['details']['expense'] as $section_name => $section_data) @endforeach @else @endif
{{ $section_name }} {{ number_format($section_data['total'] ?? 0, 0, ',', '.') }}
Biaya Operasional Kantor 15.000.000
Biaya Gaji Karyawan 25.000.000
{{ number_format($profit_loss['expense'] ?? 40000000, 0, ',', '.') }}
Laba Rugi {{ number_format(($profit_loss['revenue'] ?? 155000000) - ($profit_loss['expense'] ?? 40000000), 0, ',', '.') }}

{{ strtoupper($tenant->name ?? 'PT. SAMPLE BUSINESS INDONESIA') }}

Arus Kas (Cash Flow)

{{ \Carbon\Carbon::parse($record->date ?? now())->locale('id')->translatedFormat('F - Y') }}

Arus Kas (Cash Flow)

KAS AWAL BULAN {{ number_format($cash_flow['beginning_cash'] ?? 100000000, 0, ',', '.') }}
PENDAPATAN
@if(isset($profit_loss['details']['revenue']) && count($profit_loss['details']['revenue']) > 0) @foreach($profit_loss['details']['revenue'] as $section_name => $section_data) @endforeach @else @endif
{{ $section_name }} {{ number_format($section_data['total'] ?? 0, 0, ',', '.') }}
- 0

Total Pemasukan {{ number_format($cash_flow['income'] ?? 155000000, 0, ',', '.') }}
PENGELUARAN
@if(isset($profit_loss['details']['expense']) && count($profit_loss['details']['expense']) > 0) @foreach($profit_loss['details']['expense'] as $section_name => $section_data) @endforeach @else @endif
{{ $section_name }} {{ number_format($section_data['total'] ?? 0, 0, ',', '.') }}
- 0

Total Pengeluaran {{ number_format($cash_flow['expense'] ?? 40000000, 0, ',', '.') }}
Kas Akhir Bulan {{ number_format($cash_flow['ending_cash'] ?? 215000000, 0, ',', '.') }}

{{ strtoupper($tenant->name ?? 'PT. SAMPLE BUSINESS INDONESIA') }}

Neraca (Balance Sheet)

{{ \Carbon\Carbon::parse($record->date ?? now())->locale('id')->translatedFormat('F - Y') }}

Neraca (Balance Sheet)

AKTIVA
@php $assets_total = 0; @endphp @foreach($balance_sheet['assets'] as $asset_name => $asset_value) @php $assets_total += $asset_value; @endphp @endforeach
{{ $asset_name }} {{ number_format($asset_value, 0, ',', '.') }}

Total Aktiva {{ number_format($assets_total, 0, ',', '.') }}
PASIVA
@php $liabilities_total = 0; @endphp @foreach($balance_sheet['liabilities'] as $liability_name => $liability_value) @php $liabilities_total += $liability_value; @endphp @endforeach
{{ $liability_name }} {{ number_format($liability_value, 0, ',', '.') }}

Total Pasiva {{ number_format($liabilities_total, 0, ',', '.') }}