perbaikan foto dan penambahan basic data foto objek jaminan, print-out

This commit is contained in:
majid
2024-12-29 06:10:45 +07:00
parent 9a24751f65
commit e62524e683
19 changed files with 1175 additions and 676 deletions

View File

@@ -80,6 +80,29 @@
</div>
@endif
@if (isset($header[1]) && $header[1] == 'foto-objek-jaminan')
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label class="form-label max-w-56">Form Kategori</label>
<div class="flex flex-wrap items-baseline w-full">
<select
class="input tomselect w-full @error('kategori') border-danger bg-danger-light @enderror select2"
name="kategori">
<option value="">Pilih Kategori</option>
@foreach (['tanah', 'bangunan', 'kapal', 'kendaraan', 'mesin', 'pesawat', 'alat-berat', 'apartemen-kantor'] as $item)
<option value="{{ $item }}"
@if (isset($model) && $model->kategori == $item) {{ 'selected' }} @endif>
{{ $item }}
</option>
@endforeach
</select>
@error('form_kategori')
<em class="alert text-danger text-sm">{{ $message }}</em>
@enderror
</div>
</div>
@endif
<div class="flex justify-end">
<button type="submit" class="btn btn-primary">

View File

@@ -45,7 +45,7 @@
<span class="sort"> <span class="sort-label">{{ isset($header[0]) ? $header[0] : '' }}</span>
<span class="sort-icon"> </span> </span>
</th>
@if ($header[1] == 'spek-bangunan')
@if ($header[1] == 'spek-bangunan' || $header[1] == 'foto-objek-jaminan')
<th class="min-w-[250px]" data-datatable-column="code">
<span class="sort"> <span class="sort-label"> Kategori </span>
<span class="sort-icon"> </span> </span>
@@ -140,6 +140,15 @@
}
}
}),
...(header == 'foto-objek-jaminan' && {
kategories:{
title: 'Kategori',
render: (item, data)=>{
return data.kategori;
}
}
}),
actions: {
title: 'Status',
render: (item, data) => {