update form foto
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
<div class="flex w-full items-center justify-center gap-4 mb-4"
|
||||
id="photoContainer-{{ $index }}">
|
||||
<label class="form-label max-w-56">
|
||||
<span class="form-label">Foto Rute Menuju Lokasi</span>
|
||||
<span class="form-label">Foto Rute Menuju Lokasi {{ $index + 1 }}</span>
|
||||
</label>
|
||||
<div class="input-group w-full flex flex-col gap-2">
|
||||
<div class="preview-container">
|
||||
@@ -182,23 +182,25 @@
|
||||
</div>
|
||||
<div id="ruteLainnya" style="margin-top: 10px">
|
||||
@if (isset($formFoto['foto_rute_lainnya']) && is_array($formFoto['foto_rute_lainnya']))
|
||||
@foreach ($formFoto['foto_rute_lainnya'] as $Index => $photo)
|
||||
@foreach ($formFoto['foto_rute_lainnya'] as $index => $photo)
|
||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mb-5"
|
||||
id="photoContainer">
|
||||
<label class="form-label max-w-56">
|
||||
Masukkan nama rute lainnya
|
||||
Masukkan nama rute lainnya {{ $index + 1 }}
|
||||
</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<img id="foto_rute_lainnya-preview-{{ $index }}"
|
||||
src="{{ asset('storage/' . $photo['foto_rute_lainnya']) }}"
|
||||
alt="Foto Rute " class="mt-2 max-w-full h-auto"
|
||||
style="width: 30rem;">
|
||||
<div class="flex flex-col lg:flex-row gap-2 w-full">
|
||||
|
||||
<div class="flex flex-wrap items-baseline px-2">
|
||||
<input class="input" type="text" name="name_rute_lainnya[]"
|
||||
value="{{ $photo['name_rute_lainnya'] }}">
|
||||
</div>
|
||||
<div class="input-group w-full flex flex-col gap-2">
|
||||
<img id="foto_rute_lainnya-preview-"
|
||||
src="{{ asset('storage/' . $photo['foto_rute_lainnya']) }}"
|
||||
alt="Foto Rute " class="mt-2 max-w-full h-auto"
|
||||
style="width: 30rem;">
|
||||
|
||||
<div class="input-group w-full flex gap-2">
|
||||
<input type="file" name="foto_rute_lainnya[]"
|
||||
class="file-input file-input-bordered w-full"
|
||||
@@ -487,7 +489,7 @@
|
||||
<div id="inputContainerLingkungan" style="margin-top: 10px">
|
||||
<div class="flex w-full items-center justify-center gap-4 mb-4">
|
||||
<label class="form-label max-w-56">
|
||||
<span class="form-label">Lingkungan</span>
|
||||
<span class="form-label">Lingkungan {{ $key + 1 }}</span>
|
||||
</label>
|
||||
<div class="w-full grid gap-5">
|
||||
<img id="foto_lingkungan_preview_{{ $key }}"
|
||||
@@ -637,9 +639,11 @@
|
||||
confirmButtonText: 'OK'
|
||||
}).then((response) => {
|
||||
if (response.isConfirmed) {
|
||||
window.location.href =
|
||||
'{{ route('surveyor.show', ['id' => $permohonan->id]) }}';
|
||||
// window.location.href =
|
||||
// '{{ route('surveyor.show', ['id' => $permohonan->id]) }}';
|
||||
}
|
||||
console.log(response);
|
||||
|
||||
});
|
||||
} else {
|
||||
Swal.fire({
|
||||
|
||||
Reference in New Issue
Block a user