This commit is contained in:
hafifierahman
2023-07-17 12:51:10 +08:00
parent f2f39d86d8
commit 335fb24eda
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class BayaranController extends Controller
$sagonline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/portal/searchsagonline/',['norujukan' => $sag])->json();
if($sagonline == true)
return redirect()->route('home')->with('error','Salah Satu SAG Yang Dipilih Telah Pun Dibayar!');
return redirect()->route('home')->with('errorsagonline','Sila Tunggu Sebentar!');
//$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://niklah.arrahn.com.my/api/portalApi',['norujukan' => $sag])->json();
//if($array_lelong['lelong'] !== null){
// return redirect()->route('home')->with('error','Barangan Sedang Dilelong.');
+11
View File
@@ -205,6 +205,17 @@
</script>
@endif
@if (\Session::has('errorsagonline'))
<script>
Swal.fire(
// "Melebihi tempoh 12 Bulan.",
"Pembayaran Terdahulu Dalam Proses.",
// "{{ \Session::get('errorsagonline') }}",
'warning'
)
</script>
@endif
<div class="table-responsive table-bordered table-hover">
<table class="table align-items-center table-flush border" id="selepas_tawarruq" style="text-align: center; width: 100%">
<thead class="thead-light bg-dark text-white text-center">