update home & simulasi kemaskini taglel
This commit is contained in:
@@ -78,7 +78,7 @@ class HomeController extends Controller
|
||||
array_push($arrayinfomutu,['info'=>$infomutu, 'detailsinfo'=>$detailsinfo]);
|
||||
}
|
||||
|
||||
return view('home',compact('lelongmutu', 'arrayinfomutu'));
|
||||
return view('home',compact('lelongmutu', 'arrayinfomutu','arrayinfo'));
|
||||
}
|
||||
|
||||
public function about()
|
||||
|
||||
@@ -1156,6 +1156,13 @@ class SimulasiController extends Controller
|
||||
$lelongtebus->jenis_tebus = 'T';
|
||||
$lelongtebus->save();
|
||||
|
||||
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])
|
||||
->post(config('app.api_url').'taglel/revert',[
|
||||
'kodcaw'=>$data['kodcaw'],
|
||||
'norujukan'=>$data['norujukan']
|
||||
])
|
||||
->json();
|
||||
|
||||
// dd($data['norujukan']);
|
||||
$updatesimulasi = SimulasiBid::where('norujukan','=',$data['norujukan'])->first();
|
||||
$updatesimulasi->delete();
|
||||
@@ -1187,6 +1194,13 @@ class SimulasiController extends Controller
|
||||
$lelongtebus->jbg = $data['jbg'];
|
||||
$lelongtebus->jenis_tebus = 'A';
|
||||
$lelongtebus->save();
|
||||
|
||||
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])
|
||||
->post(config('app.api_url').'taglel/revert',[
|
||||
'kodcaw'=>$data['kodcaw'],
|
||||
'norujukan'=>$data['norujukan']
|
||||
])
|
||||
->json();
|
||||
|
||||
// dd($data['norujukan']);
|
||||
$updatesimulasi = SimulasiBid::where('norujukan','=',$data['norujukan'])->first();
|
||||
|
||||
Reference in New Issue
Block a user