160 lines
6.5 KiB
PHP
160 lines
6.5 KiB
PHP
|
|
|
|
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
|
|
|
|
|
<div class="py-4 px-6">
|
|
<h1 class="text-md font-medium text-gray-900">Identitas Debitur</h1>
|
|
</div>
|
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
<label class="form-label max-w-56">Hubungan Calon Debitur</label>
|
|
<div class="flex flex-wrap items-baseline w-full">
|
|
<input type="text" name="bentuk_tanah" class="input"
|
|
placeholder="Masukkan Hubungan Calon Debitur">
|
|
|
|
@error('bentuk_tanah')
|
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
{{-- lokasi jaminan --}}
|
|
@include('lpj::surveyor.components.lokasi-jaminan')
|
|
|
|
</div>
|
|
|
|
|
|
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
|
<div class="py-4 px-6">
|
|
<h1 class="text-md font-medium text-gray-900">Data Data Jaminan</h1>
|
|
</div>
|
|
<div class="grid gap-5">
|
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
<label class="form-label max-w-56">Model</label>
|
|
<div class="flex flex-wrap items-baseline w-full">
|
|
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
|
name="hadapMataAngin">
|
|
<option value="">Select Model Kendaraan </option>
|
|
@if (isset($arahMataAngin))
|
|
@foreach ($arahMataAngin as $item)
|
|
<option value="{{ $item->name }}"
|
|
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
|
</option>
|
|
@endforeach
|
|
@endif
|
|
</select>
|
|
|
|
@error('hadapMataAngin')
|
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
@php
|
|
$inputDataJaminan = [];
|
|
|
|
$inputDataJaminan = [
|
|
['label' => 'Nomor Lambung', 'index' => 0],
|
|
['label' => 'Model Unit', 'index' => 1],
|
|
['label' => 'Tahun Pembuatan', 'index' => 2],
|
|
['label' => 'Merk', 'index' => 3],
|
|
['label' => 'Negara Pembuat', 'index' => 4],
|
|
['label' => 'Tahun Pembelian', 'index' => 5],
|
|
['label' => 'Nomor Faktur/Invoice', 'index' => 6],
|
|
['label' => 'Nomor Kontrak Pembelian', 'index' => 7],
|
|
['label' => 'Nama Pemilik', 'index' => 8],
|
|
['label' => 'Alamaat Pemilik', 'index' => 9],
|
|
['label' => 'Nomor Asuransi', 'index' => 10],
|
|
['label' => 'Nomor Rangka', 'index' => 11],
|
|
['label' => 'Nomor Mesin', 'index' => 12],
|
|
['label' => 'Hour Mesin', 'index' => 13],
|
|
['label' => 'Overhaul Mesin', 'index' => 14],
|
|
];
|
|
|
|
@endphp
|
|
|
|
@if (count($inputDataJaminan) > 0)
|
|
@foreach ($inputDataJaminan as $item)
|
|
<!-- Nomor Lambung -->
|
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
|
<div class="flex flex-wrap items-baseline w-full">
|
|
<input type="text" name="bentuk_tanah" class="input"
|
|
placeholder="Masukkan {{ $item['label'] }}">
|
|
|
|
@error('bentuk_tanah')
|
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
|
<div class="py-4 px-6">
|
|
<h1 class="text-md font-medium text-gray-900">Kondisi Objek Jaminan</h1>
|
|
</div>
|
|
<div class="grid gap-5">
|
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
<label class="form-label max-w-56">Model</label>
|
|
<div class="flex flex-wrap items-baseline w-full">
|
|
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
|
name="hadapMataAngin">
|
|
<option value="">Select Model Kendaraan </option>
|
|
@if (isset($arahMataAngin))
|
|
@foreach ($arahMataAngin as $item)
|
|
<option value="{{ $item->name }}"
|
|
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
|
</option>
|
|
@endforeach
|
|
@endif
|
|
</select>
|
|
|
|
@error('hadapMataAngin')
|
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
@php
|
|
$kondisiObjeck = [];
|
|
|
|
$kondisiObjeck = [
|
|
['label' => 'Mesin dan Panel Instrument', 'index' => 0],
|
|
['label' => 'Fungsi mesin dan panel instrument', 'index' => 1],
|
|
['label' => 'Interior (jok, dll)', 'index' => 2],
|
|
['label' => 'Rangka dan Karoseri', 'index' => 3],
|
|
['label' => 'Ban', 'index' => 4],
|
|
['label' => 'Velg', 'index' => 5],
|
|
['label' => 'Air Conditioner', 'index' => 6],
|
|
['label' => 'Aksesoris Tambahan lainnya', 'index' => 7],
|
|
['label' => 'LCD', 'index' => 8],
|
|
['label' => 'Perlengkapan Keamanan', 'index' => 9],
|
|
['label' => 'Asuransi', 'index' => 10],
|
|
];
|
|
|
|
@endphp
|
|
|
|
@if (count($kondisiObjeck) > 0)
|
|
@foreach ($kondisiObjeck as $item)
|
|
<!-- Nomor Lambung -->
|
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
|
<div class="flex flex-wrap items-baseline w-full">
|
|
<input type="text" name="bentuk_tanah" class="input"
|
|
placeholder="Masukkan {{ $item['label'] }}">
|
|
|
|
@error('bentuk_tanah')
|
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
</div>
|