public function index() { $title = 'Kortingen'; $now = strtotime('now'); $discounts = Discount::where('from', '<=', $now)->where('to', '>=', $now)->paginate(20); return view('user.discounts.index', compact('title', 'discounts')); }