From 335fb24edaf7764e260b80e1b364fc13405ecb52 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 17 Jul 2023 12:51:10 +0800 Subject: [PATCH] fix ayat --- app/Http/Controllers/BayaranController.php | 2 +- resources/views/includes/home.blade.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/BayaranController.php b/app/Http/Controllers/BayaranController.php index a8619f5..c22ca23 100644 --- a/app/Http/Controllers/BayaranController.php +++ b/app/Http/Controllers/BayaranController.php @@ -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.'); diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php index 35d53c6..22d20b0 100644 --- a/resources/views/includes/home.blade.php +++ b/resources/views/includes/home.blade.php @@ -205,6 +205,17 @@ @endif + @if (\Session::has('errorsagonline')) + + @endif +