Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function getEdit($id)
 {
     $domain = Domain::find($id);
     foreach (explode(",", str_replace(" ", "", Config::get('settings.available_css'))) as $css) {
         $available_css[$css] = $css;
     }
     $users = array();
     if (Auth::user()->status == 2) {
         foreach (User::whereStatus(3)->get() as $user) {
             $users[$user['id']] = $user['username'];
         }
     }
     return View::make('domain.edit')->with('domain', $domain)->with('available_css', $available_css)->with('users', $users);
 }
Example #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function getEdit($id)
 {
     $gateway = Gateway::find($id);
     $users = array();
     if (Auth::user()->status == 2) {
         foreach (User::whereStatus(3)->get() as $user) {
             $users[$user['id']] = $user['username'];
         }
     }
     return View::make('gateway.edit')->with('gateway', $gateway)->with('users', $users);
 }