Ejemplo n.º 1
0
 /**
  * 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'));
 }
Ejemplo n.º 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $customers = Customer::getLists();
     return view('area.create', compact('customers'));
 }