Ejemplo n.º 1
0
 public function getRegionsId($id_region, PublicServiceRepository $gestion)
 {
     $agent = new Agent();
     $desk = $device = $agent->isMobile();
     if ($desk == 1) {
         $desk = "mobile";
     } else {
         $desk = "desk";
     }
     Session::put('device', $desk);
     $provincias = $gestion->getRegionDetails($id_region);
     $imagenes = $gestion->getImageporRegion($id_region);
     return view('public_page.front.allRegions')->with('provincias', $provincias)->with('imagenes', $imagenes)->with('region', $id_region);
 }