@extends('frontend.layouts.app') @php $ch = curl_init(); $endpoint="http://slotgreator-env.eba-5q442pmn.ap-southeast-1.elasticbeanstalk.com/getbalancetas/".Auth::user()->id; curl_setopt($ch,CURLOPT_URL,$endpoint); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); $output=curl_exec($ch); curl_close($ch); $output=json_decode($output); $tas_balance=$output->amount; @endphp