theme ?? app(EmailThemeService::class)->currentThemeKey(); $context = app(EmailThemeRegistry::class)->get($theme)?->context; View::share('mail_theme', $theme); View::share('mail_theme_context', $context !== null ? $context() : []); View::share('mail_attribution', app(Attribution::class)->visible()); return $this->markdown->theme($theme); } }