This commit is contained in:
Afiq
2022-03-30 09:02:38 +08:00
parent 9830185b48
commit 458028fb51
2 changed files with 183 additions and 11 deletions
+8 -1
View File
@@ -311,13 +311,20 @@ class GadaianController extends Controller
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/marhun/'. $norujukan)->json();
$marhun_detail = $marhun[0];
$mutu = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/marhun/mutu/sag',[
'kodcaw' => $auth_user['cawangan'],
'norujukan' => $norujukan
])->json();
// dd($mutu);
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/detail/'. $auth_user['cawangan'])->json();
$cawangan_detail = $cawangan[0];
$pembayaran_segera = "https://spare.arrahn.com.my/pembayaransegera";
return view('print.sag',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username'));
return view('print.sag',compact('gadai_detail','customer_detail','marhun_detail','cawangan_detail','api_url','pembayaran_segera','auth_username','mutu'));
}
public function resit($id)