public function CreateAction() { $this->country = Country::select('id', 'name')->orderBy('name', 'desc')->get(); $this->package = Package::select('id', 'title')->orderBy('title', 'asc')->get(); $this->category = $this->__selectCategoryRelatedCountry($this->country); return view('admin.package.package_add', ['country' => $this->country, 'category' => $this->category, 'package' => $this->package]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function EditAction($id) { $this->package_image = Package_image::find($id); $this->package = Package::select('id', 'title')->orderBy('title', 'asc')->get(); return view('admin.package_image.package_image_edit', ['package_image' => $this->package_image, 'package' => $this->package]); }