perbaikan form inspeksi dan

This commit is contained in:
majid
2024-12-09 15:49:44 +07:00
parent 2d45e03095
commit 4ed2afda72
11 changed files with 559 additions and 435 deletions

View File

@@ -119,7 +119,7 @@
<!-- Delete button to remove photo -->
<button type="button" class="btn btn-danger btn-sm delete-btn"
onclick="deletePhoto('{{ $index }}')">
id="btnDelete">
<i class="ki-filled ki-trash"></i>
</button>
</div>
@@ -603,10 +603,9 @@
<!-- Modal Kamera -->
@include('lpj::surveyor.components.modal-kamera')
@endsection
@endsection
@include('lpj::surveyor.js.fotojs')
@push('scripts')
<script>
function submitFoto() {
@@ -616,9 +615,6 @@
const formElement = $('#formFoto')[0];
const formData = new FormData(formElement);
// for (const [key, value] of formData.entries()) {
// console.log(`Key: ${key}, Value: ${value}`);
// }
$.ajax({
url: '{{ route('surveyor.storeFoto') }}',