public function getPlantilla($plantilla_id) { $lineas = LineaPlantilla::where('plantilla_id', $plantilla_id)->orderBy('id', 'DESC')->get(); $plantilla = Plantilla::where('id', $plantilla_id)->first(); $restaurante = $plantilla->restaurante; $seccion = $plantilla->seccion; $descripcion = $plantilla->descripcion; $categories = Articulo::all(); return view('plantillas.detalle')->with('plantilla_id', $plantilla_id)->with('restaurante', $restaurante)->with('lineas', $lineas)->with('seccion', $seccion)->with('descripcion', $descripcion)->with('categories', $categories); }