middleware( function ($request, $next) { app('view')->share('mainTitleIcon', 'fa-exchange'); app('view')->share('title', (string) trans('firefly.header_exchange_rates')); return $next($request); } ); if (false === FireflyConfig::get('enable_exchange_rates', config('cer.enabled'))->data) { throw new NotFoundHttpException(); } } public function index(): View { return view('exchange-rates.index'); } public function rates(TransactionCurrency $from, TransactionCurrency $to): View { return view('exchange-rates.rates', ['from' => $from, 'to' => $to]); } }