'svg-icon', 'data-icon' => $this->name, 'role' => 'presentation', ], $this->attrs); $attrString = ' '; foreach ($attrs as $attrName => $attr) { $attrString .= $attrName . '="' . $attr . '" '; } $defaultIconPath = resource_path('icons/' . $this->name . '.svg'); $iconPath = Theme::findFirstFile("icons/{$this->name}.svg") ?? $defaultIconPath; if (!file_exists($iconPath)) { return ''; } $fileContents = file_get_contents($iconPath); return str_replace('