public function edit($id) { $aux = \App\Type::all(); $types = $this->getTypes($aux); $ingredient = Ingredient::find($id); return view('ingredient.edit', ['ingredient' => $ingredient, 'types' => $types]); }
public function index() { View::share(['title' => 'Product management', 'sideBar' => NavigatorHelper::getSideBarBE()]); $type = Type::all(['id', 'name'])->toArray(); $format = Format_cd::all(['id', 'name'])->toArray(); $price_groups = Price_group::all(['id', 'name', 'root_price', 'price'])->toArray(); return view('catalog.product.list')->with(['type' => $type, 'format' => $format, 'price_groups' => $price_groups]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $user = Auth::user(); $aboutUs = About::first(); $gallery = Image::all(); $tipe = Type::all(); return view('admin.about', compact('user', 'aboutUs', 'gallery')); }
public function getList() { $vehicules = Vehicule::all(); $membres = User::all(); $modeles = Modele::all(); $types = Type::all(); return view('backoffice.vehicules', compact("vehicules", "membres", "modeles", "types")); }
public function addProduct() { $page = 'partials.admin-addProduct'; $users = User::all(); $types = Type::all(); $brands = Brand::all(); return view('quantri/admin', compact('page', 'users', 'brands', 'types')); }
public static function getTypeList() { $types = Type::all('id', 'name'); $typeList = array(); $typeList = array_add($typeList, "", "Jenis Barang"); foreach ($types as $type) { $typeList = array_add($typeList, $type->id, $type->name); } return $typeList; }
public function create() { $types = Type::all('id', 'name'); $typeList = Item::getTypeList(); if (count($typeList) < 2) { return redirect()->action('TypeController@index')->with('message', 'Anda belum memasukan data jenis produk'); } else { return view('item.create', compact('typeList')); } }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $types = Type::all(); $marques = Marque::all(); $modeles = Modele::all(); $couleurs = Couleur::all(); $vehicule = Vehicule::find($id); $idMarque = DB::table('modele')->join('marque', 'marque.marque_id', '=', 'modele.marque_id')->select('marque.marque_id')->where('modele.modele_id', $vehicule->modele_id)->get()[0]->marque_id; $idType = DB::table('marque')->join('type', 'type.type_id', '=', 'marque.type_id')->select('type.type_id')->where('marque.marque_id', $idMarque)->get()[0]->type_id; return view('dashboard.profile.vehicule.edit_car', ['types' => $types, 'marques' => $marques, 'marqueCourante' => $idMarque, 'modeles' => $modeles, 'typeCourant' => $idType, 'couleurs' => $couleurs, 'vehicule' => $vehicule]); }
public function getVote(Request $request, $id) { $vote = Vote::find($id); if ($vote->is_active) { $nominations = $vote->nominations; $types = Type::all(); $voted = Voter::where('vote_id', '=', $id)->where('ip', '=', sprintf('%u', ip2long($request->ip())))->count(); return view('templates.' . $vote->template->slug, ['title' => $vote->title, 'vote' => $vote, 'nominations' => $nominations, 'types' => $types, 'voted' => $voted]); } else { return redirect('/'); } }
public function edit($id) { $product = Product::find($id); $colors = Color::all(); $types = Type::all(); $selectedColors = $product->colors; $selectedType = $product->FK_type; foreach ($selectedColors as $color) { $arSelectedColors[] = $color->id; } return view('clothes.edit')->withProduct($product)->withTypes($types)->withColors($colors)->with('selectedColors', $arSelectedColors)->with('selectedType', $selectedType); }
public function show($id) { if ($id == 0) { $ingredients = Ingredient::all(); foreach ($ingredients as $key => $item) { $ingredients[$key]['type'] = \App\Type::find($item->type_id); } return response()->json(['ingredients' => $ingredients]); } else { $aux = \App\Type::all(); $types = $this->getTypes($aux); $ingredient = Ingredient::find($id); return response()->json(['ingredient' => $ingredient, 'types' => $types]); } }
/** * Bootstrap any application services. * * @return void */ public function boot() { view()->composer('*', function ($view) { $maxPrice = Product::orderBy('price', 'DESC')->first()->price; $minPrice = Product::orderBy('price', 'ASC')->first()->price; $colors = Color::all(); $types = Type::all(); $heartBag = User::getHeartBag(); if (Auth::check()) { $view->with('bagContent', Auth::user()->bags->where('inBag', 1))->with('colors', $colors)->with('types', $types)->with('maxPrice', $maxPrice)->with('minPrice', $minPrice)->with('heartBag', $heartBag); } else { $view->with('bagContent', 0)->with('heartBag', 0)->with('minPrice', $minPrice)->with('maxPrice', $maxPrice)->with('colors', $colors)->with('types', $types); } }); }
public function productEdit($id) { $page = 'partials.admin-editProduct'; $users = User::all(); $types = Type::all('type_name', 'id'); $brands = Brand::all('brand_name', 'id'); $product = Product::find($id); return view('quantri/admin', compact('page', 'users', 'product', 'types', 'brands')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $types = Type::all(); return view('usuario.create', compact('types')); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // $types_option = Type::all()->lists('name', 'id'); return view('links.create', compact('types_option')); }
public function index() { $types = Type::all(); return view('type.index', ['types' => $types]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $job = Jobs::find($id); $categories = Category::orderBy('id', 'desc')->get(); $types = Type::all(); return view('jobs.edit')->with('job', $job)->with('categories', $categories)->with('types', $types); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $types = Type::all(); return view('types.index', compact('types')); }
/** * Show the application registration form. * * @return \Illuminate\Http\Response */ public function getRegister() { $datas = Type::all(); return view('auth.register', compact('datas')); }
/** * Fungsi buat tampilin semua data Gallery * terdapat pagination */ public function galleryPage() { $gallery = Gallery::paginate(4); $tipe = Type::all(); return view('FrontEnd.gallery', compact('gallery', 'tipe')); }
/** * */ protected function createOrganizations() { $this->misc['statuses'] = Status::all()->keyBy('name'); $this->misc['opfs'] = Opf::all()->keyBy('name'); $this->misc['cities'] = City::all()->keyBy('name'); $this->misc['types'] = Type::all()->keyBy('name'); foreach ($this->data as $row) { $this->createOrganization($row); } }
/** * Главная страница админки Типов оргонизаций * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function main() { return view('admin.type.main', ['types' => Type::all()]); }
public function bookBooth($id) { if (!$this->adminAuth() && !$this->checkCompanyType()) { return view('errors.404'); } $exhibitioneventId = $id; $checExEv = ExhibitionEvent::find($exhibitioneventId); if (date("Y-m-d H:i:s") > $checExEv->start_time) { return view('errors.404'); } $exhibitors = Exhibitor::all(); $exhibitionevents = ExhibitionEvent::all(); $types = Type::all(); $models = Modeldesign::all(); $spots = Spot::all(); return view('CompanyCP.booths.create', compact('types', 'models', 'exhibitors', 'exhibitionevents', 'exhibitioneventId', 'spots')); }
public function wishlist($id) { $page = 'partials.profile-wishlist'; $items = Wishlist::where('user_id', '=', $id)->get(); $products = Product::all(); $brands = Brand::all(); $types = Type::all(); return view('webcontent/profile', compact('page', 'items', 'products', 'brands', 'types')); }