public function shippingDetails() { $userID = Session::get('loggedinUserId'); $addresses = Address::where('user_id', '=', $userID)->get(); $country = Country::all(); $state = State::all(); return view(Config('constants.frontendCheckoutView') . '.shipping', compact('country', 'state', 'addresses')); }
public function allState() { $response = array(); $infos = State::all(); if (!empty($infos)) { foreach ($infos as $info) { $response[] = array("info_id" => $info['id'], "data_description" => $info['state']); } } return $response; }
private function addEditVendorView($id) { $data = array(); $vendor = Vendor::find($id); if ($vendor) { $data["vendor"] = $vendor; } $states = State::all(); if (count($states) > 0) { $data["states"] = $states; } $benefit_types = $this->getBenefitType(); if (count($benefit_types) > 0) { $data["benefit_types"] = $benefit_types; } return view('index', $data)->with('page', 'vendor_create_edit'); }
private function addEditView($id) { $data = array(); $benefit_type = BenefitType::all(); if (count($benefit_type) > 0) { $data["benefit_type"] = $benefit_type; } $vendors = Vendor::all(); if (count($vendors) > 0) { $data["vendors"] = $vendors; } $state = State::all(); if (count($state) > 0) { $data["states"] = $state; } $benefit = Benefit::find($id); if ($benefit) { $data["benefit"] = $benefit; $documents = $benefit->documents; if (count($documents) > 0) { $data["documents"] = $documents; } } return view('index', $data)->with('page', 'benefit_create_edit'); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $states = State::all(); return view('solo.states.index', compact('states')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { return view('index')->with('page', 'client_create_edit')->with('client', Client::find($id))->with('states', State::all()); }
public function myProfile() { $userId = Session::get('loggedinUserId'); $userDetails = User::where('id', "=", $userId)->get()->toArray(); $country = Country::all(); $state = State::all(); return view(Config('constants.frontendLoginView') . '.myprofile', compact('userDetails', 'country', 'state')); }