public function edit($id)
 {
     $categoriasQuery = Categoria::where('id', '<>', $id)->get();
     $categoriasDropDown = ['-1' => 'Selecione a categoria principal'] + $categoriasQuery->lists('nome', 'id')->all();
     $categoria = Categoria::findOrNew($id);
     $tiposCategoria = ['-1' => 'Selecione o tipo da categoria'] + TipoEmpresa::lists('tipo', 'id')->all();
     return view('Categoria.Edit')->with('categorias', $categoriasDropDown)->with('categoria', $categoria)->with('tiposCategoria', $tiposCategoria);
 }
 public function create()
 {
     $usuarios = Usuario::lists('nome', 'id');
     $tiposEmpresas = TipoEmpresa::lists('tipo', 'id');
     $planos = Plano::lists('nome', 'id');
     $vendedores = Vendedor::all();
     $vendedoresSelect = array();
     //TODO: Refatorar isso depois
     foreach ($vendedores as $vendedor) {
         $vendedoresSelect[$vendedor->id] = Usuario::find($vendedor->idUsuario)->nome;
     }
     return view('Empresa.Create')->with('usuarios', $usuarios)->with('tiposEmpresas', $tiposEmpresas)->with('planos', $planos)->with('vendedores', $vendedoresSelect);
 }