update form surveyor
This commit is contained in:
@@ -35,6 +35,7 @@ use Modules\Lpj\Models\FotoJaminan;
|
|||||||
use Modules\Lpj\Models\Lingkungan;
|
use Modules\Lpj\Models\Lingkungan;
|
||||||
use Modules\Lpj\Models\LantaiUnit;
|
use Modules\Lpj\Models\LantaiUnit;
|
||||||
use Modules\Lpj\Models\Lantai;
|
use Modules\Lpj\Models\Lantai;
|
||||||
|
use Modules\Lpj\Models\Teams;
|
||||||
use Modules\Lpj\Models\ViewUnit;
|
use Modules\Lpj\Models\ViewUnit;
|
||||||
use Modules\Lpj\Models\ObjekJaminan;
|
use Modules\Lpj\Models\ObjekJaminan;
|
||||||
use Modules\Lpj\Models\RuteJaminan;
|
use Modules\Lpj\Models\RuteJaminan;
|
||||||
@@ -149,41 +150,45 @@ class SurveyorController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Store form inspeksi.
|
* Store form inspeksi.
|
||||||
*/
|
*/
|
||||||
public function store(FormSurveyorRequest $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$validatedData = $request->validated();
|
|
||||||
DB::beginTransaction();
|
|
||||||
try {
|
|
||||||
$analisa = Analisa::create($validatedData);
|
|
||||||
|
|
||||||
if ($analisa) {
|
dd($request);
|
||||||
$validatedData['analisa_id'] = $analisa->id;
|
|
||||||
|
|
||||||
switch ($validatedData['action']) {
|
|
||||||
case 'tanah_bangunan':
|
|
||||||
$this->handleTanahBangunan($validatedData, $request);
|
|
||||||
break;
|
|
||||||
case 'unit':
|
|
||||||
$this->handleUnit($validatedData);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw new \Exception('Invalid action type');
|
|
||||||
}
|
|
||||||
|
|
||||||
AnalisaLingkungan::create($validatedData);
|
// $validatedData = $request->validated();
|
||||||
$validatedData['foto_tempat'] = $this->uploadFile($request->file('foto_tempat'), 'foto_tempat');
|
// DB::beginTransaction();
|
||||||
AnalisaFakta::create($validatedData);
|
// try {
|
||||||
}
|
// $analisa = Analisa::create($validatedData);
|
||||||
|
|
||||||
DB::commit();
|
// if ($analisa) {
|
||||||
return redirect()->route('surveyor.show', [
|
// $validatedData['analisa_id'] = $analisa->id;
|
||||||
'id' => $validatedData['permohonan_id'],
|
|
||||||
'form' => 'inspeksi'
|
// switch ($validatedData['action']) {
|
||||||
])->with('success', 'Data form surveyor berhasil disimpan');
|
// case 'tanah_bangunan':
|
||||||
} catch (Exception $e) {
|
// $this->handleTanahBangunan($validatedData, $request);
|
||||||
DB::rollback();
|
// break;
|
||||||
return response()->json(['error' => 'Failed to save data', 'details' => $e->getMessage()], 500);
|
// case 'unit':
|
||||||
}
|
// $this->handleUnit($validatedData);
|
||||||
|
// break;
|
||||||
|
// default:
|
||||||
|
// throw new \Exception('Invalid action type');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// AnalisaLingkungan::create($validatedData);
|
||||||
|
// $validatedData['foto_tempat'] = $this->uploadFile($request->file('foto_tempat'), 'foto_tempat');
|
||||||
|
// AnalisaFakta::create($validatedData);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// DB::commit();
|
||||||
|
// return redirect()->route('surveyor.show', [
|
||||||
|
// 'id' => $validatedData['permohonan_id'],
|
||||||
|
// 'form' => 'inspeksi'
|
||||||
|
// ])->with('success', 'Data form surveyor berhasil disimpan');
|
||||||
|
// } catch (Exception $e) {
|
||||||
|
// DB::rollback();
|
||||||
|
// return response()->json(['error' => 'Failed to save data', 'details' => $e->getMessage()], 500);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
private function handleTanahBangunan(array $validatedData, FormSurveyorRequest $request)
|
private function handleTanahBangunan(array $validatedData, FormSurveyorRequest $request)
|
||||||
@@ -567,8 +572,14 @@ class SurveyorController extends Controller
|
|||||||
{
|
{
|
||||||
$permohonan = $this->getPermohonanJaminanId($id, $jaminanId);
|
$permohonan = $this->getPermohonanJaminanId($id, $jaminanId);
|
||||||
|
|
||||||
|
// Auth::user()->id
|
||||||
|
|
||||||
|
|
||||||
|
$link_url_region = Teams::with('regions', 'teamsUsers')
|
||||||
|
->whereHas('teamsUsers', function ($query) {
|
||||||
|
$query->where('user_id', Auth::user()->id);
|
||||||
|
})->first();
|
||||||
|
|
||||||
$branches = Branch::all();
|
$branches = Branch::all();
|
||||||
$provinces = Province::all();
|
$provinces = Province::all();
|
||||||
|
|
||||||
@@ -600,9 +611,6 @@ class SurveyorController extends Controller
|
|||||||
->where('jenis_jaminan_id', $jaminanId)
|
->where('jenis_jaminan_id', $jaminanId)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
// return response()->json($permohonan);
|
|
||||||
|
|
||||||
|
|
||||||
return view('lpj::surveyor.components.inspeksi', compact(
|
return view('lpj::surveyor.components.inspeksi', compact(
|
||||||
'analisa',
|
'analisa',
|
||||||
'permohonan',
|
'permohonan',
|
||||||
@@ -626,7 +634,8 @@ class SurveyorController extends Controller
|
|||||||
'golMasySekitar',
|
'golMasySekitar',
|
||||||
'tingkatKeramaian',
|
'tingkatKeramaian',
|
||||||
'laluLintasLokasi',
|
'laluLintasLokasi',
|
||||||
'perkerasanJalan'
|
'perkerasanJalan',
|
||||||
|
'link_url_region'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -197,6 +197,9 @@ class TeamsController extends Controller
|
|||||||
->leftJoin('users', 'teams_users.user_id', '=', 'users.id')
|
->leftJoin('users', 'teams_users.user_id', '=', 'users.id')
|
||||||
->addSelect('users.id as user_id', 'users.name as user_name');
|
->addSelect('users.id as user_id', 'users.name as user_name');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Filter pencarian
|
// Filter pencarian
|
||||||
if ($request->has('search') && !empty($request->get('search'))) {
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
$search = $request->get('search');
|
$search = $request->get('search');
|
||||||
|
|||||||
@@ -80,10 +80,22 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
$action = $this->input('action');
|
$action = $this->input('action');
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'tanah_bangunan':
|
case 'tanah':
|
||||||
return $this->getTanahBangunanRules();
|
return $this->getTanahBangunanRules();
|
||||||
case 'unit':
|
case 'unit':
|
||||||
return $this->getUnitRules();
|
return $this->getUnitRules();
|
||||||
|
case 'kapal':
|
||||||
|
return $this->getUnitRules();
|
||||||
|
case 'kendaraan':
|
||||||
|
return $this->getUnitRules();
|
||||||
|
case 'mesin':
|
||||||
|
return $this->getUnitRules();
|
||||||
|
case 'bangunan':
|
||||||
|
return $this->getTanahBangunanRules();
|
||||||
|
case 'tanah_bangunan':
|
||||||
|
return $this->getTanahBangunanRules();
|
||||||
|
case 'alat-berat':
|
||||||
|
return $this->getUnitRules();
|
||||||
default:
|
default:
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
@@ -130,4 +142,40 @@ class FormSurveyorRequest extends FormRequest
|
|||||||
'bentuk_unit' => 'required',
|
'bentuk_unit' => 'required',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private function getKapalRules():array{
|
||||||
|
return [
|
||||||
|
'action' => 'required',
|
||||||
|
'kondisi_kapal' => 'required',
|
||||||
|
'kondisi_kapal_lain' => 'required',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getKendaraanRules():array{
|
||||||
|
return [
|
||||||
|
'action' => 'required',
|
||||||
|
'kondisi_kendaraan' => 'required',
|
||||||
|
'kondisi_kendaraan_lain' => 'required',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getMesinRules():array{
|
||||||
|
return [
|
||||||
|
'action' => 'required',
|
||||||
|
'kondisi_mesin' => 'required',
|
||||||
|
'kondisi_mesin_lain' => 'required',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function getAlatBeratRules():array{
|
||||||
|
return [
|
||||||
|
'action' => 'required',
|
||||||
|
'kondisi_alat_berat' => 'required',
|
||||||
|
'kondisi_alat_berat_lain' => 'required',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ class PenilaianRequest extends FormRequest
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'jenis_penilaian_id' => 'required|max:255',
|
'jenis_penilaian_id' => 'required|max:255',
|
||||||
'teams_id' => 'required|max:255',
|
'teams_id' => 'required|max:255',
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ class RegionRequest extends FormRequest
|
|||||||
$rules = [
|
$rules = [
|
||||||
'name' => 'required|string|max:255',
|
'name' => 'required|string|max:255',
|
||||||
'status' => 'nullable|boolean',
|
'status' => 'nullable|boolean',
|
||||||
|
'url' => 'nullable|string|max:255',
|
||||||
|
'name_url' => 'nullable|string|max:255',
|
||||||
'authorized_at' => 'nullable|datetime',
|
'authorized_at' => 'nullable|datetime',
|
||||||
'authorized_status' => 'nullable|string|max:1',
|
'authorized_status' => 'nullable|string|max:1',
|
||||||
'authorized_by' => 'nullable|exists:users,id',
|
'authorized_by' => 'nullable|exists:users,id',
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class Regions extends Model
|
|||||||
protected $table = 'regions';
|
protected $table = 'regions';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'code', 'name', 'status', 'authorized_status', 'authorized_at', 'authorized_by'
|
'code', 'name', 'status', 'name_url','url','authorized_status', 'authorized_at', 'authorized_by'
|
||||||
];
|
];
|
||||||
|
|
||||||
public function teams(){
|
public function teams(){
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ return new class extends Migration
|
|||||||
$table->string('kontur_tanah');
|
$table->string('kontur_tanah');
|
||||||
$table->string('ketinggian_jalan');
|
$table->string('ketinggian_jalan');
|
||||||
$table->string('kontur_jalan');
|
$table->string('kontur_jalan');
|
||||||
$table->string('posis_kavling');
|
$table->string('posisi_kavling');
|
||||||
$table->enum('tusuk_sate', ['yes', 'no']);
|
$table->enum('tusuk_sate', ['yes', 'no']);
|
||||||
$table->enum('lockland', ['yes', 'no']);
|
$table->enum('lockland', ['yes', 'no']);
|
||||||
$table->string('kondisi_fisik_tanah');
|
$table->string('kondisi_fisik_tanah');
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ return new class () extends Migration {
|
|||||||
$table->id();
|
$table->id();
|
||||||
$table->unsignedBigInteger('penilaian_id');
|
$table->unsignedBigInteger('penilaian_id');
|
||||||
$table->unsignedBigInteger('team_id');
|
$table->unsignedBigInteger('team_id');
|
||||||
$table->unsignedBigInteger('user_id');
|
$table->unsignedBigInteger('user_id')->nullable();
|
||||||
$table->string('role');
|
$table->string('role');
|
||||||
$table->boolean('status')->default(true);
|
$table->boolean('status')->default(true);
|
||||||
$table->char('authorized_status', 1)->nullable();
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class () extends Migration {
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('regions', function (Blueprint $table) {
|
||||||
|
$table->string('url')->nullable()->after('name');
|
||||||
|
$table->string('name_url')->nullable()->after('url');
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('regions', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('url');
|
||||||
|
$table->dropColumn('name_url');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -567,6 +567,14 @@
|
|||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["administrator","surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Perkerasan jalan",
|
||||||
|
"path": "basicdata.perkerasan-jalan",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": ["administrator","surveyor"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,30 @@
|
|||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Name Url
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('name_url') border-danger bg-danger-light @enderror" type="text"
|
||||||
|
name="name_url" value="{{ $region->name_url ?? '' }}">
|
||||||
|
@error('name_url')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Url
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('url') border-danger bg-danger-light @enderror" type="text"
|
||||||
|
name="url" value="{{ $region->url ?? '' }}">
|
||||||
|
@error('url')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<button type="submit" class="btn btn-primary">
|
<button type="submit" class="btn btn-primary">
|
||||||
Save
|
Save
|
||||||
|
|||||||
@@ -40,6 +40,10 @@
|
|||||||
<span class="sort"> <span class="sort-label"> Region </span>
|
<span class="sort"> <span class="sort-label"> Region </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="name">
|
||||||
|
<span class="sort"> <span class="sort-label"> Name URL </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -121,6 +125,9 @@
|
|||||||
name: {
|
name: {
|
||||||
title: 'Region',
|
title: 'Region',
|
||||||
},
|
},
|
||||||
|
name_url:{
|
||||||
|
title: 'Name Url',
|
||||||
|
},
|
||||||
actions: {
|
actions: {
|
||||||
title: 'Status',
|
title: 'Status',
|
||||||
render: (item, data) => {
|
render: (item, data) => {
|
||||||
|
|||||||
@@ -18,42 +18,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="py-4 px-6">
|
{{-- lokasi jaminan --}}
|
||||||
<h1 class="text-md font-medium text-gray-900">Lokasi Jaminan</h1>
|
@include('lpj::surveyor.components.lokasi-jaminan')
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
|
||||||
@php
|
|
||||||
$inputDataLoaksi = [];
|
|
||||||
|
|
||||||
$inputDataLoaksi = [
|
|
||||||
['label' => 'Nama Jalan', 'index' => 0],
|
|
||||||
['label' => 'Perumahan/Gang', 'index' => 1],
|
|
||||||
['label' => 'Blok/Nomor', 'index' => 2],
|
|
||||||
['label' => 'Desa/Kelurahan', 'index' => 3],
|
|
||||||
['label' => 'Kecamatan', 'index' => 4],
|
|
||||||
['label' => 'Kota/Kotamadya', 'index' => 5],
|
|
||||||
['label' => 'Provinsi', 'index' => 6]
|
|
||||||
];
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@if (count($inputDataLoaksi) > 0)
|
|
||||||
@foreach ($inputDataLoaksi 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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
|
||||||
{{-- @if ($analisaType == 'tanah_bangunan') --}}
|
{{-- @if ($analisaType == 'tanah_bangunan') --}}
|
||||||
<div class=" bg-white rounded-lg shadow-md overflow-hidden">
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
<div class="y-4 px-6">
|
<div class="y-4 px-6">
|
||||||
<h1 class="text-md font-medium text-gray-900">Analisa Bangunan</h1>
|
<h1 class="text-md font-medium text-gray-900">Analisa Bangunan</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,21 +32,21 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Jenis Bangunan -->
|
<!-- Jenis Bangunan -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Jenis Bangunan</label>
|
<label class="form-label max-w-56">Jenis Bangunan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
<div class="flex flex-col items-start gap-4">
|
||||||
class="input tomselect w-full @error('jenis_bangunan') border-danger bg-danger-light @enderror"
|
|
||||||
name="jenis_bangunan">
|
|
||||||
<option value="">Select Jenis Bangunan</option>
|
|
||||||
@if (isset($jenisBangunan))
|
@if (isset($jenisBangunan))
|
||||||
@foreach ($jenisBangunan as $item)
|
@foreach ($jenisBangunan as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('jenis_bangunan', isset($analisa) && optional($analisa->analisaTanahBangunan)->jenis_bangunan) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<input class="checkbox" name="jenis_bangunan[]" type="checkbox" value="{{$item->name}}"/>
|
||||||
</option>
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
<input type="text" name="bentuk_tanah" class="input mt-2" id="bentukTanahInput"
|
||||||
|
placeholder="Masukkan Jenis Bangunan...">
|
||||||
|
</div>
|
||||||
|
|
||||||
@error('jenis_bangunan')
|
@error('jenis_bangunan')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -52,21 +55,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Kondisi Bangunan -->
|
<!-- Kondisi Bangunan -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Kondisi Bangunan</label>
|
<label class="form-label max-w-56">Kondisi Bangunan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('kondisi_bangunan') border-danger bg-danger-light @enderror"
|
<div class="flex flex-col items-start gap-4">
|
||||||
name="kondisi_bangunan">
|
|
||||||
<option value="">Select Kondisi Bangunan</option>
|
|
||||||
@if (isset($kondisiBangunan))
|
@if (isset($kondisiBangunan))
|
||||||
@foreach ($kondisiBangunan as $item)
|
@foreach ($kondisiBangunan as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('kondisi_bangunan', isset($analisa) && optional($analisa->analisaTanahBangunan)->kondisi_bangunan) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<input class="checkbox" name="kondisi_bangunan[]" type="checkbox" value="{{$item->name}}"/>
|
||||||
</option>
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
<input type="text" name="bentuk_tanah" class="input mt-2" id="bentukTanahInput"
|
||||||
|
placeholder="Masukkan Kondisi Bangunan...">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@error('kondisi_bangunan')
|
@error('kondisi_bangunan')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -75,21 +80,24 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Sifat Bangunan -->
|
<!-- Sifat Bangunan -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56"> Sifat Bangunan</label>
|
<label class="form-label max-w-56"> Sifat Bangunan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('sifat_bangunan') border-danger bg-danger-light @enderror"
|
|
||||||
name="sifat_bangunan">
|
<div class="flex flex-col items-start gap-4">
|
||||||
<option value="">Select Sifat Bangunan</option>
|
|
||||||
@if (isset($sifatBangunan))
|
@if (isset($sifatBangunan))
|
||||||
@foreach ($sifatBangunan as $item)
|
@foreach ($sifatBangunan as $item)
|
||||||
<option value="{{ $item->name }}"
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 ">
|
||||||
{{ old('sifat_bangunan', isset($analisa) && optional($analisa->analisaTanahBangunan)->sifat_bangunan) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<label class="form-label max-w-56 gap-2.5 " style="width: 500px">
|
||||||
</option>
|
<input class="checkbox" name="sifat_bangunan[]" type="checkbox" value="{{$item->name}}"/>
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
<input type="text" name="bentuk_tanah" class="input w-full" id="sifat_bangunan[]" placeholder="Masukkan {{$item->name}}...">
|
||||||
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</div>
|
||||||
|
|
||||||
@error('sifat_bangunan')
|
@error('sifat_bangunan')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -99,32 +107,29 @@
|
|||||||
|
|
||||||
<!-- Spek Bangunan -->
|
<!-- Spek Bangunan -->
|
||||||
<div class="gap-2.5">
|
<div class="gap-2.5">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Spek Bangunan</label>
|
<label class="form-label max-w-56">Spek Bangunan</label>
|
||||||
|
|
||||||
<div class="flex flex-wrap items-baseline w-full" id="spek-bangunan-container">
|
<div class="flex flex-wrap items-baseline w-full" id="spek-bangunan-container">
|
||||||
<div class="spek-bangunan w-full gap-4">
|
<div class="spek-bangunan w-full gap-4">
|
||||||
<input type="hidden" name="nama_bagunan[]" value="Bangunan">
|
<input type="hidden" name="nama_bagunan[]" value="Bangunan">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2 w-full">
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2 w-full">
|
||||||
@if (@isset($spekKategoriBagunan))
|
@if (@isset($spekKategoriBagunan))
|
||||||
@foreach ($spekKategoriBagunan as $item)
|
@foreach ($spekKategoriBagunan as $item)
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
class="form-label flex items-center gap-3 text-nowrap">{{ $item->name }}</label>
|
class="form-label flex items-center gap-3 text-nowrap">{{ $item->name }}</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
<div class="flex flex-col items-start gap-4" style="margin-top: 10px">
|
||||||
class="input tomselect w-full @error('name') border-danger bg-danger-light @enderror"
|
|
||||||
name="name[]">
|
|
||||||
<option value="">Select {{ $item->name }}</option>
|
|
||||||
@foreach ($spekBangunan as $spek)
|
@foreach ($spekBangunan as $spek)
|
||||||
@if ($spek->spek_kategori_bangunan_id == $item->id)
|
@if ($spek->spek_kategori_bangunan_id == $item->id)
|
||||||
<option value="{{ $spek->name }}"
|
<label class="form-label flex items-center gap-2.5">
|
||||||
{{ old('name') == $spek->name ? 'selected' : '' }}>
|
<input class="checkbox" name="spek_bangunan[]" type="checkbox" value="{{$spek->name}}"/>
|
||||||
{{ $spek->name }}
|
{{ $spek->name }}
|
||||||
</option>
|
</label>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</div>
|
||||||
|
|
||||||
@error('name')
|
@error('name')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -154,18 +159,21 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Sarana pelengkap</label>
|
<label class="form-label max-w-56">Sarana pelengkap</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('sarana_pelengkap') border-danger bg-danger-light @enderror"
|
|
||||||
name="sarana_pelengkap">
|
<div class="flex flex-col items-start gap-4">
|
||||||
<option value="">Select Posisi Kavling</option>
|
|
||||||
@if (isset($saranaPelengkap))
|
@if (isset($saranaPelengkap))
|
||||||
@foreach ($saranaPelengkap as $item)
|
@foreach ($saranaPelengkap as $item)
|
||||||
<option value="{{ $item->name }}"
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 ">
|
||||||
{{ old('sarana_pelengkap', isset($analisa) && optional($analisa->analisaTanahBangunan)->sarana_pelengkap) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<label class="form-label max-w-56 gap-2.5 " style="width: 500px">
|
||||||
</option>
|
<input class="checkbox" name="sarana_pelengkap[]" type="checkbox" value="{{$item->name}}"/>
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
<input type="text" name="bentuk_tanah" class="input w-full" id="bentukTanahInput" placeholder="Masukkan {{$item->name}}...">
|
||||||
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</div>
|
||||||
|
|
||||||
@error('sarana_pelengkap')
|
@error('sarana_pelengkap')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -174,6 +182,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{-- @endif --}}
|
{{-- @endif --}}
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
@endsection --}}
|
@endsection --}}
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
<div class="card min-w-full">
|
<div class="card min-w-full">
|
||||||
<div class="card min-w-full">
|
<div class="card min-w-full">
|
||||||
@@ -516,7 +515,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Modal Kamera -->
|
<!-- Modal Kamera -->
|
||||||
|
|
||||||
<div class="modal fade" data-modal="true" id="cameraModal" data-backdrop="" data-keyboard="false">
|
<div class="modal fade" data-modal="true" id="cameraModal" data-backdrop="" data-keyboard="false">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,8 @@
|
|||||||
|
|
||||||
<div class="accordion-item [&:not(:last-child)]:border-b border-b-gray-200"
|
<div class="accordion-item [&:not(:last-child)]:border-b border-b-gray-200"
|
||||||
data-accordion-item="true" id="accordion_1_item_1">
|
data-accordion-item="true" id="accordion_1_item_1">
|
||||||
<button class="accordion-toggle py-4 group mx-8" data-accordion-toggle="#accordion_detail_jaminan_{{ $loop->index }}">
|
<button class="accordion-toggle py-4 group mx-8"
|
||||||
|
data-accordion-toggle="#accordion_detail_jaminan_{{ $loop->index }}">
|
||||||
<span class="text-base text-gray-900 font-medium">
|
<span class="text-base text-gray-900 font-medium">
|
||||||
Jaminan {{ $loop->index + 1 }}
|
Jaminan {{ $loop->index + 1 }}
|
||||||
</span>
|
</span>
|
||||||
@@ -124,11 +125,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card">
|
{{-- <div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body"> --}}
|
||||||
<form id="debiturForm"
|
<form id="formInspeksi" {{-- action="{{ isset($analisa->id) ? route('debitur.update', $analisa->id) : route('surveyor.store') }}" --}} method="POST" enctype="multipart/form-data" class="grid gap-5">
|
||||||
action="{{ isset($analisa->id) ? route('debitur.update', $analisa->id) : route('surveyor.store') }}"
|
|
||||||
method="POST" enctype="multipart/form-data" class="grid gap-5">
|
|
||||||
@if (isset($analisa->id))
|
@if (isset($analisa->id))
|
||||||
<input type="hidden" name="id" value="{{ $analisa->id }}">
|
<input type="hidden" name="id" value="{{ $analisa->id }}">
|
||||||
@method('PUT')
|
@method('PUT')
|
||||||
@@ -186,284 +185,21 @@
|
|||||||
@include('lpj::surveyor.components.kapal')
|
@include('lpj::surveyor.components.kapal')
|
||||||
@elseif($analisaType == 'kendaraan')
|
@elseif($analisaType == 'kendaraan')
|
||||||
@include('lpj::surveyor.components.kendaraan')
|
@include('lpj::surveyor.components.kendaraan')
|
||||||
|
@elseif($analisaType == 'pesawat')
|
||||||
|
@include('lpj::surveyor.components.pesawat')
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($analisaType == 'tanah_bangunan')
|
@if ($analisaType == 'tanah_bangunan')
|
||||||
@include('lpj::surveyor.components.bangunan')
|
@include('lpj::surveyor.components.bangunan')
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($analisaType != 'mesin' && $analisaType != 'kapal')
|
@if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat')
|
||||||
<div class=" bg-white rounded-lg overflow-hidden">
|
@include('lpj::surveyor.components.lingkungan')
|
||||||
<div class=" text-white py-4 px-6">
|
|
||||||
<h1 class="text-md font-medium text-gray-900">Analisis Lingkungan</h1>
|
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
|
||||||
<!-- Jarak dari Objek Utama -->
|
|
||||||
<div class="bg-gray-50 rounded-lg">
|
|
||||||
<div class="grid grid-cols-3 gap-5">
|
|
||||||
<div>
|
|
||||||
<label class="block text-sm font-medium text-gray-700">Jarak Dari Jalan
|
|
||||||
Utama</label>
|
|
||||||
<input type="text" class="input mt-2" name="jarak_jalan_utama" placeholder="Km"
|
|
||||||
value="{{ old('jarak_jalan_utama', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_jalan_utama : '') }}">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="block text-sm font-medium text-gray-700">Jarak ke CBD Point</label>
|
|
||||||
<input type="text" class="input mt-2" name="jarak_cbd_point" placeholder="Km"
|
|
||||||
value="{{ old('jarak_cbd_point', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_cbd_point : '') }}">
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="block text-sm font-medium text-gray-700">Lebar Perkerasan Jalan Depan
|
|
||||||
objek</label>
|
|
||||||
<input type="text" name="lebar_perkerasan_jalan" class="input mt-2"
|
|
||||||
placeholder="Meter"
|
|
||||||
value="{{ old('lebar_perkerasan_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lebar_perkerasan_jalan : '') }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label class="block text-sm font-medium text-gray-700">Alamat</label>
|
|
||||||
<input type="text" name="alamat" class="input mt-2"
|
|
||||||
placeholder="Masukkan Nama Jalan"
|
|
||||||
value="{{ old('alamat', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->alamat : '') }}">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Perkerasan Jalan</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('perkerasan_jalan') border-danger bg-danger-light @enderror"
|
|
||||||
name="perkerasan_jalan">
|
|
||||||
<option value="">Select Perkerasan Jalan</option>
|
|
||||||
@if (isset($konturTanah))
|
|
||||||
@foreach ($konturTanah as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('perkerasan_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->perkerasan_jalan : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('perkerasan_jalan')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Lalulintas -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Lalulintas Depan Lokasi</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('lalu_lintas') border-danger bg-danger-light @enderror"
|
|
||||||
name="lalu_lintas">
|
|
||||||
<option value="">Select Lalulintas Depan Lokasi</option>
|
|
||||||
@if (isset($laluLintasLokasi))
|
|
||||||
@foreach ($laluLintasLokasi as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('lalu_lintas', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lalu_lintas : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('lalu_lintas')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Golongan Hidup Sekitar -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Golongan Hidup Sekitar</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('gol_mas_sekitar') border-danger bg-danger-light @enderror"
|
|
||||||
name="gol_mas_sekitar">
|
|
||||||
<option value="">Select Golongan Hidup Sekitar</option>
|
|
||||||
|
|
||||||
@if (isset($golMasySekitar))
|
|
||||||
@foreach ($golMasySekitar as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('gol_mas_sekitar', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->gol_mas_sekitar : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('gol_mas_sekitar')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Tingkat Keramaian -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Tingkat Keramaian</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('tingkat_keramaian') border-danger bg-danger-light @enderror"
|
|
||||||
name="tingkat_keramaian">
|
|
||||||
<option value="">Select Tingkat Keramaian</option>
|
|
||||||
@if (isset($tingkatKeramaian))
|
|
||||||
@foreach ($tingkatKeramaian as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('tingkat_keramaian', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->tingkat_keramaian : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('tingkat_keramaian')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Tataletak di Area -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Tataletak di Area</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('terletak_diarea') border-danger bg-danger-light @enderror"
|
|
||||||
name="terletak_diarea">
|
|
||||||
<option value="">Select Tataletak di Area</option>
|
|
||||||
@if (isset($konturTanah))
|
|
||||||
@foreach ($konturTanah as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('terletak_diarea', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->terletak_diarea : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('terletak_diarea')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Struktru tata letak -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Struktru tata letak</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="grid grid-cols-2 gap-4">
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="disekitar_lokasi" value="tidak"
|
|
||||||
{{ old('disekitar_lokasi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->disekitar_lokasi : '') == 'tidak' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Telah Ada Bangunan</span>
|
|
||||||
</label>
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="disekitar_lokasi" value="ya"
|
|
||||||
{{ old('disekitar_lokasi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->disekitar_lokasi : '') == 'ya' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Belum Ada Bangunan</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@error('disekitar_lokasi')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Dekat Makam -->
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Dekat Makamh</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="grid grid-cols-2 gap-4 mt-2">
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="dekat_makam" value="ya"
|
|
||||||
{{ old('dekat_makam', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_makam : '') == 'ya' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Ya</span>
|
|
||||||
</label>
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="dekat_makam" value="tidak"
|
|
||||||
{{ old('dekat_makam', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_makam : '') == 'tidak' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Tidak</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@error('dekatMakam')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Dekat Tps</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="grid grid-cols-2 gap-4 mt-2">
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="dekat_tps" value="ya"
|
|
||||||
{{ old('dekat_tps', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_tps : '') == 'ya' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Ya</span>
|
|
||||||
</label>
|
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
|
||||||
<input type="radio" class="radio" name="dekat_tps" value="tidak"
|
|
||||||
{{ old('dekat_tps', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_tps : '') == 'tidak' ? 'checked' : '' }}>
|
|
||||||
<span class="ml-2">Tidak</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@error('dekatTps')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Merupakan daerah</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('merupakan_daerah') border-danger bg-danger-light @enderror"
|
|
||||||
name="merupakan_daerah">
|
|
||||||
<option value="">Select Merupakan daerah</option>
|
|
||||||
@if (isset($konturTanah))
|
|
||||||
@foreach ($konturTanah as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('merupakan_daerah', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->merupakan_daerah : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('merupakan_daerah')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Fasilitas Umum Sekitar -->
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Fasilitas Umum dekat Object</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('fasilitas_dekat_object') border-danger bg-danger-light @enderror"
|
|
||||||
name="fasilitas_dekat_object">
|
|
||||||
<option value="">Select Fasilitas Umum Ddekat Object</option>
|
|
||||||
@if (isset($konturTanah))
|
|
||||||
@foreach ($konturTanah as $item)
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('fasilitas_dekat_object', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->fasilitas_dekat_object : '') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
|
|
||||||
@error('fasilitas_dekat_object')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class=" bg-white rounded-lg overflow-hidden">
|
{{-- analisa fakta --}}
|
||||||
|
<div class="card bg-white rounded-lg overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
<div class=" py-4 px-6">
|
<div class=" py-4 px-6">
|
||||||
<h1 class="text-md font-medium text-gray-900">Analisis Fakta</h1>
|
<h1 class="text-md font-medium text-gray-900">Analisis Fakta</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -472,10 +208,15 @@
|
|||||||
<label class="form-label max-w-56">Faktor Positif</label>
|
<label class="form-label max-w-56">Faktor Positif</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<textarea class="textarea mt-2" name="fakta_positif" rows="3">{{ old('fakta_positif', isset($analisa->analisaFakta) ? $analisa->analisaFakta->fakta_positif : '') }}</textarea>
|
<textarea class="textarea mt-2" name="fakta_positif" rows="3">{{ old('fakta_positif', isset($analisa->analisaFakta) ? $analisa->analisaFakta->fakta_positif : '') }}</textarea>
|
||||||
|
|
||||||
@error('fakta_positif')
|
@error('fakta_positif')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-primary btn-sm">
|
||||||
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
@@ -486,9 +227,12 @@
|
|||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-primary btn-sm">
|
||||||
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($analisaType != 'mesin' && $analisaType != 'kapal')
|
@if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat')
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Rute Menuju</label>
|
<label class="form-label max-w-56">Rute Menuju</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@@ -502,21 +246,24 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Batas batas</label>
|
<label class="form-label max-w-56">Batas batas</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="grid grid-cols-2 gap-4 items-center w-full">
|
<div class="grid grid-cols-1 gap-4 items-center w-full">
|
||||||
<div>
|
@php
|
||||||
<select class="select mt-2" name="batas_batas">
|
$inputBatas = [];
|
||||||
@if (isset($arahMataAngin))
|
$inputBatas = [
|
||||||
@foreach ($arahMataAngin as $item)
|
['label' => 'Utara', 'index' => 0],
|
||||||
<option value="{{ $item->id }}"
|
['label' => 'Timur', 'index' => 1],
|
||||||
{{ old('batas_batas', isset($analisa->analisaFakta) ? $analisa->analisaFakta->batas_batas : '') == $item->id ? 'selected' : '' }}>
|
['label' => 'Selatan', 'index' => 2],
|
||||||
{{ $item->name }}</option>
|
['label' => 'Barat', 'index' => 3],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if ($inputBatas > 0)
|
||||||
|
@foreach ($inputBatas as $item)
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">{{ $item['label'] }}</label>
|
||||||
|
<input type="text" name="batas_batas" class="input" />
|
||||||
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<input name="keteranganBatas" type="text" class="input mt-2">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@error('batas_batas')
|
@error('batas_batas')
|
||||||
@@ -530,10 +277,16 @@
|
|||||||
<label class="form-label max-w-56">Kondisi lain terkait lingkungan</label>
|
<label class="form-label max-w-56">Kondisi lain terkait lingkungan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<textarea class="textarea mt-2" name="kondisi_linkungan" rows="3">{{ old('kondisi_linkungan', isset($analisa->analisaFakta) ? $analisa->analisaFakta->kondisi_linkungan : '') }}</textarea>
|
<textarea class="textarea mt-2" name="kondisi_linkungan" rows="3">{{ old('kondisi_linkungan', isset($analisa->analisaFakta) ? $analisa->analisaFakta->kondisi_linkungan : '') }}</textarea>
|
||||||
|
|
||||||
|
|
||||||
@error('kondisi_linkungan')
|
@error('kondisi_linkungan')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-primary btn-sm mt-5 ">
|
||||||
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -545,6 +298,9 @@
|
|||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-primary btn-sm mt-5 ">
|
||||||
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
@@ -555,17 +311,22 @@
|
|||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-primary btn-sm mt-5 ">
|
||||||
|
<i class="ki-outline ki-plus"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Informasi Tata Ruang -->
|
<!-- Informasi Tata Ruang -->
|
||||||
@if ($analisaType != 'mesin' && $analisaType != 'kapal')
|
@if ($analisaType != 'mesin' && $analisaType != 'kapal' && $analisaType != 'kendaraan' && $analisaType != 'pesawat')
|
||||||
|
<div class="card w-full bg-white">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
<div class="">
|
|
||||||
<!-- Header -->
|
|
||||||
<div class="py-4 px-6">
|
<div class="py-4 px-6">
|
||||||
<h1 class="text-md font-medium text-gray-900">Informasi Dinas Tata Ruang</h1>
|
<h1 class="text-md font-medium text-gray-900">Informasi Dinas Tata Ruang</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -686,29 +447,44 @@
|
|||||||
<input class="name_rute" type="hidden" name="name_rute[]" value="rute">
|
<input class="name_rute" type="hidden" name="name_rute[]" value="rute">
|
||||||
<input id="inputRute" type="file" name="foto_rute"
|
<input id="inputRute" type="file" name="foto_rute"
|
||||||
class="file-input file-input-bordered w-full" accept="image/*">
|
class="file-input file-input-bordered w-full" accept="image/*">
|
||||||
<button id="gistaru" type="button" class="btn btn-light"
|
<a href="https://gistaru.atrbpn.go.id/rtronline" type="button" class="btn btn-light"
|
||||||
onclick="openModal('gistaru')">
|
target="_blank">
|
||||||
<i class="ki-outline ki-abstract-33"></i> Gistaru
|
<i class="ki-outline ki-abstract-33"></i> Gistaru
|
||||||
</button>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">
|
<label class="form-label max-w-56">
|
||||||
<span class="form-label">Bumi</span>
|
<span class="form-label">Bhumi</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group w-full flex gap-2">
|
<div class="input-group w-full flex gap-2">
|
||||||
<input class="name_rute" type="hidden" name="name_rute" value="rute">
|
<input class="name_rute" type="hidden" name="name_rute" value="rute">
|
||||||
<input id="inputRute" type="file" name="foto_rute"
|
<input id="inputRute" type="file" name="foto_rute"
|
||||||
class="file-input file-input-bordered w-full" accept="image/*" capture="camera">
|
class="file-input file-input-bordered w-full" accept="image/*" capture="camera">
|
||||||
<button id="bumi" type="button" class="btn btn-light"
|
<a href="https://bhumi.atrbpn.go.id/peta" type="button" class="btn btn-light"
|
||||||
onclick="openModal('bumi')">
|
target="_blank">
|
||||||
<i class="ki-outline ki-abstract-33"></i> Bumi
|
<i class="ki-outline ki-abstract-33"></i> Bhumi
|
||||||
</button>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if (isset($link_url_region->regions->url))
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
<span class="form-label">{{ $link_url_region->regions->name_url }}</span>
|
||||||
|
</label>
|
||||||
|
<div class="input-group w-full flex gap-2">
|
||||||
|
<input class="name_rute" type="hidden" name="name_rute" value="rute">
|
||||||
|
<input id="inputRute" type="file" name="foto_rute"
|
||||||
|
class="file-input file-input-bordered w-full" accept="image/*" capture="camera">
|
||||||
|
<a href="{{$link_url_region->regions->url}}" type="button" class="btn btn-light"
|
||||||
|
target="_blank">
|
||||||
|
<i class="ki-outline ki-abstract-33"></i> {{ $link_url_region->regions->name_url }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Peta Section -->
|
<!-- Peta Section -->
|
||||||
|
|
||||||
<div class="mt-2" style="margin-top: 20px">
|
<div class="mt-2" style="margin-top: 20px">
|
||||||
@@ -758,16 +534,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex justify-end gap-2" style="margin-right: 20px; margin-top: 20px">
|
<div class="flex justify-end gap-2" style="margin-right: 20px; margin-top: 20px">
|
||||||
<button type="submit" class="btn btn-success">
|
<button type="button" class="btn btn-success" onclick="submitData()">
|
||||||
Save
|
Save
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
{{-- </div>
|
||||||
</div>
|
</div> --}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -877,4 +654,32 @@
|
|||||||
}
|
}
|
||||||
window.onload = getUserLocation;
|
window.onload = getUserLocation;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function submitData() {
|
||||||
|
// Ambil form element
|
||||||
|
const formElement = document.getElementById('formInspeksi');
|
||||||
|
const formData = new FormData(formElement);
|
||||||
|
|
||||||
|
// for (let [key, value] of formData.entries()) {
|
||||||
|
// console.log(key, value);
|
||||||
|
// }
|
||||||
|
|
||||||
|
fetch('{{ route("surveyor.store") }}', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
},
|
||||||
|
body: formData
|
||||||
|
})
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => {
|
||||||
|
console.log("Response data:", data);
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
console.error("Error:", error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
@@ -8,52 +8,18 @@
|
|||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Hubungan Calon Debitur</label>
|
<label class="form-label max-w-56">Hubungan Calon Debitur</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<input type="text" name="bentuk_tanah" class="input"
|
<input type="text" name="hub_calon_debitur" class="input"
|
||||||
placeholder="Masukkan Hubungan Calon Debitur">
|
placeholder="Masukkan Hubungan Calon Debitur">
|
||||||
|
|
||||||
@error('bentuk_tanah')
|
@error('hub_calon_debitur')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="py-4 px-6">
|
{{-- lokasi jaminan --}}
|
||||||
<h1 class="text-md font-medium text-gray-900">Lokasi Jaminan</h1>
|
@include('lpj::surveyor.components.lokasi-jaminan')
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
|
||||||
|
|
||||||
@php
|
|
||||||
$inputDataLoaksi = [];
|
|
||||||
|
|
||||||
$inputDataLoaksi = [
|
|
||||||
['label' => 'Nama Jalan', 'index' => 0],
|
|
||||||
['label' => 'Perumahan/Gang', 'index' => 1],
|
|
||||||
['label' => 'Blok/Nomor', 'index' => 2],
|
|
||||||
['label' => 'Desa/Kelurahan', 'index' => 3],
|
|
||||||
['label' => 'Kecamatan', 'index' => 4],
|
|
||||||
['label' => 'Kota/Kotamadya', 'index' => 5],
|
|
||||||
['label' => 'Provinsi', 'index' => 6]
|
|
||||||
];
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@if (count($inputDataLoaksi) > 0)
|
|
||||||
@foreach ($inputDataLoaksi 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>
|
||||||
|
|
||||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
|||||||
@@ -44,42 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="py-4 px-6">
|
{{-- lokasi jaminan --}}
|
||||||
<h1 class="text-md font-medium text-gray-900">Lokasi Jaminan</h1>
|
@include('lpj::surveyor.components.lokasi-jaminan')
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
|
||||||
@php
|
|
||||||
$inputDataLoaksi = [];
|
|
||||||
|
|
||||||
$inputDataLoaksi = [
|
|
||||||
['label' => 'Nama Jalan', 'index' => 0],
|
|
||||||
['label' => 'Perumahan/Gang', 'index' => 1],
|
|
||||||
['label' => 'Blok/Nomor', 'index' => 2],
|
|
||||||
['label' => 'Desa/Kelurahan', 'index' => 3],
|
|
||||||
['label' => 'Kecamatan', 'index' => 4],
|
|
||||||
['label' => 'Kota/Kotamadya', 'index' => 5],
|
|
||||||
['label' => 'Provinsi', 'index' => 6],
|
|
||||||
];
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@if (count($inputDataLoaksi) > 0)
|
|
||||||
@foreach ($inputDataLoaksi 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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
363
resources/views/surveyor/components/lingkungan.blade.php
Normal file
363
resources/views/surveyor/components/lingkungan.blade.php
Normal file
@@ -0,0 +1,363 @@
|
|||||||
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
|
<div class=" text-white py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Analisis Lingkungan</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
<!-- Jarak dari Objek Utama -->
|
||||||
|
<div class="bg-gray-50 rounded-lg">
|
||||||
|
<div class="grid grid-cols-2 gap-5">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-gray-700">Jarak Dari Jalan
|
||||||
|
Utama</label>
|
||||||
|
<input type="text" class="input mt-2" name="jarak_jalan_utama" placeholder="Km"
|
||||||
|
value="{{ old('jarak_jalan_utama', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_jalan_utama : '') }}">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-gray-700">Jalan</label>
|
||||||
|
<input type="text" name="alamat" class="input mt-2" placeholder="Masukkan Nama Jalan"
|
||||||
|
value="{{ old('alamat', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->alamat : '') }}">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-gray-700">Jarak ke CBD Point</label>
|
||||||
|
<input type="text" class="input mt-2" name="jarak_cbd_point" placeholder="Km"
|
||||||
|
value="{{ old('jarak_cbd_point', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_cbd_point : '') }}">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-gray-700">Nama CBD Point</label>
|
||||||
|
<input type="text" class="input mt-2" name="nama_cbd_point" placeholder="Km"
|
||||||
|
value="{{ old('jarak_cbd_point', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->jarak_cbd_point : '') }}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="w-full mt-4">
|
||||||
|
<label class="block text-sm font-medium text-gray-700">Lebar Perkerasan Jalan Depan
|
||||||
|
objek</label>
|
||||||
|
<input type="text" name="lebar_perkerasan_jalan" class="input mt-2" placeholder="Meter"
|
||||||
|
value="{{ old('lebar_perkerasan_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lebar_perkerasan_jalan : '') }}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Perkerasan Jalan</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex gap-12">
|
||||||
|
@if (isset($perkerasanJalan))
|
||||||
|
@foreach ($perkerasanJalan as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="perkerasan_jalan" type="checkbox" value="1" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
@error('perkerasan_jalan')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Lalulintas -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Lalulintas Depan Lokasi</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($laluLintasLokasi))
|
||||||
|
@foreach ($laluLintasLokasi as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="lalu_lintas" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
@error('lalu_lintas')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Golongan Hidup Sekitar -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Golongan Masy Sekitar</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($golMasySekitar))
|
||||||
|
@foreach ($golMasySekitar as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="gol_mas_sekitar" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('gol_mas_sekitar')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Tingkat Keramaian -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Tingkat Keramaian</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($tingkatKeramaian))
|
||||||
|
@foreach ($tingkatKeramaian as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="tingkat_keramaian" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('tingkat_keramaian')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Terletak Di Area -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Terletak Di Area</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($konturTanah))
|
||||||
|
@foreach ($konturTanah as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="terletak_diarea" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('terletak_diarea')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Struktru tata letak -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Disekitar Lokasi</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex flex-col items-start gap-2">
|
||||||
|
<div class="flex w-full items-center gap-4">
|
||||||
|
<label class="text-sm flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggledisekitarLokasi(true)" type="radio" class="radio" name="disekitar_lokasi" value="tidak"
|
||||||
|
{{ old('disekitar_lokasi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->disekitar_lokasi : '') == 'tidak' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Telah Ada Bangunan</span>
|
||||||
|
</label>
|
||||||
|
<div id="disekitarLokasi" class="flex w-full gap-2" style="visibility: hidden; height: 0;">
|
||||||
|
<select
|
||||||
|
class="input w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||||
|
name="hadapMataAngin">
|
||||||
|
<option value="">Select kondisi bangunan</option>
|
||||||
|
@if (isset($kondisiBangunan))
|
||||||
|
@foreach ($kondisiBangunan as $item)
|
||||||
|
<option value="{{ $item->name }}"
|
||||||
|
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>
|
||||||
|
{{ $item->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- Select dropdown untuk "Sesuai" -->
|
||||||
|
<select
|
||||||
|
class="input w-full @error('sifat_bangunan_lokasi') border-danger bg-danger-light @enderror"
|
||||||
|
name="sifat_bangunan_lokasi">
|
||||||
|
<option value="">Select sifat bangunan</option>
|
||||||
|
@if (isset($sifatBangunan))
|
||||||
|
@foreach ($sifatBangunan as $item)
|
||||||
|
<option value="{{ $item->name }}"
|
||||||
|
{{ old('sifat_bangunan_lokasi') == $item->name ? 'selected' : '' }}>
|
||||||
|
{{ $item->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggledisekitarLokasi(false)" type="radio" class="radio" name="disekitar_lokasi" value="ya"
|
||||||
|
{{ old('disekitar_lokasi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->disekitar_lokasi : '') == 'ya' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Belum Ada Bangunan</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('disekitar_lokasi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Dekat Makam -->
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Dekat Makamh</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex flex-col gap-2 mt-2">
|
||||||
|
<div class="flex w-full items-center gap-4">
|
||||||
|
<label class="text-sm flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggledekatMakam(true)" type="radio" class="radio"
|
||||||
|
name="dekat_makam" value="ya"
|
||||||
|
{{ old('dekat_makam', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_makam : '') == 'ya' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Ya</span>
|
||||||
|
</label>
|
||||||
|
<div id="dekat-makam" class="grid grid-cols-2 gap-4"
|
||||||
|
style="visibility: hidden; height: 0;">
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<label for="">Jarak</label>
|
||||||
|
<input type="text" class="input mt-2" name="jarak_makam" placeholder="Km">
|
||||||
|
</div>
|
||||||
|
<input type="text" class="input mt-2" name="nama_tpu" placeholder="Nama TPU">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggledekatMakam(false)" type="radio" class="radio"
|
||||||
|
name="dekat_makam" value="tidak"
|
||||||
|
{{ old('dekat_makam', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_makam : '') == 'tidak' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Tidak</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('dekatMakam')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Dekat Tps</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex flex-col gap-2 mt-2">
|
||||||
|
<div class="flex w-full items-center gap-4">
|
||||||
|
<label onclick="toggledekatTps(true)"
|
||||||
|
class="text-sm flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input type="radio" class="radio" name="dekat_tps" value="ya"
|
||||||
|
{{ old('dekat_tps', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_tps : '') == 'ya' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Ya</span>
|
||||||
|
</label>
|
||||||
|
<div id="dekat-tps" class="grid grid-cols-2 gap-4"
|
||||||
|
style="visibility: hidden; height: 0;">
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<label for="">Jarak</label>
|
||||||
|
<input type="text" class="input mt-2" name="jarak_makam" placeholder="Km">
|
||||||
|
</div>
|
||||||
|
<input type="text" class="input mt-2" name="nama_tpu" placeholder="Nama TPS">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggledekatTps(false)" type="radio" class="radio" name="dekat_tps"
|
||||||
|
value="tidak"
|
||||||
|
{{ old('dekat_tps', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->dekat_tps : '') == 'tidak' ? 'checked' : '' }}>
|
||||||
|
<span class="ml-2">Tidak</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('dekatTps')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Merupakan daerah</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($konturTanah))
|
||||||
|
@foreach ($konturTanah as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="merupakan_daerah" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@error('merupakan_daerah')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Fasilitas Umum Sekitar -->
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Fasilitas Umum dekat Object</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
|
||||||
|
<div class="flex flex-col items-start gap-4">
|
||||||
|
@if (isset($konturTanah))
|
||||||
|
@foreach ($konturTanah as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="checkbox" name="fasilitas_dekat_object" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
@error('fasilitas_dekat_object')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script>
|
||||||
|
function toggledekatMakam(value) {
|
||||||
|
const selectElement = document.getElementById('dekat-makam');
|
||||||
|
if (value) {
|
||||||
|
selectElement.style.visibility = 'visible';
|
||||||
|
selectElement.style.height = 'auto';
|
||||||
|
} else {
|
||||||
|
selectElement.style.visibility = 'hidden';
|
||||||
|
selectElement.style.height = '0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggledekatTps(value) {
|
||||||
|
const selectElement = document.getElementById('dekat-tps');
|
||||||
|
if (value) {
|
||||||
|
selectElement.style.visibility = 'visible';
|
||||||
|
selectElement.style.height = 'auto';
|
||||||
|
} else {
|
||||||
|
selectElement.style.visibility = 'hidden';
|
||||||
|
selectElement.style.height = '0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggledisekitarLokasi(value) {
|
||||||
|
const selectElement = document.getElementById('disekitarLokasi');
|
||||||
|
if (value) {
|
||||||
|
selectElement.style.visibility = 'visible';
|
||||||
|
selectElement.style.height = 'auto';
|
||||||
|
} else {
|
||||||
|
selectElement.style.visibility = 'hidden';
|
||||||
|
selectElement.style.height = '0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
38
resources/views/surveyor/components/lokasi-jaminan.blade.php
Normal file
38
resources/views/surveyor/components/lokasi-jaminan.blade.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Lokasi Jaminan</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
|
||||||
|
|
||||||
|
@php
|
||||||
|
|
||||||
|
$inputDataLoaksi = [];
|
||||||
|
$inputDataLoaksi = [
|
||||||
|
['label' => 'Nama Jalan', 'index' => 0, 'name' => 'nama_jalan', 'value' => old('lokasi_jalan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_jalan : '')],
|
||||||
|
['label' => 'Perumahan/Gang', 'index' => 1, 'name' => 'perumahan_gang', 'value' => old('lokasi_perumahan_gang', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_perumahan_gang : '')],
|
||||||
|
['label' => 'Blok/Nomor', 'index' => 2, 'name' => 'blok_nomor', 'value' => old('lokasi_blok_nomor', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_blok_nomor : '')],
|
||||||
|
['label' => 'Desa/Kelurahan', 'index' => 3, 'name' => 'desa_kelurahan', 'value' => old('lokasi_desa_kelurahan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_desa_kelurahan : '')],
|
||||||
|
['label' => 'Kecamatan', 'index' => 4, 'name' => 'kecamatan' , 'value' => old('lokasi_kecamatan', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_kecamatan : '')],
|
||||||
|
['label' => 'Kota/Kotamadya', 'index' => 5, 'name' => 'kota_kotamadya', 'value' => old('lokasi_kota_kotamadya', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_kota_kotamadya : '')],
|
||||||
|
['label' => 'Provinsi', 'index' => 6, 'name' => 'provinsi', 'value' => old('lokasi_provinsi', isset($analisa->analisaLingkungan) ? $analisa->analisaLingkungan->lokasi_provinsi : '')],
|
||||||
|
];
|
||||||
|
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if (count($inputDataLoaksi) > 0)
|
||||||
|
@foreach ($inputDataLoaksi 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="{{ $item['name'] }}" class="input"
|
||||||
|
placeholder="Masukkan {{ $item['label'] }}" value="{{ $item['value'] }}">
|
||||||
|
|
||||||
|
@error($item['name'])
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
@@ -16,42 +16,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="py-4 px-6">
|
{{-- lokasi jaminan --}}
|
||||||
<h1 class="text-md font-medium text-gray-900">Lokasi Jaminan</h1>
|
@include('lpj::surveyor.components.lokasi-jaminan')
|
||||||
</div>
|
|
||||||
<div class="grid gap-5">
|
|
||||||
@php
|
|
||||||
$inputDataLoaksi = [];
|
|
||||||
|
|
||||||
$inputDataLoaksi = [
|
|
||||||
['label' => 'Nama Jalan', 'index' => 0],
|
|
||||||
['label' => 'Perumahan/Gang', 'index' => 1],
|
|
||||||
['label' => 'Blok/Nomor', 'index' => 2],
|
|
||||||
['label' => 'Desa/Kelurahan', 'index' => 3],
|
|
||||||
['label' => 'Kecamatan', 'index' => 4],
|
|
||||||
['label' => 'Kota/Kotamadya', 'index' => 5],
|
|
||||||
['label' => 'Provinsi', 'index' => 6]
|
|
||||||
];
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@if (count($inputDataLoaksi) > 0)
|
|
||||||
@foreach ($inputDataLoaksi 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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
580
resources/views/surveyor/components/pesawat.blade.php
Normal file
580
resources/views/surveyor/components/pesawat.blade.php
Normal file
@@ -0,0 +1,580 @@
|
|||||||
|
<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="grid gap-5">
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Hubungan Wakil 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>
|
||||||
|
|
||||||
|
</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 Umum</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">Jenis Pesawat</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>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Size</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>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Kondisi</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' => 'Nama Pesawat', 'index' => 0],
|
||||||
|
['label' => 'Model', 'index' => 1],
|
||||||
|
['label' => 'Nomor Registrasi', 'index' => 2],
|
||||||
|
['label' => 'Tahun Pembuatan', 'index' => 3],
|
||||||
|
['label' => 'Certificate of Airworthines (C of A)', 'index' => 4],
|
||||||
|
[
|
||||||
|
'label' => 'Certificate of Registration (C of A)',
|
||||||
|
'index' => 5,
|
||||||
|
],
|
||||||
|
|
||||||
|
[
|
||||||
|
'label' => 'Total Service Hours (TSN - Total Time Since New)',
|
||||||
|
'index' => 6,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'label' => 'Total Service Cycles (CSN - Cycle Since New)',
|
||||||
|
'index' => 7,
|
||||||
|
],
|
||||||
|
];
|
||||||
|
@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">Maintainence Data</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
|
||||||
|
@php
|
||||||
|
$inputMaintenece = [];
|
||||||
|
$inputMaintenece = [
|
||||||
|
['label' => 'Last A Check', 'index' => 0],
|
||||||
|
['label' => 'Next A Check', 'index' => 1],
|
||||||
|
['label' => 'Last B Check', 'index' => 2],
|
||||||
|
['label' => 'Next B Check', 'index' => 3],
|
||||||
|
['label' => 'Last C Check', 'index' => 4],
|
||||||
|
['label' => 'Next C Check', 'index' => 5],
|
||||||
|
['label' => 'Next D Check (Overhaul)', 'index' => 6],
|
||||||
|
['label' => 'Last D Check (Overhaul)', 'index' => 7],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if (count($inputMaintenece) > 0)
|
||||||
|
@foreach ($inputMaintenece 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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">Fungsi konfigurasi</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
|
||||||
|
@php
|
||||||
|
$inputFungsiKonfigurasi = [];
|
||||||
|
$inputFungsiKonfigurasi = [
|
||||||
|
['label' => 'Instrument Landing System (ILS)', 'index' => 0],
|
||||||
|
['label' => 'Traffic Collision Avoidance System (TCAS)', 'index' => 1],
|
||||||
|
['label' => 'Windshear', 'index' => 2],
|
||||||
|
['label' => 'Electronic Flight Instrument System (EFIS)', 'index' => 3],
|
||||||
|
['label' => 'Winglets ', 'index' => 4],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if (count($inputFungsiKonfigurasi) > 0)
|
||||||
|
@foreach ($inputFungsiKonfigurasi 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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 Kabin pesawat</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
|
||||||
|
@php
|
||||||
|
$inputMaintenece = [];
|
||||||
|
$inputMaintenece = [
|
||||||
|
['label' => 'Maksimal Penumpang', 'index' => 0],
|
||||||
|
['label' => 'Jumlah Kursi', 'index' => 1],
|
||||||
|
['label' => 'Kursi Pramugari/Pramugara', 'index' => 2],
|
||||||
|
['label' => 'Kartu Fitur keselamatan', 'index' => 3],
|
||||||
|
['label' => 'Sabuk Pengaman', 'index' => 4],
|
||||||
|
['label' => 'Lampu Kabin', 'index' => 5],
|
||||||
|
['label' => 'Lampu Pintu Keluar', 'index' => 6],
|
||||||
|
['label' => 'Intercom Kabin', 'index' => 7],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if (count($inputMaintenece) > 0)
|
||||||
|
@foreach ($inputMaintenece 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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 Struktur Pesawat</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Badan pesawat', 'index' => 0],
|
||||||
|
['label' => 'Sayap Pesawat', 'index' => 1],
|
||||||
|
['label' => 'Ekor peswat', 'index' => 2],
|
||||||
|
['label' => 'Landing Gear', 'index' => 3],
|
||||||
|
['label' => 'Sabuk Pengaman', 'index' => 4],
|
||||||
|
['label' => 'Sistem Pengelasan', 'index' => 5],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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">Fungsi Navigasi dan Komunikasi</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Gps', 'index' => 0],
|
||||||
|
['label' => 'Radar', 'index' => 1],
|
||||||
|
['label' => 'Radio Komunikasi', 'index' => 2],
|
||||||
|
['label' => 'Lampu Navigasi', 'index' => 3],
|
||||||
|
['label' => 'Sistem Autopilot', 'index' => 4],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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 Sistem Bahan Bakar dan Hidrolic</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Tangki Bahan Bakar', 'index' => 0],
|
||||||
|
['label' => 'Saluran & Pipa Bahan Bakar', 'index' => 1],
|
||||||
|
['label' => 'Pompa Bahan Bakar', 'index' => 2],
|
||||||
|
['label' => 'Sistem Hidrolik Utama', 'index' => 3],
|
||||||
|
['label' => 'Sistem Pendigin Hidrolik', 'index' => 4],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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 Mesin dan Propulis</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Mesin Utama', 'index' => 0],
|
||||||
|
['label' => 'Sistem Pendorong', 'index' => 1],
|
||||||
|
['label' => 'Sistem Pendigin Mesin', 'index' => 2],
|
||||||
|
['label' => 'Sistem pelumasan', 'index' => 3],
|
||||||
|
['label' => 'Filter dan Perangkat Pendukung', 'index' => 4],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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">Fungsi keselamatan dan darurat</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Jaket pelampung', 'index' => 0],
|
||||||
|
['label' => 'Pintu darurat', 'index' => 1],
|
||||||
|
['label' => 'Alat Pemadaman Kebakaran', 'index' => 2],
|
||||||
|
['label' => 'Sistem Alaram Darurat', 'index' => 3],
|
||||||
|
['label' => 'Sekoci', 'index' => 4],
|
||||||
|
['label' => 'Masker Oksigen', 'index' => 4],
|
||||||
|
['label' => 'Sabuk Pengaman', 'index' => 4],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</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">Interior dan Sistem Pendukung Kabin</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5">
|
||||||
|
@php
|
||||||
|
$inputStrukturPeswat = [];
|
||||||
|
$inputStrukturPeswat = [
|
||||||
|
['label' => 'Sistem ventilasi & AC', 'index' => 0],
|
||||||
|
['label' => 'Sistem Penerangan Kabin', 'index' => 1],
|
||||||
|
['label' => 'Panel Informasi Penumpang', 'index' => 2],
|
||||||
|
['label' => 'Sistem Hiburan Kabin', 'index' => 3],
|
||||||
|
];
|
||||||
|
@endphp
|
||||||
|
@if (count($inputStrukturPeswat) > 0)
|
||||||
|
@foreach ($inputStrukturPeswat 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 class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Deskripsi/Keterangan Lain Lain </label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea name="deskripsi" id="" class="textarea"></textarea>
|
||||||
|
@error('deskripsi')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -1,47 +1,312 @@
|
|||||||
<div class=""max-w-4xl mx-auto bg-white rounded-lg shadow-md overflow-hidden">
|
<div class=" card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Order Penilaian</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-5 grid-cols-2">
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Tujuan Penilaian</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if (isset($permohonan->tujuanPenilaian))
|
||||||
|
<p class="text-2sm text-gray-700">{{ $permohonan->tujuanPenilaian->name }}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Tanggal Survey</label>
|
||||||
|
<div class="flex flex-wrap items-base line w-full">
|
||||||
|
<p class="text-2sm text-gray-700">{{ $permohonan->created_at->format('d/m/Y') }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Cab/Direktorat</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if (isset($permohonan->branch))
|
||||||
|
<p class="text-2sm text-gray-700">{{ $permohonan->branch->name }}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">AO</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if (isset($permohonan->user))
|
||||||
|
<p class="text-2sm text-gray-700">{{ $permohonan->user->name }}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5" style="margin-top: 20px">
|
||||||
|
<label class="form-label max-w-56">Debitur/Perwakilan</label>
|
||||||
|
<div id="perwakilan" class="flex flex-wrap items-baseline w-full gap-5">
|
||||||
|
<div class="perwakilan flex flex-wrap w-full items-baseline gap-2 ">
|
||||||
|
<input type="text" class="input form-control" name="tujuan"
|
||||||
|
placeholder="Masukkan Debitur/Perwakilan" />
|
||||||
|
<button type="button" class="btn btn-danger btn-outline btn-xs delete-button"
|
||||||
|
style="display: none">Hapus</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button id="addPerwakilan" type="button" class="btn-md btn btn-primary">
|
||||||
|
<i class="ki-filled ki-plus"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Nama Cadeb/Debitur</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">Nama</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if (isset($permohonan->debiture))
|
||||||
|
<p class="text-2sm text-gray-700">{{ $permohonan->debiture->name }}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Deskripsi Aset 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">Jenis Aset</label>
|
||||||
|
<div>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if (isset($permohonan->debiture->documents))
|
||||||
|
@foreach ($permohonan->debiture->documents as $item)
|
||||||
|
<p class="text-2sm text-gray-700">{{ $item->jenisJaminan->name }}</p>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
||||||
|
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||||
|
<input onclick="toggleJenisAsset('jenis_asset')" type="radio" class="radio" name="jenis_asset" value="sesuai">
|
||||||
|
<span class="ml-2" >Ya</span>
|
||||||
|
</label>
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggleJenisAsset('jenis_asset')" type="radio" class="radio" name="jenis_asset" value="tidak sesuai">
|
||||||
|
<span class="ml-2">Tidak</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Select dropdown untuk "Tidak Sesuai" -->
|
||||||
|
<select id="jenis_asset" class="input w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||||
|
name="hadapMataAngin" style="display: none;">
|
||||||
|
<option value="">Select Jenis asset</option>
|
||||||
|
@if (isset($arahMataAngin))
|
||||||
|
@foreach ($arahMataAngin as $item)
|
||||||
|
<option value="{{ $item->name }}"
|
||||||
|
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>
|
||||||
|
{{ $item->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Alamat</label>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
@foreach ($permohonan->debiture->documents as $dokumen)
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $dokumen->pemilik->address ?? '' }},
|
||||||
|
<br> {{ $dokumen->pemilik->village->name ?? '' }},
|
||||||
|
{{ $dokumen->pemilik->district->name ?? '' }}, {{ $dokumen->pemilik->city->name ?? '' }},
|
||||||
|
{{ $dokumen->pemilik->province->name ?? '' }} -
|
||||||
|
{{ $dokumen->pemilik->village->postal_code ?? '' }}
|
||||||
|
</span>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
||||||
|
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||||
|
<input onclick="toggleAlamat('alamat')" type="radio" class="radio" name="alamat" value="sesuai">
|
||||||
|
<span class="ml-2">Ya</span>
|
||||||
|
</label>
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input onclick="toggleAlamat('alamat')" type="radio" class="radio" name="alamat" value="tidak sesuai">
|
||||||
|
<span class="ml-2">Tidak</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input type="text" name="alamat" id="alamat" class="input w-full"
|
||||||
|
placeholder="Masukan jenis asset Tanah" value="{{ old('alamat') }}"
|
||||||
|
style="display: none;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Titik Koordinat Google Maps</h1>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">Koordinat</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<div class="grid grid-cols-2 gap-4 items-center w-full">
|
||||||
|
<input class="input" type="text" name="lat" id="lat"
|
||||||
|
value="{{ old('lat', isset($analisa->analisaFakta) ? $analisa->analisaFakta->lat : '') }}"
|
||||||
|
@readonly(true)>
|
||||||
|
<input class="input" type="text" name="lng" id="lng"
|
||||||
|
value="{{ old('lng', isset($analisa->analisaFakta) ? $analisa->analisaFakta->lng : '') }}"
|
||||||
|
@readonly(true)>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class=" mx-auto bg-white rounded-lg shadow-md overflow-text">
|
||||||
|
<div class="py-4 px-6">
|
||||||
|
<h1 class="text-md font-medium text-gray-900">Status Kepemilikan</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class=" 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">Izin Bangunan</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class=" 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">SPPT PBB</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=" 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">Dokument Lainnya</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class=" 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">Hubungan cadeb/debitur dengan Pemilik Jaminan</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=" 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">Hubungan Cadeb/Debitur dengan Penghuni Jaminan</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card w-full bg-white rounded-lg shadow-md overflow-hidden">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
<div class="py-4 px-6">
|
<div class="py-4 px-6">
|
||||||
<h1 class="text-md font-medium text-gray-900">Analisa Tanah</h1>
|
<h1 class="text-md font-medium text-gray-900">Analisa Tanah</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-5">
|
<div class="grid gap-5">
|
||||||
|
|
||||||
<!-- Luas tanah -->
|
<!-- Luas tanah -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Luas Tanah</label>
|
<label class="form-label max-w-56">Luas Tanah</label>
|
||||||
|
<div class="mt-2">
|
||||||
|
@if (isset($permohonan->debiture->documents))
|
||||||
|
@foreach ($permohonan->debiture->documents as $item)
|
||||||
|
@php
|
||||||
|
$details = json_decode($item->detail);
|
||||||
|
$luas_tanah = isset($details['luas_tanah']) ? $details['luas_tanah'] : 'N/A';
|
||||||
|
@endphp
|
||||||
|
<p class="text-2sm text-gray-700">{{ $luas_tanah }} m2</p>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
||||||
<label class="form-label flex items-center gap-3 text-nowrap">
|
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||||
<input type="radio" class="radio" name="luas" value="sesuai"
|
<input type="radio" class="radio" name="luas" value="sesuai"
|
||||||
{{ old('luas') == 'sesuai' && $analisa->luas ? 'checked' : '' }}>
|
onclick="toggleTidakSesuai('luas')">
|
||||||
<span class="ml-2">Sesuai</span>
|
<span class="ml-2">Sesuai</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
<input type="radio" class="radio" name="luas" value="tidak sesuai"
|
<input type="radio" class="radio" name="luas" value="tidak sesuai"
|
||||||
{{ old('luas') == 'tidak sesuai' && $analisa->luas ? 'checked' : '' }}>
|
onclick="toggleTidakSesuai('luas')">
|
||||||
<span class="ml-2">Tidak Sesuai</span>
|
<span class="ml-2">Tidak Sesuai</span>
|
||||||
</label>
|
</label>
|
||||||
|
<input type="text" name="luas_tanah" id="luas_tanah" class="input w-full"
|
||||||
|
placeholder="Masukan Luas Tanah" value="{{ old('luas_tanah') }}"
|
||||||
|
style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@error('bentuk_tanah')
|
@error('bentuk_tanah')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Hadap Mata Angin</label>
|
<label class="form-label max-w-56">Hadap Mata Angin</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
<div class="grid grid-cols-3 md:grid-cols-3 gap-4 mt-2">
|
||||||
name="hadapMataAngin">
|
<label class="form-label flex items-center gap-3 text-nowrap">
|
||||||
|
<input type="radio" class="radio" name="hadap_mata_angin" value="sesuai"
|
||||||
|
onclick="toggleTidakSesuaiHadap(false)">
|
||||||
|
<span class="ml-2">Sesuai</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input type="radio" class="radio" name="hadap_mata_angin" value="tidak sesuai"
|
||||||
|
onclick="toggleTidakSesuaiHadap(true)">
|
||||||
|
<span class="ml-2">Tidak Sesuai</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<!-- Select dropdown untuk "Tidak Sesuai" -->
|
||||||
|
<select id="selectTidakSesuai" class="input w-full @error('hadapMataAngin') border-danger bg-danger-light @enderror"
|
||||||
|
name="hadapMataAngin" style="display: none;">
|
||||||
<option value="">Select Hadap Mata Angin</option>
|
<option value="">Select Hadap Mata Angin</option>
|
||||||
@if (isset($arahMataAngin))
|
@if (isset($arahMataAngin))
|
||||||
@foreach ($arahMataAngin as $item)
|
@foreach ($arahMataAngin as $item)
|
||||||
<option value="{{ $item->name }}"
|
<option value="{{ $item->name }}"
|
||||||
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
{{ old('hadapMataAngin') == $item->name ? 'selected' : '' }}>
|
||||||
|
{{ $item->name }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
@error('hadapMataAngin')
|
@error('hadapMataAngin')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -49,32 +314,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Bentuk Tanah -->
|
<!-- Bentuk Tanah -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Bentuk Tanah</label>
|
<label class="form-label max-w-56">Bentuk Tanah</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect w-full @error('bentuk_tanah') border-danger bg-danger-light @enderror"
|
<div class="flex flex-col items-start gap-4">
|
||||||
name="bentuk_tanah">
|
|
||||||
<option value="">Select Bentuk Tanah</option>
|
|
||||||
@if (isset($bentukTanah))
|
@if (isset($bentukTanah))
|
||||||
@foreach ($bentukTanah as $item)
|
@foreach ($bentukTanah as $item)
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
@if (isset($analisa) && isset($analisa->analisaTanahBangunan))
|
<input class="checkbox" name="bentuk_tanah[]" type="checkbox"
|
||||||
<option value="{{ $item->name }}"
|
value="{{ $item->name }}" />
|
||||||
{{ $analisa->analisaTanahBangunan->bentuk_tanah == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
</option>
|
</label>
|
||||||
@else
|
|
||||||
<option value="{{ $item->name }}"
|
|
||||||
{{ old('bentuk_tanah') == $item->name ? 'selected' : '' }}>
|
|
||||||
{{ $item->name }}
|
|
||||||
</option>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
<input type="text" name="bentuk_tanah" class="input w-full mt-2" id="bentukTanahInput"
|
||||||
|
placeholder="Masukkan bentuk tanah...">
|
||||||
|
</div>
|
||||||
@error('bentuk_tanah')
|
@error('bentuk_tanah')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
@@ -82,23 +339,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">Kontur Tanah</label>
|
<label class="form-label max-w-56">Kontur Tanah</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect w-full @error('kontur_tanah') border-danger bg-danger-light @enderror"
|
|
||||||
name="kontur_tanah">
|
<div class="flex flex-col items-start gap-4">
|
||||||
<option value="">Select Kontur Tanah</option>
|
|
||||||
@if (isset($konturTanah))
|
@if (isset($konturTanah))
|
||||||
@foreach ($konturTanah as $item)
|
@foreach ($konturTanah as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('kontur_tanah', isset($analisa) && optional($analisa->analisaTanahBangunan)->kontur_tanah) == $item->name ? 'selected' : '' }}>
|
<input class="checkbox" name="kontur_tanah[]" type="checkbox"
|
||||||
|
value="{{ $item->name }}" />
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
</option>
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</div>
|
||||||
|
|
||||||
@error('kontur_tanah')
|
@error('kontur_tanah')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
@@ -107,22 +362,22 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Beda Ketinggian Dengan Jalan -->
|
<!-- Beda Ketinggian Dengan Jalan -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Beda Ketinggian Dengan Jalan</label>
|
<label class="form-label max-w-56">Beda Ketinggian Dengan Jalan</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('ketinggian_jalan') border-danger bg-danger-light @enderror"
|
|
||||||
name="ketinggian_jalan">
|
<div class="flex flex-col items-start gap-4">
|
||||||
<option value="">Select Ketinggian Dengan Jalan</option>
|
|
||||||
@if (isset($ketinggianTanah))
|
@if (isset($ketinggianTanah))
|
||||||
@foreach ($ketinggianTanah as $item)
|
@foreach ($ketinggianTanah as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('ketinggian_jalan', isset($analisa) && optional($analisa->analisaTanahBangunan)->ketinggian_jalan) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<input class="checkbox" name="ketinggian_jalan[]" type="checkbox"
|
||||||
</option>
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
</div>
|
||||||
|
|
||||||
@error('ketinggian_jalan')
|
@error('ketinggian_jalan')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
@@ -131,10 +386,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Kontur Jalan Depan Objek -->
|
<!-- Kontur Jalan Depan Objek -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Kontur Jalan Depan Objek</label>
|
<label class="form-label max-w-56">Kontur Jalan Depan Objek</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex-wrap items-stretch">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-4">
|
||||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
<input type="radio" class="radio" name="kontur_jalan" value="menurun"
|
<input type="radio" class="radio" name="kontur_jalan" value="menurun"
|
||||||
{{ old('kontur_jalan', isset($analisa) && optional($analisa->analisaTanahBangunan)->kontur_jalan) == 'menurun' ? 'checked' : '' }}>
|
{{ old('kontur_jalan', isset($analisa) && optional($analisa->analisaTanahBangunan)->kontur_jalan) == 'menurun' ? 'checked' : '' }}>
|
||||||
@@ -154,20 +409,22 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Posisi Kavling</label>
|
<label class="form-label max-w-56">Posisi Kavling</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect w-full @error('posisi_kavling') border-danger bg-danger-light @enderror"
|
<div class="flex flex-col items-start gap-4">
|
||||||
name="posisi_kavling">
|
|
||||||
<option value="">Select Posisi Kavling</option>
|
|
||||||
@if (isset($posisiKavling))
|
@if (isset($posisiKavling))
|
||||||
@foreach ($posisiKavling as $item)
|
@foreach ($posisiKavling as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('posisi_kavling', isset($analisa) && optional($analisa->analisaTanahBangunan)->posisi_kavling) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<input class="checkbox" name="posisi_kavling[]" type="checkbox"
|
||||||
</option>
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
<input type="text" name="bentuk_tanah" class="input mt-2" id="bentukTanahInput"
|
||||||
|
placeholder="Masukkan Posisi Kavling">
|
||||||
|
</div>
|
||||||
@error('posisi_kavling')
|
@error('posisi_kavling')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
@@ -176,7 +433,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Tusuk Sate -->
|
<!-- Tusuk Sate -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Tusuk Sate</label>
|
<label class="form-label max-w-56">Tusuk Sate</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
||||||
@@ -199,7 +456,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Lockland -->
|
<!-- Lockland -->
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Locklande</label>
|
<label class="form-label max-w-56">Locklande</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
<div class="grid grid-cols-2 md:grid-cols-3 gap-4 mt-2">
|
||||||
@@ -222,21 +479,23 @@
|
|||||||
|
|
||||||
<!-- Kondisi Fisik Tanah -->
|
<!-- Kondisi Fisik Tanah -->
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-stretch flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Kondisi Fisik Tanah</label>
|
<label class="form-label max-w-56">Kondisi Fisik Tanah</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select
|
|
||||||
class="input tomselect w-full @error('kondisi_fisik_tanah') border-danger bg-danger-light @enderror"
|
<div class="flex flex-col items-start gap-4">
|
||||||
name="kondisi_fisik_tanah">
|
|
||||||
<option value="">Select Posisi Kavling</option>
|
|
||||||
@if (isset($kondisiFisikTanah))
|
@if (isset($kondisiFisikTanah))
|
||||||
@foreach ($kondisiFisikTanah as $item)
|
@foreach ($kondisiFisikTanah as $item)
|
||||||
<option value="{{ $item->name }}"
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
{{ old('kondisi_fisik_tanah', isset($analisa) && optional($analisa->analisaTanahBangunan)->kondisi_fisik_tanah) == $item->name ? 'selected' : '' }}>{{ $item->name }}
|
<input class="checkbox" name="kondisi_fisik_tanah[]" type="checkbox"
|
||||||
</option>
|
value="{{ $item->name }}" />
|
||||||
|
{{ $item->name }}
|
||||||
|
</label>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</select>
|
<input type="text" name="bentuk_tanah" class="input mt-2" id="bentukTanahInput"
|
||||||
|
placeholder="Masukkan Kondisi Fisik Tanah...">
|
||||||
|
</div>
|
||||||
|
|
||||||
@error('kondisi_fisik_tanah')
|
@error('kondisi_fisik_tanah')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@@ -245,4 +504,85 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script>
|
||||||
|
function handleSelectionChange() {
|
||||||
|
const select = document.getElementById('bentukTanahSelect');
|
||||||
|
const input = document.getElementById('bentukTanahInput');
|
||||||
|
|
||||||
|
if (select.value === 'lainnya') {
|
||||||
|
input.style.display = 'block';
|
||||||
|
input.value = ''; // Kosongkan input
|
||||||
|
input.focus(); // Fokus pada input
|
||||||
|
} else {
|
||||||
|
input.style.display = 'none';
|
||||||
|
input.value = select.value; // Isi input dengan nilai yang dipilih
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function toggleTidakSesuai(params) {
|
||||||
|
const inputData = document.querySelector(`input[name="${params}"]:checked`);
|
||||||
|
const luasTanah = document.getElementById('luas_tanah');
|
||||||
|
|
||||||
|
if (inputData && inputData.value === 'tidak sesuai') {
|
||||||
|
luasTanah.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
luasTanah.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function toggleJenisAsset(params) {
|
||||||
|
const inputData = document.querySelector(`input[name="${params}"]:checked`);
|
||||||
|
const luasTanah = document.getElementById('jenis_asset');
|
||||||
|
|
||||||
|
if (inputData && inputData.value === 'tidak sesuai') {
|
||||||
|
luasTanah.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
luasTanah.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function toggleAlamat(params) {
|
||||||
|
const inputData = document.querySelector(`input[name="${params}"]:checked`);
|
||||||
|
const luasTanah = document.getElementById('alamat');
|
||||||
|
|
||||||
|
if (inputData && inputData.value === 'tidak sesuai') {
|
||||||
|
luasTanah.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
luasTanah.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function toggleTidakSesuaiHadap(showSelect) {
|
||||||
|
const selectElement = document.getElementById('selectTidakSesuai');
|
||||||
|
selectElement.style.display = showSelect ? 'block' : 'none';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const perwakilanContainer = document.getElementById('perwakilan');
|
||||||
|
const addPerwakilanButton = document.getElementById('addPerwakilan');
|
||||||
|
|
||||||
|
// Tambahkan event listener untuk tombol "Tambah"
|
||||||
|
addPerwakilanButton.addEventListener('click', function() {
|
||||||
|
// Clone elemen ".perwakilan"
|
||||||
|
const newDiv = perwakilanContainer.querySelector('.perwakilan').cloneNode(true);
|
||||||
|
|
||||||
|
newDiv.querySelector('input').value = '';
|
||||||
|
const deleteButton = newDiv.querySelector('.delete-button');
|
||||||
|
deleteButton.style.display = 'inline-block';
|
||||||
|
|
||||||
|
deleteButton.addEventListener('click', function() {
|
||||||
|
newDiv.remove();
|
||||||
|
});
|
||||||
|
|
||||||
|
perwakilanContainer.appendChild(newDiv);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|||||||
@@ -547,6 +547,7 @@ $basicDataRoutes = [
|
|||||||
'lantai-unit' => 'Lantai Unit',
|
'lantai-unit' => 'Lantai Unit',
|
||||||
'view-unit' => 'View Unit',
|
'view-unit' => 'View Unit',
|
||||||
'bentuk-unit' => 'Bentuk unit',
|
'bentuk-unit' => 'Bentuk unit',
|
||||||
|
'perkerasan-jalan' => 'Perkerasan jalan'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
'lantai-unit' => 'Lantai Unit',
|
'lantai-unit' => 'Lantai Unit',
|
||||||
'view-unit' => 'View Unit',
|
'view-unit' => 'View Unit',
|
||||||
'bentuk-unit' => 'Bentuk unit',
|
'bentuk-unit' => 'Bentuk unit',
|
||||||
|
'perkerasan-jalan' => 'Perkerasan jalan',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($headers as $type => $header) {
|
foreach ($headers as $type => $header) {
|
||||||
|
|||||||
Reference in New Issue
Block a user