{% extends "layouts/panel.html" %} {% load i18n shop_ui %} {% load ravix_ui %} {% block title %}{% trans "Products" %}{% endblock %} {% block page_title %}{% trans "Products" %}{% endblock %} {% block content %}

{% trans "Products" %}

{% blocktrans trimmed with name=site_obj.name %}Site: {{ name }}{% endblocktrans %}

{% icon "plus" 18 %} {% trans "New product" %}
{% if low_total %}

{% blocktrans trimmed with count=low_total|fa_digits %}{{ count }} product(s) are at or below their low-stock threshold.{% endblocktrans %} {% trans "Show them" %}

{% endif %} {% if page_obj %}
{% for p in page_obj %}{% endfor %}
{% trans "Name" %}{% trans "SKU" %}{% trans "Price" %}{% trans "Stock" %}{% trans "Status" %}
{{ p.name }}{% if p.is_variable %} {% blocktrans trimmed with count=p.variant_count|fa_digits %}{{ count }} variants{% endblocktrans %}{% endif %}{{ p.sku|default:"—" }}{% price p.price %}{% if p.is_variable %}—{% else %}{{ p.stock|fa_digits }}{% if p.out_flag %} {% trans "Out of stock" %}{% elif p.low_flag %} {% trans "Low stock" %}{% endif %}{% endif %} {% if p.is_active %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %} {% trans "Edit" %}
{% csrf_token %}
{% include "partials/_pagination.html" %}{% else %}
{% trans "There is no product." %}
{% endif %}
{% endblock %}