SHARE
TWEET

Untitled

illusionist3886 Nov 14th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top