fix spearuh dan tambah pinjaman
This commit is contained in:
@@ -4498,7 +4498,7 @@ class KhazanahController extends Controller
|
||||
return response($daftarpolis);
|
||||
}
|
||||
|
||||
public function cetakSuratAkuanGadaianHilang(Request $request)
|
||||
public function ulangcetakSuratAkuanGadaianHilang($norujukan)
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
@@ -4506,7 +4506,12 @@ class KhazanahController extends Controller
|
||||
$cawangan = Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
$gadai = Http::get(config('api.url').'/api/gadai/norujukan/'.$norujukan)->json();
|
||||
|
||||
foreach($gadai as $index1=>$gad)
|
||||
$customers = Http::get(config('api.url').'/api/customers/'.$gad[0]['nokp'])->json();
|
||||
|
||||
$polis = Http::get(config('api.url').'/api/polis/get/',['norujukan' => $norujukan,'kodcaw' => $auth_user['cawangan']])->json();
|
||||
|
||||
|
||||
return view('print.suratgadaianhilang', compact('polis','gadai','customers','cawangan_detail','api_url'));
|
||||
|
||||
Reference in New Issue
Block a user