/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     // 先检测优惠券的id是否合法,是否该车厂所属
     $brands = BrandLimit::lists('brand_name', 'brand_id');
     $coupon = Coupon::findOrFail($id);
     return view('back.coupon.manage.edit', compact('coupon', 'brands'));
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $coupon = Coupon::findorFail($id);
     $brands = BrandLimit::lists('brand_name', 'brand_id');
     return view('back.coupon.check.show', compact('coupon', 'brands'));
 }
Exemplo n.º 3
0
 public function createCoupon($id)
 {
     $garage = Garage::findOrFail($id);
     $garage_id = $id;
     $admin_id = $garage->admin_id;
     $brands = BrandLimit::lists('brand_name', 'brand_id');
     return view('back.test.garage.create_coupon', compact('garage_id', 'admin_id', 'brands'));
 }