update ayat lebihTempoh dan namahost adminbid
This commit is contained in:
@@ -77,13 +77,14 @@ class BayaranController extends Controller
|
||||
{
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $sag)->json();
|
||||
|
||||
//$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $sag])->json();
|
||||
//$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.');
|
||||
//}
|
||||
|
||||
if($gadai[0][0]['tempoh'] >= 12){
|
||||
return redirect()->route('home')->with('error','SAG Yang Dipilih melebihi tempoh 12 bulan ke atas.');
|
||||
// return redirect()->route('home')->with('error','SAG Yang Dipilih melebihi tempoh 12 bulan ke atas.');
|
||||
return redirect()->route('home')->with('error','SAG Yang Dipilih Akan/Telah Tamat Kontrak 12 Bulan. Sila Hadir Ke Kaunter Cawangan Untuk Pembayaran/Penebusan.');
|
||||
}
|
||||
|
||||
$arraybayar[] = $gadai[0][0];
|
||||
|
||||
@@ -89,7 +89,7 @@ class InformationController extends Controller
|
||||
if(isset($CustomerInfo['lelong'])){
|
||||
if(sizeof($CustomerInfo['lelong']) > 0){
|
||||
foreach($CustomerInfo['lelong'] as $index=>$lel){
|
||||
$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://adminbid.arrahn.com.my/api/portalApi',['norujukan' => $lel['norujukan']])->json();
|
||||
$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://niklah.arrahn.com.my/api/portalApi',['norujukan' => $lel['norujukan']])->json();
|
||||
// $array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('http://lelong.test/api/portalApi/',['norujukan' => $lel['norujukan']]);
|
||||
if($array_lelong['lelong'] !== null){
|
||||
$CustomerInfo['lelong'][$index] = collect($lel)->merge($array_lelong['lelong'])->toArray();
|
||||
|
||||
@@ -176,7 +176,8 @@
|
||||
@if (\Session::has('error'))
|
||||
<script>
|
||||
Swal.fire(
|
||||
"Melebihi tempoh 12 Bulan.",
|
||||
// "Melebihi tempoh 12 Bulan.",
|
||||
"Akan/Telah Tamat Kontrak 12 Bulan.",
|
||||
"{{ \Session::get('error') }}",
|
||||
'warning'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user