public function getAverageOrderTotals(string $startDate, string $endDate, string $country): float 	{ 		return (float) DB::select("select avg(total.average) as total_average 			from (SELECT avg(final_price / 7.5345) as average from orders 			where currency='HRK' 			and 			status=2 			and 			(created_at BETWEEN :from and :to) 			and 			(CASE WHEN :code <> 'ALL' THEN JSON_EXTRACT(invoice_address, '$.country_code')=:country	ELSE TRUE END) 			union 			SELECT avg(final_price) as average 			from orders 			where 			currency='EUR' 			and 			status=2 			and 			(date(convert_tz(created_at, 'UTC', 'Europe/Zagreb')) BETWEEN :from1 and :to1) 			and 			(CASE WHEN :code1 <> 'ALL' THEN JSON_EXTRACT(invoice_address, '$.country_code')=:country1 ELSE TRUE END)) as total", ['from' => $startDate, 'to' => $endDate, 'country' => $country, 'code' => $country, 'from1' => $startDate, 'to1' => $endDate, 'country1' => $country, 'code1' => $country])[0]->total_average; 	}