/** * Display a listing of the rejected ads. * * @return Response */ public function getRejectedList() { $ads = Ad::whereRaw('uid = ? and status = ?', [Auth::user()->id, 2])->orderBy('created_at', 'desc')->paginate(10); return view('user.ad.rejectedlist')->withAds($ads); }
/** * Display a listing of the rejected ads. * * @return Response */ public function getRejectedList() { $ads = Ad::whereRaw('status = ?', [2])->orderBy('created_at', 'desc')->paginate(10); return view('admin.ad.rejectedlist')->withAds($ads); }