@if (dashboardStats) { }
{{ 'adminProducts.viewTable' | translate }} {{ 'adminProducts.viewGrid' | translate }}
{{ 'adminProducts.densityComfortable' | translate }} {{ 'adminProducts.densityCompact' | translate }}
{{ 'adminProducts.columns' | translate }} {{ 'adminProducts.create' | translate }}
@if (columnsPanelOpen()) { @for (column of allColumns; track column) { } } @if (selectedIds.length > 0) {
{{ selectedIds.length }} {{ 'adminProducts.selectedCount' | translate }} {{ 'adminProducts.bulkShow' | translate }} {{ 'adminProducts.bulkHide' | translate }} {{ 'adminProducts.bulkAssignCategory' | translate }} {{ 'adminProducts.bulkAssignTags' | translate }} {{ 'adminProducts.bulkDuplicateAction' | translate }} {{ 'adminProducts.bulkExportAction' | translate }} {{ 'adminProducts.bulkDelete' | translate }}
} @if (loading) {
@for (i of [1,2,3,4,5]; track i) { } {{ 'common.loading' | translate }}
} @else if (error) { } @else if (products.length === 0) { {{ 'adminProducts.create' | translate }}

{{ 'adminProducts.emptyGuide' | translate }}

} @else if (viewMode === 'table') { {{ 'adminProducts.name' | translate }} @if (isColumnVisible('sku')) { {{ 'backoffice.sku' | translate }} } @if (isColumnVisible('brand')) { {{ 'adminProducts.brand' | translate }} } @if (isColumnVisible('price')) { {{ 'backoffice.price' | translate }} } @if (isColumnVisible('stock')) { {{ 'adminProducts.stockStatus' | translate }} } @if (isColumnVisible('visibility')) { {{ 'adminProducts.visibility' | translate }} } {{ 'adminProducts.healthColumn' | translate }} {{ 'adminProducts.actions' | translate }} @for (product of products; track product.id) { {{ product.name }} @if (isColumnVisible('sku')) { {{ product.sku }} } @if (isColumnVisible('brand')) { {{ product.brand }} } @if (isColumnVisible('price')) { {{ product.price }} {{ product.currency }} } @if (isColumnVisible('stock')) { {{ ('adminProducts.' + (product.stockStatus === 'out_of_stock' ? 'outOfStock' : product.stockStatus === 'low_stock' ? 'lowStock' : 'inStock')) | translate }} } @if (isColumnVisible('visibility')) { {{ product.visible ? ('adminProducts.visible' | translate) : ('adminProducts.hidden' | translate) }} } {{ 'adminProducts.edit' | translate }} {{ 'adminProducts.duplicate' | translate }} @if (product.archived) { {{ 'adminCategories.restore' | translate }} } @else { {{ 'adminProducts.archive' | translate }} } {{ 'adminProducts.delete' | translate }} } } @else {
@for (product of products; track product.id) { @if (product.media.images[0] || product.media.gallery[0]) { } @else {
{{ 'adminProducts.noImage' | translate }}
}

{{ product.name }}

{{ product.price }} {{ product.currency }}

{{ product.visible ? ('adminProducts.visible' | translate) : ('adminProducts.hidden' | translate) }}
{{ 'adminProducts.edit' | translate }} {{ 'adminProducts.duplicate' | translate }} {{ 'adminProducts.delete' | translate }}
}
} @if (products.length > 0) {
{{ products.length }} / {{ total }} {{ 'adminProducts.items' | translate }} @if (infiniteScroll) { @if (products.length < total) { {{ 'adminProducts.loadMore' | translate }} } } @else { }
}
{{ 'mediaLibrary.cancel' | translate }} {{ 'mediaLibrary.confirm' | translate }}
{{ 'mediaLibrary.cancel' | translate }} {{ 'mediaLibrary.confirm' | translate }}