make($view, $data, $mergeData); } } if (! function_exists('stylist_theme_view')) { function stylist_theme_view(string $theme, string $view, array $data = [], array $mergeData = []): View { return app(ThemeViewResolver::class)->makeForTheme($theme, $view, $data, $mergeData); } } if (! function_exists('stylist_frontend_view')) { function stylist_frontend_view(string $view, array $data = [], array $mergeData = []): View { return app(ThemeViewResolver::class)->makeForTheme(stylist()->frontend()->key(), $view, $data, $mergeData); } } if (! function_exists('stylist_backend_view')) { function stylist_backend_view(string $view, array $data = [], array $mergeData = []): View { return app(ThemeViewResolver::class)->makeForTheme(stylist()->backend()->key(), $view, $data, $mergeData); } } if (! function_exists('theme_asset')) { function theme_asset(string $path): string { return app(UrlGenerator::class)->asset($path); } } if (! function_exists('theme_switcher')) { function theme_switcher(): HtmlString { return stylist_html()->switcher(); } }