@props([ 'variant' => 'view', 'href' => null, 'type' => 'button', ]) @php $styles = [ 'view' => 'background:#2563eb', 'save' => 'background:#0d9488', 'compare' => 'background:#f87171', 'official' => 'background:#f87171', 'whatsapp' => 'background:#7c3aed', 'print' => 'background:#0b192c', ]; $bg = $styles[$variant] ?? $styles['view']; @endphp @if ($href) class(['btn-icon-action'])->merge([]) }} style="{{ $bg }}"> {{ $slot }} @else @endif