/** * Show the form for editing the specified resource. * * @return Response */ public function index() { $setting = setting(); $currencies = Country::distinct()->where('currency', '<>', '')->groupBy('currency')->lists('currency')->toArray(); $languages = $this->getLanguages(); return view_backend('setting.index', compact('setting', 'currencies', 'languages')); }
/** * 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')); }