SHARE
TWEET

Untitled

a guest Jul 21st, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function places(){
  2.  
  3.     $user_id = Session::get('user');
  4.     $partnerstab = User::where('partner_id',$user_id)->with('m1p','m1s')->first();
  5.     $payment = PaymentTerm::where('status', 'Active')->orderby('id')->get();
  6.     $password = DB::table('users')->where('partner_id',$user_id)->first();
  7.  
  8.     $user = User::where('partner_id',$user_id)->first();
  9.     if(Input::get('code')){
  10.         if(Input::get('reftype') == "province"){
  11.             $province = Province::where('cCode', Input::get('code'))->paginate(10);
  12.             if(Request::ajax()){
  13.                 return view('deskpad.systemproperties.places_paging_province',compact('payment','partnerstab','user','province','password'));
  14.             }
  15.             return view('deskpad.systemproperties.places_paging_province',compact('payment','partnerstab','user','province','password'));
  16.         }
  17.         else if(Input::get('reftype') == "city"){
  18.             // sa city ni  dinhi
  19.         }
  20.     }
  21.     else{
  22.         $country = Country::where('status', 'Active')->paginate(10);
  23.         if(Request::ajax()){
  24.             return view('deskpad/systemproperties/places_paging_country', compact('payment','partnerstab','user','country','password'));
  25.         }
  26.         return view('deskpad/systemproperties/places', compact('payment','partnerstab','user','country','password'));
  27.     }
  28. }
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