update message di assigment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user