commit error swal fire
This commit is contained in:
@@ -459,13 +459,15 @@ class PenebusanController extends Controller
|
|||||||
"jenisAT" => $request->jenisAT,
|
"jenisAT" => $request->jenisAT,
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
$alirantunai = new AliranTunaiController();
|
|
||||||
event(new TebusNotify('lulus',Auth::user()->cawangan));
|
|
||||||
event(new GadaiNotify('lulus',Auth::user()->cawangan));
|
|
||||||
$alirantunai->alirantunaiTebusAutoTawarruq($request);
|
|
||||||
|
|
||||||
return response()->json($updatetebus['data'],200);
|
if($updatetebus['result'] == 'success'){
|
||||||
|
$alirantunai = new AliranTunaiController();
|
||||||
|
event(new TebusNotify('lulus',Auth::user()->cawangan));
|
||||||
|
event(new GadaiNotify('lulus',Auth::user()->cawangan));
|
||||||
|
$alirantunai->alirantunaiTebusAutoTawarruq($request);
|
||||||
|
}
|
||||||
|
|
||||||
|
return response()->json($updatetebus['result'],200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tebusseparuh(Request $request)
|
public function tebusseparuh(Request $request)
|
||||||
|
|||||||
@@ -2402,14 +2402,24 @@
|
|||||||
|
|
||||||
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
||||||
urlroute = urlroute.replace(':id', norujukan);
|
urlroute = urlroute.replace(':id', norujukan);
|
||||||
Swal.fire(
|
if(success_data == 'success'){
|
||||||
'Berjaya!',
|
Swal.fire(
|
||||||
'Tebus Auto Tawarruq Berjaya',
|
'Berjaya!',
|
||||||
'success'
|
'Penyelesaian Pembiayaan Semula Berjaya',
|
||||||
) .then(function() {
|
'success'
|
||||||
window.open(urlroute, '_blank');
|
) .then(function() {
|
||||||
window.location.replace("{{ route('customer_info') }}");
|
window.open(urlroute, '_blank');
|
||||||
})
|
window.location.replace("{{ route('customer_info') }}");
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
Swal.fire(
|
||||||
|
'Tidak Berjaya!',
|
||||||
|
'Penyelesaian Pembiayaan Semula Tidak Berjaya!',
|
||||||
|
'error'
|
||||||
|
).then(function(){
|
||||||
|
window.location.replace("{{ route('customer_info') }}");
|
||||||
|
});
|
||||||
|
}
|
||||||
},error: function (request, status, error) {
|
},error: function (request, status, error) {
|
||||||
console.log(request.responseText);
|
console.log(request.responseText);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2660,17 +2660,25 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
success:function(success_data){
|
success:function(success_data){
|
||||||
|
if(success_data == 'success'){
|
||||||
|
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
||||||
|
urlroute = urlroute.replace(':id', norujukan);
|
||||||
|
Swal.fire(
|
||||||
|
'Berjaya!',
|
||||||
|
'Penyelesaian Pembiayaan Semula Berjaya',
|
||||||
|
'success'
|
||||||
|
) .then(function() {
|
||||||
|
window.open(urlroute, '_blank');
|
||||||
|
window.location.replace("{{ route('customer_info') }}");
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
Swal.fire(
|
||||||
|
'Tidak Berjaya!',
|
||||||
|
'Penyelesaian Pembiayaan Semula Tidak Berjaya!',
|
||||||
|
'error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
|
||||||
urlroute = urlroute.replace(':id', norujukan);
|
|
||||||
Swal.fire(
|
|
||||||
'Berjaya!',
|
|
||||||
'Penyelesaian Pembiayaan Semula Berjaya',
|
|
||||||
'success'
|
|
||||||
) .then(function() {
|
|
||||||
window.open(urlroute, '_blank');
|
|
||||||
window.location.replace("{{ route('customer_info') }}");
|
|
||||||
})
|
|
||||||
},error: function (request, status, error) {
|
},error: function (request, status, error) {
|
||||||
console.log(request.responseText);
|
console.log(request.responseText);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3298,14 +3298,25 @@
|
|||||||
|
|
||||||
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
var urlroute = '{{ route("resit.autotawarruq", ":id") }}';
|
||||||
urlroute = urlroute.replace(':id', norujukan);
|
urlroute = urlroute.replace(':id', norujukan);
|
||||||
Swal.fire(
|
if(success_data == 'success'){
|
||||||
'Berjaya!',
|
Swal.fire(
|
||||||
'Penyelesaian Pembiayaan Semula Berjaya',
|
'Berjaya!',
|
||||||
'success'
|
'Penyelesaian Pembiayaan Semula Berjaya',
|
||||||
) .then(function() {
|
'success'
|
||||||
window.open(urlroute, '_blank');
|
) .then(function() {
|
||||||
window.location.replace("{{ route('customer_info') }}");
|
window.open(urlroute, '_blank');
|
||||||
})
|
window.location.replace("{{ route('customer_info') }}");
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
Swal.fire(
|
||||||
|
'Tidak Berjaya!',
|
||||||
|
'Penyelesaian Pembiayaan Semula Tidak Berjaya!',
|
||||||
|
'error'
|
||||||
|
).then(function(){
|
||||||
|
window.location.replace("{{ route('customer_info') }}");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},error: function (request, status, error) {
|
},error: function (request, status, error) {
|
||||||
console.log(request.responseText);
|
console.log(request.responseText);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user