Advertisement
illusionist3886

Untitled

Nov 14th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. public function get_doctors_serial_list($id)
  2. {
  3. $locale = session('locale');
  4. app()->setLocale($locale);
  5.  
  6. if('en' == $locale)
  7. $drcategory = DoctorCategory::orderBy('speciality', 'asc')->get();
  8. if('bn' == $locale)
  9. $drcategory = DoctorCategoryBangla::orderBy('speciality', 'asc')->get();
  10.  
  11. if('en' == $locale)
  12. $locations = Location::get();
  13. if('bn' == $locale)
  14. $locations = LocationBangla::get();
  15. $today = Carbon\Carbon::today()->format('Y-m-d');
  16. $getSerialList = DoctorSerial::with('userdata')->where('dr_id', $id)->where('date','>=', $today)->orderBy('date', 'desc')->get();
  17.  
  18. return view('visitor.get-doctor-serial', compact('drcategory', 'locations', 'locale','getSerialList'));
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement