akaunting 3.0 (the last dance)
This commit is contained in:
19
resources/views/components/icon.blade.php
Normal file
19
resources/views/components/icon.blade.php
Normal file
@ -0,0 +1,19 @@
|
||||
@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([
|
||||
'material-icons-outlined' => (! $filled && ! $rounded),
|
||||
$class,
|
||||
'material-icons' => $filled,
|
||||
'material-icons-round' => $rounded,
|
||||
])
|
||||
{{ $attributes }}
|
||||
>{{ $icon }}</span>
|
||||
@endif
|
Reference in New Issue
Block a user