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)
| {{ $loop->iteration }} |
{{ $transaction['date'] }} |
{{ $transaction['description'] }} |
{{ $transaction['posting'] }} |
{{-- {{ $transaction['allocation'] }} | --}}
{{ number_format($transaction['debet'], 0, ',', '.') }} |
{{ number_format($transaction['credit'], 0, ',', '.') }} |
@endforeach
@else
@endif
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)
| {{ date('d', strtotime($item['date'])) ?? '-' }} |
{{ $item['description'] ?? '-' }} |
{{ number_format($item['amount'] ?? 0, 0, ',', '.') }},00 |
@endforeach
@else
| - |
{{-- - |
- | --}}
@endif
{{-- @empty --}}
@endforeach
@else
Pendapatan Jasa
Total: -
@endif
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)
| {{ $section_name }} |
{{ number_format($section_data['total'] ?? 0, 0, ',', '.') }} |
@endforeach
@else
| - |
0 |
@endif
|
{{ 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)
| {{ $section_name }} |
{{ number_format($section_data['total'] ?? 0, 0, ',', '.') }} |
@endforeach
@else
| Biaya Operasional Kantor |
15.000.000 |
| Biaya Gaji Karyawan |
25.000.000 |
@endif
|
{{ number_format($profit_loss['expense'] ?? 40000000, 0, ',', '.') }} |
Laba Rugi
{{ number_format(($profit_loss['revenue'] ?? 155000000) - ($profit_loss['expense'] ?? 40000000), 0, ',', '.') }}
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)
| {{ $section_name }} |
{{ number_format($section_data['total'] ?? 0, 0, ',', '.') }} |
@endforeach
@else
| - |
0 |
@endif
|
| 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)
| {{ $section_name }} |
{{ number_format($section_data['total'] ?? 0, 0, ',', '.') }} |
@endforeach
@else
| - |
0 |
@endif
|
| Total Pengeluaran |
{{ number_format($cash_flow['expense'] ?? 40000000, 0, ',', '.') }} |
Kas Akhir Bulan
{{ number_format($cash_flow['ending_cash'] ?? 215000000, 0, ',', '.') }}
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
| {{ $asset_name }} |
{{ number_format($asset_value, 0, ',', '.') }} |
@endforeach
|
| 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
| {{ $liability_name }} |
{{ number_format($liability_value, 0, ',', '.') }} |
@endforeach
|
| Total Pasiva |
{{ number_format($liabilities_total, 0, ',', '.') }} |