Revert "Memperbaiki KJPP Basic data dari create, edit, dan show yang bug"

This reverts commit 967be7019d.
This commit is contained in:
2024-12-13 08:56:24 +07:00
committed by putrakuningan
parent 909460018b
commit b5c8b6aad3
6 changed files with 575 additions and 455 deletions

View File

@@ -95,16 +95,13 @@
Email Kantor
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($emailKantor) && count($emailKantor) > 0)
@foreach ($emailKantor as $email)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->email_kantor }}</p>
@if (isset($kjpp->detail_email_kantor))
@foreach (json_decode($kjpp->detail_email_kantor) as $detail_email_kantor)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $email }}
{{ $detail_email_kantor->email_kantor }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
</div>
@@ -113,32 +110,26 @@
Nama Pimpinan
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($namaPimpinan) && count($namaPimpinan) > 0)
@foreach ($namaPimpinan as $pimpinan)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nama_pimpinan }}</p>
@if (isset($kjpp->detail_nama_pimpinan))
@foreach (json_decode($detailJoinPimpinan) as $detail_nama_pimpinan)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $pimpinan }}
{{ $detail_nama_pimpinan->nama_pimpinan }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
<label class="form-label max-w-56">
Nomor HP Pimpinan
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($nomorHpPimpinan) && count($nomorHpPimpinan) > 0)
@foreach ($nomorHpPimpinan as $hp_pimpinan)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nomor_hp_pimpinan }}</p>
@if (isset($kjpp->detail_nomor_hp_pimpinan))
@foreach (json_decode($detailJoinPimpinan) as $detail_nomor_hp_pimpinan)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $hp_pimpinan }}
{{ $detail_nomor_hp_pimpinan->nomor_hp_pimpinan }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
</div>
@@ -147,32 +138,27 @@
Nama PIC Reviewer
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($namaPicReviewer) && count($namaPicReviewer) > 0)
@foreach ($namaPicReviewer as $pic_reviewer)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nama_pic_reviewer ?? '-' }}</p>
@if (isset($kjpp->detail_nama_pic_reviewer))
@foreach (json_decode($detailJoinPicReviewer) as $detail_nama_pic_reviewer)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $pic_reviewer }}
{{ $detail_nama_pic_reviewer->nama_pic_reviewer }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
<label class="form-label max-w-56">
Nomor HP PIC Reviewer
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($nomorHpPicReviewer) && count($nomorHpPicReviewer) > 0)
@foreach ($nomorHpPicReviewer as $hp_pic_reviewer)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nomor_hp_pic_reviewer ?? '-' }}
</p>
@if (isset($kjpp->detail_nomor_hp_pic_reviewer))
@foreach (json_decode($detailJoinPicReviewer) as $detail_nomor_hp_pic_reviewer)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $hp_pic_reviewer }}
{{ $detail_nomor_hp_pic_reviewer->nomor_hp_pic_reviewer }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
</div>
@@ -181,32 +167,26 @@
Nama PIC Admin
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($namaPicAdmin) && count($namaPicAdmin) > 0)
@foreach ($namaPicAdmin as $pic_admin)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nama_pic_admin ?? '-' }}</p>
@if (isset($kjpp->detail_nama_pic_admin))
@foreach (json_decode($detailJoinPicAdmin) as $detail_nama_pic_admin)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $pic_admin }}
{{ $detail_nama_pic_admin->nama_pic_admin }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
<label class="form-label max-w-56">
Nomor HP PIC Admin
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($nomorHpPicAdmin) && count($nomorHpPicAdmin) > 0)
@foreach ($nomorHpPicAdmin as $hp_pic_admin)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nomor_hp_pic_admin ?? '-' }}</p>
@if (isset($kjpp->detail_nomor_hp_pic_admin))
@foreach (json_decode($detailJoinPicAdmin) as $detail_nomor_hp_pic_admin)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $hp_pic_admin }}
{{ $detail_nomor_hp_pic_admin->nomor_hp_pic_admin }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
</div>
@@ -215,32 +195,27 @@
Nama PIC Marketing
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($namaPicMarketing) && count($namaPicMarketing) > 0)
@foreach ($namaPicMarketing as $pic_marketing)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nama_pic_marketing ?? '-' }}</p>
@if (isset($kjpp->detail_nama_pic_marketing))
@foreach (json_decode($detailJoinPicMarketing) as $detail_nama_pic_marketing)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $pic_marketing }}
{{ $detail_nama_pic_marketing->nama_pic_marketing }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
<label class="form-label max-w-56">
Nomor HP PIC Marketing
</label>
<div class="flex flex-wrap items-baseline w-full">
@if (isset($nomorHpPicMarketing) && count($nomorHpPicMarketing) > 0)
@foreach ($nomorHpPicMarketing as $hp_pic_marketing)
<p class="flex w-full text-gray-600 font-medium text-sm">{{ $kjpp->nomor_hp_pic_marketing ?? '-' }}
</p>
@if (isset($kjpp->detail_nomor_hp_pic_marketing))
@foreach (json_decode($detailJoinPicMarketing) as $detail_nomor_hp_pic_marketing)
<p class="flex w-full text-gray-600 font-medium text-sm">
{{ $hp_pic_marketing }}
{{ $detail_nomor_hp_pic_marketing->nomor_hp_pic_marketing }}
</p>
@endforeach
@else
<p class="flex w-full text-gray-600 font-medium text-sm">
-
</p>
@endif
</div>
</div>
@@ -248,23 +223,25 @@
<label class="form-label max-w-56">
Ijin Usaha
</label>
<div class="flex flex-wrap items-baseline w-full gap-1">
<div class="flex flex-wrap items-baseline w-full">
@if (isset($kjpp->ijin_usaha_id))
@foreach (json_decode($kjpp->ijin_usaha_id, true) as $ijin_code)
@php
$ijin_usaha = $ijin_usahas->firstWhere('code', $ijin_code);
@endphp
@if ($ijin_usaha)
<div
class="flex flex-row space-x-4 text-white text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
{{ $ijin_usaha->name }}
</div>
@endif
@endforeach
@else
<div class="flex flex-row space-x-4 text-white text-sm dark-mode:text-gray-600">
-
<div class="flex flex-row space-x-4 text-gray-600 font-medium text-sm gap-1">
@foreach (json_decode($kjpp->ijin_usaha_id, true) as $ijin_code)
@php
$ijin_usaha = $ijin_usahas->firstWhere('code', $ijin_code);
@endphp
@if ($ijin_usaha)
<div
class="flex flex-row space-x-4 text-white font-medium text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
{{ $ijin_usaha->name }}
</div>
@endif
@endforeach
</div>
@else
<div class="flex flex-row space-x-4 text-white font-medium text-sm dark-mode:text-gray-600">No
business license
selected.</div>
@endif
</div>
</div>
@@ -280,13 +257,13 @@
@endphp
@if ($jenis_aset)
<span
class="flex flex-row space-x-4 text-white text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
class="flex flex-row space-x-4 text-white font-medium text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
{{ $jenis_aset->name }}
</span>
@endif
@endforeach
@else
<span class="flex flex-row space-x-4 text-gray-600 text-sm dark-mode:text-gray-600">
<span class="flex flex-row space-x-4 text-gray-600 font-medium text-sm dark-mode:text-gray-600">
-
</span>
@endif