public function index() { $coupon = Coupon::all(); return view('admin.coupon.index', ['data' => $coupon]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return view('backoffice.coupon.index', ['items' => Coupon::all()]); }