@props([ 'label', 'value' => 0, 'icon' => null, 'url' => null, 'color' => 'primary', 'column' => null, ]) @php $tag = $url ? 'a' : 'div'; $classes = Arr::toCssClasses([ 'text-white d-block rounded position-relative overflow-hidden text-decoration-none', "bg-$color" => !str_contains($color, '#'), ]); Assets::addScripts(['counterup']); @endphp
<{{ $tag }} {{ $attributes->merge([ 'class' => $classes, 'href' => $url, ]) }} @if(str_contains($color, '#')) style="background-color: {{ $color }}" @endif >
{{ $label }}
0
@if($icon) @endif