{% extends 'core/base.html' %} {% load currency_filters %} {% load static %} {% block title %}Products - SwiftPOS{% endblock %} {% block topbar_title %}Inventory - Products{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {% with products=page_obj %}
{% if messages %}{% for message in messages %}
{% if message.tags == 'success' %} {% elif message.tags == 'error' or message.tags == 'danger' %} {% elif message.tags == 'warning' %} {% else %}{% endif %}
{{ message }}
{% endfor %}{% endif %}

Products

{{ page_obj.paginator.count }} product{{ page_obj.paginator.count|pluralize }} total{% if show_hidden == 'true' %} · showing hidden{% endif %}

{% if show_hidden == 'true' %} Show Active {% else %} View Hidden {% endif %} Stock History Add Product
Reset
{% if products %}
{% for product in products %}
{% if product.stock_status == 'in_stock' and not product.is_hidden %} {% elif product.stock_status == 'low_stock' %} {% elif product.is_hidden %} {% else %} {% endif %} {% if product.image %} {{ product.name }} {% else %} {% endif %}
{{ product.name }}
{{ product.sku }} {{ product.category.name|default:"Uncategorized" }} {% if product.is_hidden %} Hidden {% endif %}
Price {% money product.price %}
Stock {{ product.stock_quantity }}
Status {% if product.is_hidden %} Hidden {% elif product.stock_status == 'in_stock' %} In Stock {% elif product.stock_status == 'low_stock' %} Low Stock {% else %} Out of Stock {% endif %}
{% if product.cost_price %}
Cost {% money product.cost_price %}
{% endif %}
{% csrf_token %}
{% endfor %}
{% else %}
No products found

Try adjusting your filters or add your first product.

Add Product
{% endif %} {% if products.has_other_pages %}
Page {{ products.number }} of {{ products.paginator.num_pages }}
{% endif %}
{% endwith %} {% endblock %}