middleware( function ($request, $next) { app('view')->share('mainTitleIcon', 'fa-exchange'); app('view')->share('title', (string) trans('firefly.header_exchange_rates')); return $next($request); } ); } public function index(): View { return view('exchange-rates.index'); } public function rates(TransactionCurrency $from, TransactionCurrency $to): View { return view('exchange-rates.rates', compact('from', 'to')); } }