update insert data json ke table ispeksi

This commit is contained in:
majid76
2024-12-02 07:11:08 +07:00
committed by putrakuningan
parent 0631eb71e0
commit 701c36f603
10 changed files with 553 additions and 506 deletions

View File

@@ -16,7 +16,7 @@
}
</style>
@endpush
@include('lpj::assetsku.includenya')
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
@@ -30,15 +30,7 @@
</div>
<div class="card-body">
@if (request()->has('form') && request('form') == 'denah')
@include('lpj::surveyor.components.card-tambah')
@elseif(request()->has('form') && request('form') == 'data-pembanding')
@include('lpj::surveyor.components.card-tambah')
@elseif(request()->has('form') && request('form') == 'foto')
@include('lpj::surveyor.components.card-tambah')
@else
@include('lpj::surveyor.components.card-tambah')
@endIf
</div>
<div class="card-footer ">
@@ -94,11 +86,19 @@
},
success: function(response) {
if (response.success) {
window.location.href = "{{ route('surveyor.index') }}";
// window.location.href = "{{ route('surveyor.index') }}";
toastrSuccessBuild(response.message);
}
},
error: function(xhr, status, error) {
console.log('Error checking button status:', error, status, xhr);
if (xhr.responseJSON.message) {
toastrErrorBuild(xhr.responseJSON.message);
}else{
toastrErrorBuild('Terjadi kesalahan');
}
}
});
}