@extends('layouts.main') @section('breadcrumbs') {{ Breadcrumbs::render(request()->route()->getName()) }} @endsection @section('content')
@if(isset($permohonan->id))
@if(isset($debitur->id) && !isset($permohonan->id)) Buat Permohonan @endif @if(request()->get('from') == 'permohonan') Back @elseif($permohonan->id) Back @else Back @endif
@else

{{ isset($permohonan->id) ? 'Edit' : 'Tambah' }} Permohonan

@endif
@csrf @if(isset($permohonan->id)) @method('PUT') @endif @php $formFields = [ 'tujuan_penilaian_id' => ['label' => 'Tujuan Penilaian', 'type' => 'select', 'options' => $tujuanPenilaian], 'jenis_fasilitas_kredit_id' => ['label' => 'Fasilitas Kredit', 'type' => 'select', 'options' => $fasilitasKredit], 'nilai_plafond_id' => ['label' => 'Nilai Plafond', 'type' => 'select', 'options' => $plafond], 'status_bayar' => ['label' => 'Status Bayar', 'type' => 'select', 'options' => [ 'sudah_bayar' => 'Sudah Bayar', 'belum_bayar' => 'Belum Bayar' ]], 'nilai_njop' => ['label' => 'Nilai NJOP', 'type' => 'text'], ]; @endphp @foreach($formFields as $field => $config)
@if($config['type'] === 'select') @else @endif @error($field) {{ $message }} @enderror
@endforeach @if(isset($permohonan) && $permohonan->status == 'revisi')
Catatan :
{{ $permohonan->keterangan }}
@endif
@endsection @push('scripts') @endpush