@if (loading()) {

{{ 'subcategories.loading' | translate }}

} @if (error()) {

{{ error() }}

} @if (!loading() && !error()) {

{{ parentName() }}

@if (nestedSubcategories().length > 0) {
@for (sub of nestedSubcategories(); track trackBySubId($index, sub)) { @if (getSubcategoryRouteId(sub) !== null) { } else { } }
} @if (subcategories().length > 0) {
@for (cat of subcategories(); track trackByCategoryId($index, cat)) {
@if (cat.icon) { } @else {
{{ categoryName(cat).charAt(0) }}
}

{{ categoryName(cat) }}

}
} @if (categoryItems().length > 0) {

{{ 'subcategories.itemsInCategory' | translate }}

} @if (!hasSubcategories() && categoryItems().length === 0) {

{{ 'subcategories.emptyTitle' | translate }}

{{ 'subcategories.emptyDesc' | translate }}

{{ 'subcategories.goHome' | translate }}
} }