update message di assigment

This commit is contained in:
majid
2024-12-10 10:07:41 +07:00
parent b7b668321f
commit 5dc95d3339

View File

@@ -3,11 +3,8 @@
@section('breadcrumbs')
{{ Breadcrumbs::render(request()->route()->getName()) }}
@endsection
@section('content')
@include('lpj::assetsku.includenya')
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
@include('lpj::component.detail-jaminan', ['backLink' => 'penilaian.index'])
@@ -462,6 +459,7 @@
if (response.success) {
window.location.href =
'{{ route('penilaian.index') }}';
toastrSuccessBuild(response.message);
} else {
showErrorMessages(response.errors);
@@ -470,6 +468,7 @@
},
error: function(xhr) {
// Handle errors from the server
toastrErrorBuild(xhr.responseJSON.message);
showErrorMessages(xhr.responseJSON?.errors);
console.error('Error occurred:', xhr.statusText);
console.log('Response:', xhr.responseText);