Files
lpj/resources/views/surveyor/components/kapal.blade.php
2024-11-20 17:04:15 +07:00

787 lines
30 KiB
PHP

<div class="card 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>
</div>
<div class="card 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">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">Nama Calon Debitur</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($permohonan->debiture->name))
<p class="text-2sm text-gray-700">{{ $permohonan->debiture->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">Nama Wakil Debitur</label>
<div class="flex flex-wrap items-baseline w-full">
<input type="text" name="nama_wakil" class="input"
placeholder="Masukkan Hubungan Calon Debitur">
<em id="error-nama_wakil" class="alert text-danger text-sm"></em>
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Hubungan Calon Debitur</label>
<div class="flex flex-wrap items-baseline w-full">
<input type="text" name="hub_calon_debitur" class="input"
placeholder="Masukkan Hubungan Calon Debitur">
<em id="error-hub_calon_debitur" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
{{-- lokasi jaminan --}}
@include('lpj::surveyor.components.lokasi-jaminan')
</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">Data Data Jaminan</h1>
</div>
<div class="grid gap-5">
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Jenis</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 Jenis</option>
@if (isset($jenisKapal))
@foreach ($jenisKapal 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"></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 Size</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"></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 Jenis</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"></em>
@enderror
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Klasifikasi</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 Jenis</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"></em>
@enderror
</div>
</div>
@php
$inputDataJaminan = [
[
'label' => 'Nama Kapal',
'name' => 'nama_kapal',
'index' => 0,
],
[
'label' => 'Pemilik Kapal',
'name' => 'pemilik_kapal',
'index' => 1,
],
[
'label' => 'Bendera',
'name' => 'bendera',
'index' => 2,
],
[
'label' => 'Nomor Tanda Selar',
'name' => 'nomor_selar',
'index' => 3,
],
[
'label' => 'Kapal',
'name' => 'kapal',
'index' => 4,
],
[
'label' => 'Galangan',
'name' => 'galangan_kapal',
'index' => 5,
],
[
'label' => 'Kapal/Shipyard',
'name' => 'kapal_shipyard',
'index' => 6,
],
[
'label' => 'Tahun Pembuatan',
'name' => 'tahun_pembuatan',
'index' => 7,
],
[
'label' => 'Tahun Lanuncing',
'name' => 'tahun_launcing',
'index' => 8,
],
[
'label' => 'DWT (ton)',
'name' => 'dwt',
'index' => 9,
],
[
'label' => 'LWT (ton)',
'name' => 'lwt',
'index' => 10,
],
[
'label' => 'Gross Tonnage (ton)',
'name' => 'gross_tonnage',
'index' => 11,
],
[
'label' => 'Net Tonnage (ton)',
'name' => 'net_tonnage',
'index' => 12,
],
[
'label' => 'Tenaga Mesin (HP)',
'name' => 'tenaga_mesin',
'index' => 13,
],
[
'label' => 'LOA',
'name' => 'loa',
'index' => 14,
],
[
'label' => 'LBP',
'name' => 'lbp',
'index' => 15,
],
[
'label' => 'Beam',
'name' => 'beam',
'index' => 16,
],
[
'label' => 'Depth',
'name' => 'depth',
'index' => 17,
],
[
'label' => 'Draft',
'name' => 'draft',
'index' => 18,
],
];
@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="{{ $item['name'] }}" class="input"
placeholder="Masukkan {{ $item['label'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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">Struktur Kapal</h1>
</div>
<div class="grid gap-5">
@php
$inputStrukturKapal = [
[
'label' => 'Lambung Kapal',
'name' => 'lambung_kapal',
'index' => 0,
],
[
'label' => 'Dek',
'name' => 'dek',
'index' => 1,
],
[
'label' => 'Struktur Rangka',
'name' => 'struktur_rangka',
'index' => 2,
],
[
'label' => 'Palka',
'name' => 'palka',
'index' => 3,
],
[
'label' => 'Pondasi Mesin',
'name' => 'pondasi_mesin',
'index' => 4,
],
[
'label' => 'Area Mesin',
'name' => 'area_mesin',
'index' => 5,
],
[
'label' => 'Cat dan Korosi',
'name' => 'cat_dan_korosi',
'index' => 6,
],
[
'label' => 'Sistem Pengelasan',
'name' => 'sistem_pengelasan',
'index' => 7,
],
];
@endphp
@if (count($inputStrukturKapal) > 0)
@foreach ($inputStrukturKapal 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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_struktur" id="" class="textarea"></textarea>
<em id="error_deskripsi_struktur" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
{{-- Peralatan Keselamatan --}}
<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">Peralatan Keselamatan</h1>
</div>
<div class="grid gap-5">
@php
$inputPeralatan = [
[
'label' => 'Sekoci/Lifeboat',
'name' => 'sekoci',
'index' => 0,
],
[
'label' => 'Jaket Pelampung',
'name' => 'jaket_pelampung',
'index' => 1,
],
[
'label' => 'Alat Pemadam',
'name' => 'alat_pemadaman',
'index' => 2,
],
[
'label' => 'Rambu Darurat',
'name' => 'rambu_darurat',
'index' => 3,
],
[
'label' => 'Sistem Alarm',
'name' => 'sistem_alarm',
'index' => 4,
],
[
'label' => 'Sistem Pencegah',
'name' => 'sistem_pencegah',
'index' => 5,
],
[
'label' => 'Kebakaran',
'name' => 'kebakaran',
'index' => 6,
],
[
'label' => 'Lampu Darurat',
'name' => 'lampu_darurat',
'index' => 7,
],
];
@endphp
@if (count($inputPeralatan) > 0)
@foreach ($inputPeralatan 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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_peralatan" id="" class="textarea"></textarea>
<em id="error_deskripsi_peralatan" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
{{-- Sistwm Navigasi dan Komunikasi --}}
<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">Sistem Navigasi dan Komunikasi</h1>
</div>
<div class="grid gap-5">
@php
$inputDataLoaksi = [
[
'label' => 'Gps',
'name' => 'gps',
'index' => 0,
],
[
'label' => 'Radar',
'name' => 'radar',
'index' => 1,
],
[
'label' => 'Radio Komunikasi',
'name' => 'radio_komunikasi',
'index' => 2,
],
[
'label' => 'Lampu Navigasi',
'name' => 'lampu_navigasi',
'index' => 3,
],
[
'label' => 'Sistem Kendali otomatis',
'name' => 'sistem_kendali_otomatis',
'index' => 4,
],
[
'label' => 'Kompas',
'name' => 'kompas',
'index' => 5,
],
];
@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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_navigasi" id="" class="textarea"></textarea>
<em id="error_deskripsi_navigasi" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
{{-- Sistwm Mesin dan Penggerak Kapal --}}
<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">Sistem Mesin dan Penggerak Kapal</h1>
</div>
<div class="grid gap-5">
@php
$inputSistemPengerak = [
[
'label' => 'Mesin Utama',
'name' => 'mesin_utama',
'index' => 0,
],
[
'label' => 'Mesin Bantu',
'name' => 'mesin_bantu',
'index' => 1,
],
[
'label' => 'Pompa Pendingin',
'name' => 'pompa_pendingin',
'index' => 2,
],
[
'label' => 'Sistem Pelumasan',
'name' => 'sistem_pelumasan',
'index' => 3,
],
[
'label' => 'Propeller',
'name' => 'propeller',
'index' => 4,
],
[
'label' => 'Sistem Kelistrikan',
'name' => 'sistem_kelistrikan',
'index' => 5,
],
];
@endphp
@if (count($inputSistemPengerak) > 0)
@foreach ($inputSistemPengerak 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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_mesin_penggerak" id="" class="textarea"></textarea>
<em id="error_deskripsi_mesin_penggerak" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
{{-- Sistwm kelistrikan dan Elektronik --}}
<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">Sistem Kelistrikan dan Elektronik</h1>
</div>
<div class="grid gap-5">
@php
$inputSistemKelistrikan = [];
$inputSistemKelistrikan = [
[
'label' => 'Lampu Navigasi',
'name' => 'lampu_navigasi',
'index' => 0,
],
[
'label' => 'Sistem Penerangan',
'name' => 'sistem_penerangan',
'index' => 1,
],
[
'label' => 'Sistem Panel Distribusi',
'name' => 'sistem_panel_distribusi',
'index' => 2,
],
[
'label' => 'Kabel dan Perangkat Pendukung',
'name' => 'kabel_perangkat',
'index' => 3,
],
];
@endphp
@if (count($inputSistemKelistrikan) > 0)
@foreach ($inputSistemKelistrikan 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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_kelistrikan" id="" class="textarea"></textarea>
<em id="error_deskripsi_kelistrikan" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
{{-- Linkungan dan Kebersihan Kapal --}}
<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">Linkungan dan Kebersihan Kapal</h1>
</div>
<div class="grid gap-5">
@php
$inputLinkungan = [
[
'label' => 'Kebersihan Dek Luar',
'name' => 'kebersihan_dek_luar',
'index' => 0,
],
[
'label' => 'Tangki Limbah',
'name' => 'tangki_limbah',
'index' => 1,
],
[
'label' => 'Sistem Pengelolaan Limbah',
'name' => 'sistem_pengelolaan_limbah',
'index' => 2,
],
[
'label' => 'Pengelolaan Air Ballast',
'name' => 'pengelolaan_air_ballast',
'index' => 3,
],
];
@endphp
@if (count($inputLinkungan) > 0)
@foreach ($inputLinkungan 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'] }}">
<em id="error_{{ $item['name'] }}" class="alert text-danger text-sm"></em>
</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_kebersihan" id="" class="textarea"></textarea>
<em id="error_deskripsi_kebersihan" class="alert text-danger text-sm"></em>
</div>
</div>
</div>
</div>
<div class="card bg-white rounded-lg overflow-hidden">
<div class="card-body">
<div class=" py-4 ">
<h1 class="text-md font-medium text-gray-900">Analisis Fakta</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">Faktor Positif</label>
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
<div class="fakta_positif flex items-center gap-2 mt-2 textarea-group w-full">
<textarea class="textarea mt-2" name="fakta_positif[]" rows="3">{{ old('fakta_positif.0', $forminspeksi['fakta_positif'][0] ?? '') }}</textarea>
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
<i class="ki-outline ki-trash"></i>
</button>
<em id="error-fakta_positif" class="alert text-danger text-sm"></em>
</div>
<button type="button" class="btn btn-primary btn-sm mt-5"
onclick="addClonableItem('fakta-positif-container', 'fakta_positif')">
<i class="ki-outline ki-plus"></i>
</button>
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Faktor Negatif</label>
<div id="fakta-negatif-container" class="flex flex-wrap items-baseline w-full">
<div class="fakta_negatif flex items-center gap-2 mt-2 textarea-group w-full">
<textarea class="textarea mt-2" name="fakta_negatif[]" rows="3">{{ old('fakta_negatif.0', $forminspeksi['fakta_negatif'][0] ?? '') }}</textarea>
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
<i class="ki-outline ki-trash"></i>
</button>
<em id="error-fakta_negatif" class="alert text-danger text-sm"></em>
</div>
<button type="button" class="btn btn-primary btn-sm mt-5"
onclick="addClonableItem('fakta-negatif-container', 'fakta_negatif')">
<i class="ki-outline ki-plus"></i>
</button>
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Catatan Yang Perlu Diperhatikan</label>
<div id="catatan-container" class="flex flex-wrap items-baseline w-full">
<div class="catatan flex items-center gap-2 mt-2 textarea-group w-full">
<textarea class="textarea mt-2" name="catatan[]" rows="3">{{ old('catatan.0', $forminspeksi['catatan'][0] ?? '') }}</textarea>
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
<i class="ki-outline ki-trash"></i>
</button>
<em id="error-catatan" class="alert text-danger text-sm"></em>
</div>
<button type="button"
onclick="addClonableItem('catatan-container', 'catatan')"
class="btn btn-primary btn-sm mt-5 ">
<i class="ki-outline ki-plus"></i>
</button>
</div>
</div>
</div>
</div>
</div>