@php
    $tagObj = new \app\models\Blog();
    $tags = $tagObj->tagsWidget();
@endphp

<div class="p-30 bg-white  dark:bg-card sm:mb-30 mb-20 widget widget_tag_cloud">
    <div class="mb-20 widget-title">
        <h4 class="text-[26px] font-semibold text-secondary dark:text-white title">{{ $args['title'] ?? __('Popular Tags') }}</h4>
    </div>
    <div class="tagcloud flex flex-wrap gap-10">
        @forelse($tags as $tag)
        <a class="inline-block px-18 py-8 bg-black/5 hover:bg-primary dark:hover:text-black dark:text-white dark:bg-white/10" href="{{DzHelper::laraBlogTagLink($tag->id)}}"><span>{{ $tag->title }}</span></a>
        @empty
        @endforelse
    </div>
</div>
