@props(['name', 'class' => ''])
@php
    $svgPath = resource_path('assets/icons/' . $name . '.svg');
@endphp
<span {{ $attributes->merge(['class' => $class]) }} role="img" aria-hidden="true">
    {!! file_get_contents($svgPath) !!}
</span>
