@props(['name' => 'shield-check', 'class' => 'h-6 w-6']) @php $iconName = 'heroicon-o-' . $name; try { $html = svg($iconName, $class)->toHtml(); } catch (\Throwable $e) { $html = svg('heroicon-o-sparkles', $class)->toHtml(); } @endphp {!! $html !!}