Akaunting/resources/views/components/icon.blade.php

21 lines
583 B
PHP
Raw Normal View History

2022-06-01 07:15:55 +00: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 14:42:44 +00:00
'material-icons-outlined' => (! $filled && ! $rounded && ! $sharp),
2022-06-01 07:15:55 +00:00
$class,
'material-icons' => $filled,
'material-icons-round' => $rounded,
2023-04-20 14:42:44 +00:00
'material-icons-sharp'=> $sharp,
2022-06-01 07:15:55 +00:00
])
{{ $attributes }}
>{{ $icon }}</span>
@endif