@props([ 'position', 'title', 'value', 'trend' => null, 'trendPeriod' => null, 'trendColor' => 'green', 'animationDelay' => '0' ]) @php // Position classes mapping $positionClasses = [ 'bottom-left' => '-bottom-10 -left-10', 'bottom-right' => '-bottom-10 -right-10', 'top-left' => '-top-8 -left-8', 'top-right' => '-top-8 -right-8', ]; $positionClass = $positionClasses[$position] ?? ''; $trendColorClass = "text-{$trendColor}-500"; @endphp

{{ $title }}

{{ $value }}

@if($trend)
{{ $trend }} @if($trendPeriod) {{ $trendPeriod }} @endif
@endif