fix portal
This commit is contained in:
@@ -14,8 +14,14 @@ class BayaranController extends Controller
|
||||
|
||||
$belum_tebus = Http::get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'belum_tebus')->json();
|
||||
|
||||
if(sizeof($belum_tebus) > 0)
|
||||
$belum_tebus = $belum_tebus[0];
|
||||
if(is_array($belum_tebus))
|
||||
{
|
||||
if(sizeof($belum_tebus) > 0)
|
||||
{
|
||||
$belum_tebus = $belum_tebus[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return view('pembayaran.senaraibayaran', compact('belum_tebus'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user