reuse form
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
@props(['name', 'class' => ''])
|
||||
@php
|
||||
$svgPath = public_path('assets/icons/' . $name . '.svg');
|
||||
@endphp
|
||||
<span {{ $attributes->merge(['class' => $class]) }} role="img" aria-hidden="true">
|
||||
{!! file_get_contents($svgPath) !!}
|
||||
</span>
|
||||
Reference in New Issue
Block a user