Memperbaiki KJPP Basic data dari create, edit, dan show yang bug
This commit is contained in:
@@ -95,13 +95,16 @@
|
||||
Email Kantor
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<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)
|
||||
@if (isset($emailKantor) && count($emailKantor) > 0)
|
||||
@foreach ($emailKantor as $email)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_email_kantor->email_kantor }}
|
||||
{{ $email }}
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
-
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,26 +113,32 @@
|
||||
Nama Pimpinan
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<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)
|
||||
@if (isset($namaPimpinan) && count($namaPimpinan) > 0)
|
||||
@foreach ($namaPimpinan as $pimpinan)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nama_pimpinan->nama_pimpinan }}
|
||||
{{ $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">
|
||||
<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)
|
||||
@if (isset($nomorHpPimpinan) && count($nomorHpPimpinan) > 0)
|
||||
@foreach ($nomorHpPimpinan as $hp_pimpinan)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nomor_hp_pimpinan->nomor_hp_pimpinan }}
|
||||
{{ $hp_pimpinan }}
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
-
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -138,27 +147,32 @@
|
||||
Nama PIC Reviewer
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<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)
|
||||
@if (isset($namaPicReviewer) && count($namaPicReviewer) > 0)
|
||||
@foreach ($namaPicReviewer as $pic_reviewer)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nama_pic_reviewer->nama_pic_reviewer }}
|
||||
{{ $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">
|
||||
<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)
|
||||
@if (isset($nomorHpPicReviewer) && count($nomorHpPicReviewer) > 0)
|
||||
@foreach ($nomorHpPicReviewer as $hp_pic_reviewer)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nomor_hp_pic_reviewer->nomor_hp_pic_reviewer }}
|
||||
{{ $hp_pic_reviewer }}
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
-
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,26 +181,32 @@
|
||||
Nama PIC Admin
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<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)
|
||||
@if (isset($namaPicAdmin) && count($namaPicAdmin) > 0)
|
||||
@foreach ($namaPicAdmin as $pic_admin)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nama_pic_admin->nama_pic_admin }}
|
||||
{{ $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">
|
||||
<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)
|
||||
@if (isset($nomorHpPicAdmin) && count($nomorHpPicAdmin) > 0)
|
||||
@foreach ($nomorHpPicAdmin as $hp_pic_admin)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nomor_hp_pic_admin->nomor_hp_pic_admin }}
|
||||
{{ $hp_pic_admin }}
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
-
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -195,27 +215,32 @@
|
||||
Nama PIC Marketing
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<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)
|
||||
@if (isset($namaPicMarketing) && count($namaPicMarketing) > 0)
|
||||
@foreach ($namaPicMarketing as $pic_marketing)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nama_pic_marketing->nama_pic_marketing }}
|
||||
{{ $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">
|
||||
<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)
|
||||
@if (isset($nomorHpPicMarketing) && count($nomorHpPicMarketing) > 0)
|
||||
@foreach ($nomorHpPicMarketing as $hp_pic_marketing)
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
{{ $detail_nomor_hp_pic_marketing->nomor_hp_pic_marketing }}
|
||||
{{ $hp_pic_marketing }}
|
||||
</p>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||
-
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -223,25 +248,23 @@
|
||||
<label class="form-label max-w-56">
|
||||
Ijin Usaha
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<div class="flex flex-wrap items-baseline w-full gap-1">
|
||||
@if (isset($kjpp->ijin_usaha_id))
|
||||
<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>
|
||||
@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 font-medium text-sm dark-mode:text-gray-600">No
|
||||
business license
|
||||
selected.</div>
|
||||
<div class="flex flex-row space-x-4 text-white text-sm dark-mode:text-gray-600">
|
||||
-
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -257,13 +280,13 @@
|
||||
@endphp
|
||||
@if ($jenis_aset)
|
||||
<span
|
||||
class="flex flex-row space-x-4 text-white font-medium text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
|
||||
class="flex flex-row space-x-4 text-white 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 font-medium text-sm dark-mode:text-gray-600">
|
||||
<span class="flex flex-row space-x-4 text-gray-600 text-sm dark-mode:text-gray-600">
|
||||
-
|
||||
</span>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user