get(); } protected function rates2EUR(String $status) { $rates = $this->actual("Y")->mapWithKeys(function ($item) { return [$item['currency'] => $item['rate']]; }); return CountryCode::active("Y")->mapWithKeys(function ($item) use ($rates) { if ($item['currency_code'] == "EUR") return [$item["country_code"] => 1.0]; return [$item["country_code"] => $rates[$item["currency_code"]]]; }); } }