/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $cargos = Cargo::getListCargos();
     $departamentos = Departamento::getListDeptos();
     $ramas = RamaEjecutiva::getListRamas();
     $this->layout->title = 'Editar patrocinador';
     $this->layout->titulo = 'Mantenimiento';
     $patrocinador = Patrocinador::find($id);
     $this->layout->nest('content', 'patrocinadores.edit', array('patrocinador' => $patrocinador, 'cargos' => $cargos, 'departamentos' => $departamentos, 'ramas' => $ramas));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $cargos = Cargo::getListCargos();
     $departamentos = Departamento::getListDeptos();
     $ramas = RamaEjecutiva::getListRamas();
     $this->layout->title = 'Editar empleado';
     $this->layout->titulo = 'Mantenimiento';
     $empleado = Empleado::find($id);
     $this->layout->nest('content', 'empleados.edit', array('empleado' => $empleado, 'cargos' => $cargos, 'departamentos' => $departamentos, 'ramas' => $ramas));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $cargos = Cargo::getListCargos();
     $departamentos = Departamento::getListDeptos();
     $ramas = RamaEjecutiva::getListRamas();
     $this->layout->title = 'Editar gerente';
     $this->layout->titulo = 'Mantenimiento';
     $gerente = Gerente::find($id);
     $this->layout->nest('content', 'gerentes.edit', array('gerente' => $gerente, 'cargos' => $cargos, 'departamentos' => $departamentos, 'ramas' => $ramas));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $rama = RamaEjecutiva::find($id);
     $rama->delete();
     Session::flash('message', 'Registro eliminado satisfactoriamente!');
     return Redirect::to('ramas');
 }