/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $store = Store::findOrFail($id);
     $distributors = Distributor::getLists();
     $audittemplates = AuditTemplate::getLists();
     $passings = GradeMatrix::getLists();
     $categories = FormCategory::sosTagging();
     $sostags = SosTagging::all();
     $storesos = StoreSosTag::where('store_id', $store->id)->get();
     return view('store.edit', compact('store', 'distributors', 'audittemplates', 'passings', 'categories', 'sostags', 'storesos'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $lookup = SosLookup::with('categories')->findOrFail($id);
     $sostags = SosTagging::all();
     $customers = Customer::getLists();
     $regions = Region::getLists();
     $distributors = Distributor::getLists();
     $templates = AuditTemplate::getLists();
     $categories = FormCategory::sosTagging();
     $stores = Store::getLists();
     return view('soslookup.edit', compact('lookup', 'sostags', 'customers', 'regions', 'distributors', 'templates', 'categories', 'stores'));
 }