@props([ 'type' => 'img', 'key' => '', 'iconCenter' => false, 'iconSize' => 24, 'iconColor' => 'var(--moniz-primary)', ]) @php $id = $attributes->has('id') ? $attributes->get('id') : str($key)->replace('->', '-'); $style = $attributes->has('style') ? $attributes->get('style') : ''; if ($iconCenter) { $style = $style . 'position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);margin:0;'; } @endphp @pushOnce('styles') @endPushOnce