public function UpdateView() { $school_country = School::groupBy('country')->get(); $settings_value = Settings::all(); $user_data = RegisterUsers::where('email', Auth::user()->email)->get(); $user_details = RegisterDetails::where('account_id', $user_data[0]->id)->get(); return view('general.update', compact('user_details', 'user_data', 'settings_value', 'school_country')); }
public function getSchool(Request $request) { if ($request->type == 'primary') { $type = 0; } elseif ($request->type == 'junior') { $type = 1; } $query_school = School::where('country', $request->id)->where('school_type', $type)->get(); return view('register.get-school', compact('query_school')); }
public function godRegister() { $school_country = School::groupBy('country')->get(); return view('console.godRegister', compact('school_country')); }