/**
  * 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'));
 }