fix(print-out): perbaikan prit out, resume, memo, standard, sedehana dan rap
This commit is contained in:
@@ -270,7 +270,7 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label class="form-label font-medium max-w-56">Nomor NIB</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="nomor_nib" class="input w-full" value="{{ $forminspeksi['asset']['nomor_nib']}}"
|
||||
<input type="text" name="nomor_nib" class="input w-full" value="{{ $forminspeksi['asset']['nomor_nib'] ?? ''}}"
|
||||
placeholder="Masukkan Nomor NIB">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
<div class="card border border-agi-100 w-full rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
<h3 class="card-title uppercase">
|
||||
@@ -7,50 +6,133 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="grid gap-5">
|
||||
|
||||
<!-- Bagian Perizinan -->
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label class="form-label max-w-56">Perizininan Lainnya</label>
|
||||
<label class="form-label max-w-56">Perizinan Lainnya</label>
|
||||
<div class="flex-wrap items-stretch w-full">
|
||||
<div class="flex flex-col items-start gap-4 w-full">
|
||||
@if (isset($basicData['perizinan']))
|
||||
@foreach ($basicData['perizinan'] as $item)
|
||||
<div class="flex items-center w-full">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||
<input class="checkbox" name="perizinan[]" type="checkbox">
|
||||
@foreach ($basicData['perizinan'] as $key => $item)
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap min-w-[200px]">
|
||||
<input class="checkbox"
|
||||
name="perizinan[{{ $key }}]"
|
||||
type="checkbox"
|
||||
value="{{ $item->name }}"
|
||||
@checked(in_array($item->name, old('perizinan', [])) ||
|
||||
(isset($forminspeksi['perizinan']) &&
|
||||
in_array($item->name, array_column($forminspeksi['perizinan'], 'perizinan'))))>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
<input class="file-input" name="perizinan_file[]" type="file" />
|
||||
|
||||
<div class="grid gap-2.5 w-full">
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
@php
|
||||
$existingFile = isset($forminspeksi['perizinan'])
|
||||
? collect($forminspeksi['perizinan'])->firstWhere('perizinan', $item->name)
|
||||
: null;
|
||||
@endphp
|
||||
|
||||
@if ($existingFile)
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<span class="text-sm text-gray-600">
|
||||
{{ basename($existingFile['perizinan_file']) }}
|
||||
</span>
|
||||
<span class="flex-none badge badge-sm badge-outline badge-warning mt-2"
|
||||
onclick="viewPDF('{{ Storage::url($existingFile['perizinan_file']) }}')">
|
||||
<i class="ki-filled ki-eye mr-2"></i>Preview
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<input class="file-input w-full"
|
||||
name="perizinan_file[{{ $key }}]"
|
||||
type="file"
|
||||
accept=".pdf"
|
||||
data-index="{{ $key }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bagian Brosur & Pricelist -->
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||
<label class="form-label max-w-56">Brosur & Pricelist</label>
|
||||
<div class="flex-wrap items-stretch w-full">
|
||||
<div class="flex flex-col items-start gap-4 w-full">
|
||||
<div class="flex items-center w-full">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||
<input class="checkbox" name="brosur_price_list[]" type="checkbox">
|
||||
Brosur
|
||||
</label>
|
||||
<input class="file-input" name="brosur_price_list[]" type="file" />
|
||||
</div>
|
||||
<div class="flex items-center w-full">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||
<input class="checkbox" name="brosur_price_list_file[]" type="checkbox">
|
||||
Pricelist
|
||||
</label>
|
||||
<input class="file-input" name="brosur_price_list_file[]" type="file" />
|
||||
@php
|
||||
$brosurItems = [
|
||||
[
|
||||
'label' => 'Brosur',
|
||||
'name' => 'brosur_price_list',
|
||||
'inputname' => 'brosur_price_list_file',
|
||||
],
|
||||
[
|
||||
'label' => 'Pricelist',
|
||||
'name' => 'brosur_price_list',
|
||||
'inputname' => 'brosur_price_list_file',
|
||||
],
|
||||
];
|
||||
@endphp
|
||||
|
||||
</div>
|
||||
<div class="flex flex-col items-start gap-4 w-full">
|
||||
@foreach ($brosurItems as $index => $item)
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<label class="form-label flex items-center gap-2.5 text-nowrap min-w-[200px]">
|
||||
<input class="checkbox"
|
||||
name="{{ $item['name'] }}[{{ $index }}]"
|
||||
type="checkbox"
|
||||
value="{{ $item['label'] }}"
|
||||
@checked(in_array($item['label'], old('brosur_price_list', [])) ||
|
||||
(isset($forminspeksi['brosur_price_list']) &&
|
||||
in_array($item['label'], array_column($forminspeksi['brosur_price_list'], 'jenis'))))>
|
||||
{{ $item['label'] }}
|
||||
</label>
|
||||
|
||||
<div class="grid gap-2.5 w-full">
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
@php
|
||||
$existingFile = isset($forminspeksi['brosur_price_list'])
|
||||
? collect($forminspeksi['brosur_price_list'])->firstWhere('jenis', $item['label'])
|
||||
: null;
|
||||
@endphp
|
||||
|
||||
@if ($existingFile)
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<span class="text-sm text-gray-600">
|
||||
{{ basename($existingFile['file_path']) }}
|
||||
</span>
|
||||
<span class="flex-none badge badge-sm badge-outline badge-warning mt-2"
|
||||
onclick="viewPDF('{{ Storage::url($existingFile['file_path']) }}')">
|
||||
<i class="ki-filled ki-eye mr-2"></i>Preview
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4 w-full">
|
||||
<input class="file-input w-full"
|
||||
name="{{ $item['inputname'] }}[{{ $index }}]"
|
||||
type="file"
|
||||
accept=".pdf"
|
||||
data-index="{{ $index }}"
|
||||
id="file_{{ $index }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="card border border-agi-100 w-full rounded-lg shadow-md overflow-hidden">
|
||||
<div class="card-header bg-agi-50">
|
||||
@@ -95,30 +177,30 @@
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">Lainnya</label>
|
||||
<div class="w-full">
|
||||
<div id="lainnya_developer-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['lainnya_developer']))
|
||||
@foreach ($forminspeksi['lainnya_developer'] as $index => $item)
|
||||
<div class="lainnya_developer flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="lainnya_developer[]" rows="3">{{ old("lainnya_developer.$index", $item) }}</textarea>
|
||||
</div>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="lainnya_developer flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="lainnya_developer[]" rows="3">{{ old('lainnya_developer.0', '') }}</textarea>
|
||||
</div>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('lainnya_developer-container', 'lainnya_developer')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
<div id="lainnya_developer-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['lainnya_developer']))
|
||||
@foreach ($forminspeksi['lainnya_developer'] as $index => $item)
|
||||
<div class="lainnya_developer flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="lainnya_developer[]" rows="3">{{ old("lainnya_developer.$index", $item) }}</textarea>
|
||||
</div>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="lainnya_developer flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="lainnya_developer[]" rows="3">{{ old('lainnya_developer.0', '') }}</textarea>
|
||||
</div>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('lainnya_developer-container', 'lainnya_developer')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -314,19 +396,20 @@
|
||||
@if (isset($basicData['spekKategoriBangunan']))
|
||||
@foreach ($basicData['spekKategoriBangunan'] as $item)
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||
<label class="form-label max-w-56">{{ $item->name }}</label>
|
||||
<label class="form-label max-w-56">{{ $item->name ?? '' }}</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" name="partisi_{{ $item->name }}" class="input"
|
||||
placeholder="Masukkan {{ $item->name }}">
|
||||
@error($item->name)
|
||||
<em class="alert text-danger text-sm"></em>
|
||||
@enderror
|
||||
<input type="hidden" name="partisi[{{ $item->name }}][nama]"
|
||||
value="{{ $item->name ?? '' }}">
|
||||
<input type="text" name="partisi[{{ $item->name }}][value]" class="input"
|
||||
placeholder="Masukkan {{ $item->name }}"
|
||||
value="{{ isset($forminspeksi['partisi'][$item->name]['value']) ? $forminspeksi['partisi'][$item->name]['value'] : old('partisi.' . $item->name . '.value') }}">
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card border border-agi-100 w-full rounded-lg shadow-md overflow-hidden">
|
||||
@@ -359,9 +442,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('jumlah-unit', 'jumlah_unit')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
onclick="addClonableItem('jumlah-unit', 'jumlah_unit')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -395,9 +478,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('bata-perumahan-container', 'batas_batas_perumahan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
onclick="addClonableItem('bata-perumahan-container', 'batas_batas_perumahan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -431,9 +514,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('fasos-fasum-container', 'fasus_fasum')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
onclick="addClonableItem('fasos-fasum-container', 'fasus_fasum')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -466,9 +549,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('progres-penjualan-container', 'progres_penjualan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
onclick="addClonableItem('progres-penjualan-container', 'progres_penjualan')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -502,9 +585,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-sm mt-5"
|
||||
onclick="addClonableItem('harga-unit-container', 'harga_unit')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
onclick="addClonableItem('harga-unit-container', 'harga_unit')">
|
||||
<i class="ki-outline ki-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card border border-agi-100 w-full rounded-lg shadow-md overflow-hidden">
|
||||
@@ -590,14 +673,12 @@
|
||||
|
||||
<div id="fakta-positif-container" class="flex flex-wrap items-baseline w-full">
|
||||
@if (!empty($forminspeksi['rute_menuju_lokasi']))
|
||||
|
||||
<div class="rute_menuju_lokasi flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="rute_menuju_lokasi" rows="3">{{ old("rute_menuju_lokasi", $forminspeksi['rute_menuju_lokasi']) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="rute_menuju_lokasi flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="rute_menuju_lokasi" rows="3">{{ old('rute_menuju_lokasi', $forminspeksi['rute_menuju_lokasi']) }}</textarea>
|
||||
<button class="btn btn-danger btn-sm remove-btn" type="button" style="display: none;">
|
||||
<i class="ki-outline ki-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
@else
|
||||
<div class="rute_menuju_lokasi flex items-center gap-2 mt-2 textarea-group w-full">
|
||||
<textarea class="textarea mt-2" name="rute_menuju_lokasi" rows="3">{{ old('rute_menuju_lokasi') }}</textarea>
|
||||
|
||||
Reference in New Issue
Block a user