<div class="widget widget_links">
    <h4 class="mb-2 ls-1 text-uppercase fw-bold">Kategori</h4>
    <div class="line line-xs line-sports"></div>
    @if ($data->isNotEmpty())
        <ul>
            @foreach ($data as $res)
                <li class="d-flex align-items-center">
                    <a href="{{ route('kategori', ['slug' => $res->slug]) }}" class="flex-fill">{{ $res->nama }}</a>
                    <span class="badge text-light bg-sports">{{ $res->to_post_count }}</span>
                </li>
            @endforeach
        </ul>
    @else
    <span>Belum Ada Data</span>
    @endif
</div>
