- return app('redirect')->to($to, $status, $headers, $secure);
-}
-
-function icon($name, $attrs = [])
-{
- $iconPath = resource_path('assets/icons/' . $name . '.svg');
- $attrString = ' ';
- foreach ($attrs as $attrName => $attr) {
- $attrString .= $attrName . '="' . $attr . '" ';
+ if ($themeIconPath && file_exists($themeIconPath)) {
+ $iconPath = $themeIconPath;
+ } elseif (!file_exists($iconPath)) {
+ return '';