Esempio n. 1
0
 public function spa(Request $request)
 {
     $therapies_data = Therapies::get();
     return view('ayurvedic_therapies', array('therapies' => $therapies_data));
 }
 public function therapyLoad()
 {
     //  clearstatcache();
     try {
         //Get all therapies
         $therapy_ob = Therapies::get();
         // return view('costomize_home_views.home1');
         $HTMLView = (string) view('costomize_home_views.Therapies')->with(['therapy' => $therapy_ob]);
         $res['page'] = $HTMLView;
         return response()->json($res);
     } catch (Exception $e) {
         $HTMLView = (string) view('errors.adminError');
         $res['page'] = $HTMLView;
         return response()->json($res);
     }
 }