@extends('layouts.vertical', ['subtitle' => $subtitle]) @section('css') @endsection @section('content') @include('layouts.partials/page-title', ['title' => $title, 'subtitle' => $subtitle])
@if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
@endif
@csrf @if(isset($modelInstance)) @method('PUT') @endif
@foreach($fields as $field => $label) @if($field == 'is_terbit')
is_terbit ? 'checked' : '') }}>
@elseif($field == 'calculated_retribution' && isset($modelInstance))
{{ $modelInstance->formatted_retribution ?? '0' }}
Rumus: LUAS LAHAN × BCR (decimal) × HARGA SATUAN
Detail: {{ $modelInstance->land_area ?? 0 }} m² × {{ ($modelInstance->site_bcr ?? 0) / 100 }} × {{ $modelInstance->is_business_type ? 'Rp 44.300 (USAHA)' : 'Rp 16.000 (NON USAHA)' }}
@elseif($field == 'business_type_info' && isset($modelInstance))
{{ $modelInstance->is_business_type ? 'USAHA' : 'NON USAHA' }}
Terdeteksi otomatis dari fungsi bangunan: "{{ $modelInstance->building_function ?? $modelInstance->activities ?? 'N/A' }}"
@else
@php $fieldType = $fieldTypes[$field] ?? 'text'; // Default text jika tidak ditemukan tipe @endphp @if($fieldType == 'textarea') @elseif($fieldType == 'select' && isset($dropdownOptions[$field])) @elseif($fieldType == 'combobox' && isset($dropdownOptions[$field])) @elseif($fieldType == 'date') @else @endif
@endif @endforeach
@endsection @section('scripts') @vite(['resources/js/data/spatialPlannings/form-create-update.js']) @endsection