/** * Display a listing of the resource. * * @return Response */ public function index() { $gateways = Gateway::paginate(10); $currencies = Country::distinct()->where('currency', '<>', '')->groupBy('currency')->lists('currency')->toArray(); return view_backend('gateway.index', compact('gateways', 'currencies')); }