@props([ 'title' => null, 'value' => null, 'icon' => null, 'href' => null, ]) @php $wrapperClass = 'rounded-2xl border border-gray-100 bg-white p-6 shadow-sm transition-all duration-300 hover:shadow-md hover:-translate-y-0.5'; if ($href) $wrapperClass .= ' block'; @endphp @if($href) @else
merge(['class' => $wrapperClass]) }}> @endif
@if($title)

{{ $title }}

@endif @if($value !== null)

{{ $value }}

@endif {{ $slot }}
@if($icon) {!! $icon !!} @endif
@if($href)
@else
@endif