21 lines
583 B
PHP
Raw Permalink Normal View History

2022-06-01 10:15:55 +03:00
@if ($simpleIcons)
<div {{ $attributes->merge(['class' => $class]) }}>
{!! simple_icons($icon) !!}
</div>
@elseif ($custom)
<div {{ $attributes->merge(['class' => $class]) }}>
{!! file_get_contents($icon) !!}
</div>
@else
<span
@class([
2023-04-20 17:42:44 +03:00
'material-icons-outlined' => (! $filled && ! $rounded && ! $sharp),
2022-06-01 10:15:55 +03:00
$class,
'material-icons' => $filled,
'material-icons-round' => $rounded,
2023-04-20 17:42:44 +03:00
'material-icons-sharp'=> $sharp,
2022-06-01 10:15:55 +03:00
])
{{ $attributes }}
>{{ $icon }}</span>
@endif