/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     if (!check_admin_auth()) {
         return Redirect::action('SessionsController@create');
     }
     $role = check_admin_auth();
     $companies = Company::get(['id', 'fancy_name']);
     $providers = Provider::get(['id', 'fancy_name']);
     return View::make('registrations.create', compact('role', 'providers', 'companies'));
 }
 /**
  * Show the form for editing the specified resource.
  * GET /adminsprovider/{id}/edit
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $provider = Provider::find($id);
     $role = check_admin_auth();
     return View::make('providers.edit', compact('role', 'provider'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $company = Company::find($id);
     $role = check_admin_auth();
     return View::make('companies.edit', compact('role', 'company'));
 }