add laporan skit2

This commit is contained in:
fifi97
2021-08-23 10:16:38 +08:00
parent d78dcd707e
commit 59a3c012b3
6 changed files with 266 additions and 11 deletions
+7 -7
View File
@@ -349,13 +349,13 @@ class GadaianController extends Controller
// if(sizeof($customers_info) != 0)
// $customers_info = $customers_info[0];
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
// dd($wakil);
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
if($penebusan['nowakil'])
{
$wakil = Http::get(config('api.url') . '/api/getwakil/' . $auth_user['cawangan'] . '/code/' . $penebusan['nowakil'])->json();
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
}
return view('print.resitansuran',compact('transaction','gadai','customers_info','wakil'));
}