Esempio n. 1
0
 public static function getCharge()
 {
     if (Auth::check()) {
         $my_res = false;
         foreach (Request::all() as $value) {
             $my_res = (int) $value;
         }
         foreach (\App\Models\Billing::showServices() as $value) {
             $arr2[] = $value;
         }
         return \View::make('billing.charge')->with('title', 'Charge')->with('previous', $my_res)->with('services', array_keys(\App\Models\Billing::showServices()))->with('cost', $arr2);
     } else {
         return Redirect::route('home')->with('message', 'You are not logged in!');
     }
 }