@props([ 'icon' => 'ti-chart-bar', 'color' => 'primary', 'title' => '', 'value' => '0', 'trend' => null, // 'up' | 'down' | null 'change' => null, // '+12%' | '-3%' 'href' => null, 'sparkline' => null, // array of numbers for ApexCharts ]) @php $tag = $href ? 'a' : 'div'; @endphp <{{ $tag }} {{ $attributes->merge(['class' => 'card card-sm']) }} @if($href) href="{{ $href }}" style="text-decoration: none;" @endif>
{{ $title }}
{{ $value }}
@if($change)
{{ $change }}
@endif
@if($sparkline)
@endif