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