@endif
@php
$da = $pengajuan->deskAnalysisPl;
$deb = $pengajuan->debitur;
$bh = $pengajuan->biayaHidup;
$pl = $pengajuan->pendapatanLainnya;
$k = $kalkulasi; // array dari RpcCalculatorService::calculate()
$readonly = $pengajuan->status !== \App\Core\Enums\PengajuanStatus::Draft;
@endphp
{{-- ═══════════════════════════════════════════════════════════════════
PANEL A — DATABASE PERORANGAN (read-only, auto-carry dari 3a–3c)
═══════════════════════════════════════════════════════════════════ --}}
Data di bawah otomatis diambil dari Seksi 3a–3c. Tidak dapat diedit dari halaman ini.
{{-- Identitas & Permohonan --}}
Identitas & Permohonan
{{ $pengajuan->jenis_layanan === 'tunda_tebang' ? 'Tunda Tebang' : 'Multi Usaha Kehutanan' }}
{{-- Pendapatan Usaha --}}
Pendapatan Usaha
@if($pengajuan->jenis_layanan === 'tunda_tebang')
@php $tts = $pengajuan->tallysheetTundaTebang; @endphp
@foreach($tts as $tt)
@endforeach
@else
@php
$muk = $pengajuan->tallysheetMuk;
$prod = $muk?->produksiBulanan ?? collect();
@endphp
@endif
{{-- Informasi Usaha dari MIS --}}
@if($pengajuan->business_type_name || $pengajuan->sales_per_cycle || $pengajuan->cost_per_cycle || $pengajuan->income_cycle_months || $pl?->other_income_total || $pl?->other_business_type)
Informasi Usaha (Referensi dari MIS)
@if($pengajuan->business_type_name)
@endif
@if($pengajuan->sales_per_cycle)
@endif
@if($pengajuan->cost_per_cycle)
@endif
@if($pengajuan->income_cycle_months)
@endif
@if($pl?->other_business_type)
@endif
@if($pl?->other_income_total)
@endif
@endif
{{-- Pendapatan Lain --}}
@if($pengajuan->pendapatanTanamanLain->isNotEmpty() || $pl)
Pendapatan Lainnya
@foreach($pengajuan->pendapatanTanamanLain as $ptl)
@endforeach
@if($pl?->pendapatan_usaha_lain_per_bulan)
@endif
@if($pl?->pendapatan_pasangan_per_bulan)
@endif
@endif
{{-- Biaya Hidup --}}
@if($bh)
Biaya Hidup Bulanan
@foreach([
'rumah_tangga' => 'Rumah Tangga',
'listrik_air' => 'Listrik & Air',
'transportasi' => 'Transportasi',
'pendidikan' => 'Pendidikan',
'pulsa_internet' => 'Pulsa / Internet',
'kontrakan' => 'Kontrakan',
'lain_lain' => 'Lain-lain',
] as $col => $label)
@if($bh->$col > 0)
@endif
@endforeach
@endif
{{-- ═══════════════════════════════════════════════════════════════════
PANEL B — KALKULASI OTOMATIS SISTEM
═══════════════════════════════════════════════════════════════════ --}}
{{-- ═══════════════════════════════════════════════════════════════════
PANEL C — 9 ITEM PENILAIAN MANUAL PL
═══════════════════════════════════════════════════════════════════ --}}