Example #1
0
 public static function DiceGame($name, $coinCode)
 {
     $wallet_address = strtolower(strtolower($coinCode)) . "_wallet_address";
     $data['banner'] = URL::to('public/images/' . strtolower($coinCode) . '.png');
     $data['balance'] = User::Balance($coinCode);
     $data['coin'] = $coinCode;
     $data['title'] = $name;
     if ($coinCode == 'BTC') {
         $data['bankRoll'] = Bitcoin::CurrentPot();
     } else {
         if ($coinCode == 'AUR') {
             $data['bankRoll'] = Auroracoin::CurrentPot();
         }
     }
     if (!Auth::guest() && !Auth::user()->{$wallet_address}) {
         //$data['alert'] = "You currently don't have a wallet!!<br> Go to your <a href='account'>account</a> to make one.";
     }
     if (Session::get('alert')) {
         $data['alert'] = Session::get('alert');
     }
     return $data;
 }