@php $categoryImageName = $category->image ?? ''; $translations = parse_translation($category); @endphp
@if ($categoryImageName && fileExists('lms/categories', $categoryImageName) == true) Category icon @elseif($category->icon_id)
{!! $category?->icon?->icon ?? '' !!}
@else @endif
{{ str_limit( $translations['title'] ?? $category->title, 20) }}

{{ $category->courses->count() > 0 ? $category->courses->count() . '+ ' . translate('Course') : $category->courses->count() ?? 0 }} {{ translate('Available') }}

{{ translate('View Category') }}