@props([ 'route' => '', 'url' => '', 'href' => null, 'height' => '10rem', 'label' => '', 'icon' => '', 'click' => null, 'color' => 'light' ]) @php if ($route) $href = route($route); else if ($url) $href = url($url); $attributes = $attributes->class([ 'alert alert-dashed p-0 br-2 tw-bg-blue-gray-50', 'alert-'.$color, 'd-flex align-items-center justify-center flex-column', 'cursor-pointer' => !$href, ])->merge([ 'href' => $href, 'wire:click.prevent' => $click, ]); @endphp @if($href) @if($icon)
@endif
{{ $label }}
@if($href)
@else @endif