{{ 'products.loading' | translate }}
} @else if (error()) {{{ error() | translate }}
} @else {| {{ 'products.image' | translate }} | {{ 'products.name' | translate }}{{ sortIndicator('name') }} | {{ 'products.model' | translate }} | {{ 'products.group' | translate }} | {{ 'products.price' | translate }}{{ sortIndicator('price') }} | @for (w of warehouses(); track w.id) {{{ w.name }} | }{{ 'products.totalStock' | translate }}{{ sortIndicator('stock') }} | |
|---|---|---|---|---|---|---|---|
|
@if (p.primaryImageUrl) {
—
}
|
{{ p.name }}
{{ p.slug }}
@if (!p.isActive) {
{{ 'products.inactive' | translate }}
}
|
{{ p.model || '—' }} | @if (groupNames(p.productGroupId); as names) { {{ names | localizedText }} } @else { — } | {{ p.basePrice | i18nCurrency }} | @for (w of warehouses(); track w.id) {{{ warehouseQty(p, w.id) }} | }{{ p.totalStock }} @if (p.reservedStock > 0) { (-{{ p.reservedStock }}) } | |
| {{ 'products.empty' | translate }} | |||||||
{{ warehouseError() | translate }}
}| {{ 'warehouses.name' | translate }} | {{ 'warehouses.code' | translate }} | {{ 'warehouses.sortOrder' | translate }} | |||||
|---|---|---|---|---|---|---|---|
| {{ w.code }} | } @else { | {{ w.name }} | {{ w.code }} | {{ w.sortOrder }} | } |
| {{ 'groups.name' | translate }} | {{ 'groups.code' | translate }} | {{ 'groups.sortOrder' | translate }} | |
|---|---|---|---|
| {{ g.names | localizedText }} | {{ g.code }} | {{ g.sortOrder }} |