/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $zonas = Zona::orderBy('nombre', 'ASC')->get();
     $medicamentos = Medicamentospermisible::orderBy('nombre', 'ASC')->get();
     $farmacias = Farmacia::orderBy('nombre', 'ASC')->get();
     return View::make('usuariosnoregistrado.index')->with('zonas', $zonas)->with('medicamentos', $medicamentos)->with('farmacias', $farmacias);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $farmacia = Farmacia::find(Session::get('farmacia_id'));
     $medicamento = Medicamentospermisible::find($id);
     $farmacia->medicamentospermisibles()->detach($medicamento);
     return Redirect::to('listar');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Medicamentospermisible::destroy($id);
     return Redirect::route('permisible.index');
 }