Merge branch 'new-super' into afiqhamzah-feat-mykad-reader-registration
This commit is contained in:
@@ -357,6 +357,7 @@ class GadaianController extends Controller
|
||||
|
||||
$transaction = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/transaction/one/'. $id)->json();
|
||||
|
||||
|
||||
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $id)->json();
|
||||
|
||||
if(sizeof($gadai) != 0)
|
||||
@@ -367,7 +368,12 @@ class GadaianController extends Controller
|
||||
// if(sizeof($customers_info) != 0)
|
||||
// $customers_info = $customers_info[0];
|
||||
|
||||
return view('print.resitansuran',compact('transaction','gadai','customers_info'));
|
||||
$wakil = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $transaction['nowakil'])->json();
|
||||
|
||||
if(sizeof($wakil) != 0)
|
||||
$wakil = $wakil[0];
|
||||
|
||||
return view('print.resitansuran',compact('transaction','gadai','customers_info','wakil'));
|
||||
}
|
||||
|
||||
public function resitbelumansurans($id)
|
||||
|
||||
@@ -82,7 +82,8 @@ class PenebusanController extends Controller
|
||||
|
||||
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->put(config('api.url').'/api/gadaikaunter/'. $request->kodcaw .'/norujukan/' . $request->norujukan,[
|
||||
'bayaran' => $request->bayaran,
|
||||
'teller' => $request->teller
|
||||
'teller' => $request->teller,
|
||||
'nowakil' => $request->nowakil
|
||||
])->json();
|
||||
|
||||
$getTunai2=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/GetCurrentTunai/'.$request->kodcaw,['kodlaluan' => $request->teller])->json();
|
||||
|
||||
@@ -31,10 +31,10 @@ class NoHttpCache
|
||||
/**
|
||||
* @var $headers \Symfony\Component\HttpFoundation\HeaderBag
|
||||
*/
|
||||
$response->header('Pragma', 'no-cache');
|
||||
$response->header('Expires', 'Fri, 01 Jan 1990 00:00:00 GMT');
|
||||
$response->header('Cache-Control', 'no-cache, must-revalidate, no-store, max-age=0, private');
|
||||
$response->headers->set('Pragma', 'no-cache');
|
||||
$response->headers->set('Expires', 'Fri, 01 Jan 1990 00:00:00 GMT');
|
||||
$response->headers->set('Cache-Control', 'no-cache, must-revalidate, no-store, max-age=0, private');
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user