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