fix gadaian marhun

This commit is contained in:
Zakwan Hamdan
2020-11-02 16:08:34 +08:00
parent ac9c0b94cf
commit 4e23c1fc78
9 changed files with 237 additions and 45 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class CustomersController extends Controller
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$customers_info = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
if(sizeof($customers_info)!= 0){
if($customers_info){
$customer_info = $customers_info[0];
}else{
$customer_info = $customers_info;
+1 -1
View File
@@ -18,7 +18,7 @@ class HargaEmasController extends Controller
public function index(){
$auth_user = Auth::user();
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$harga_emas = HargaEmas::all();
$harga_emas = Http::get(config('api.url') . '/api/harga_emas')->json();
return view('harga_emas.index',compact('harga_emas','cawangan_info'));
}
}