@if($sizeClasses['is_pill'])
@if($category->image)
@php
$catImg = $category->image;
$catImgUrl = (Str::startsWith($catImg, ['http://', 'https://'])) ? $catImg : Storage::url($catImg);
@endphp

@else
{{ $category->icon ?? '📦' }}
@endif
{{ $category->name }}
{{ $category->products_count }} PRODUCTS
@else
@if($category->image)
 }})
@else
{{ $category->icon ?? '📦' }}
@endif
@endif