/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $store = Store::findOrFail($id); $stores = Store::getLists(); $categories = FormCategory::with(array('secondarybrand' => function ($query) { $query->orderBy('brand'); }))->where('secondary_display', 1)->orderBy('category')->get(); $list = SecondaryDisplayLookup::getLists($id); // dd($list); return view('secondarylookup.edit', compact('stores', 'categories', 'store', 'list')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $lookup = OsaLookup::with('categories')->findOrFail($id); $customers = Customer::getLists(); $regions = Region::getLists(); $distributors = Distributor::getLists(); $templates = AuditTemplate::getLists(); $categories = FormCategory::osaTagging(); $stores = Store::getLists(); return view('osalookup.edit', compact('lookup', 'sostags', 'customers', 'regions', 'distributors', 'templates', 'categories', 'stores')); }