<section class="chart-stat {{ $size }}">
    <div id="{{ $element }}" class="small-box bg-{{ $color ?? 'grey' }}">
        <div class="inner">
            <h3>{{ $data ?? [] }}</h3>
            <p>{{ $label }}</p>
        </div>
        <div class="icon">
            <i class="{{ $icon }}"></i>
        </div>
        @if (auth()->user()->hasGroup(['admin', 'manager', 'specialist']) && ! empty($link))
        <a href="{{ $link }}" class="small-box-footer">More info <i class="fa-solid fa-arrow-circle-right"></i></a>
        @endif
        {{ $slot }}
    </div>
</section>
