{% load i18n humanize %} {% load industry_tags %} {% if perms.industry_reforged.industrialist_access or perms.industry_reforged.corp_access %}

{% trans "Required Raw Materials" %}

{% for mat in bom_materials %} {% empty %} {% endfor %}
{% trans "Material" %} {% trans "Base (ME0)" %} {% trans "Required" %} {% trans "Unit Cost" %} {% trans "Total Cost" %}
{{ mat.name }} {{ mat.name }}
{% if mat.base_quantity and mat.base_quantity > mat.quantity %} {{ mat.base_quantity|intcomma }} {% else %} {{ mat.quantity|intcomma }} {% endif %} {{ mat.quantity|intcomma }} {% if mat.savings > 0 %}
-{{ mat.savings|intcomma }} {% endif %}
{% if mat.original_jita_price > mat.price_per_unit %} {{ mat.original_jita_price|eve_isk }}
{% elif mat.original_jita_price < mat.price_per_unit and mat.original_jita_price > 0 %} {{ mat.original_jita_price|eve_isk }}
{% endif %} {{ mat.price_per_unit|eve_isk }}
{{ mat.total_price|eve_isk }}
No materials required or failed to load SDE data.
{% trans "Original Jita Price (Est.):" %} {{ original_price|eve_isk }}
{% trans "Estimated Total Materials Cost:" %} {{ total_bom_price|eve_isk }}
{% endif %} {% if perms.industry_reforged.industrialist_access or perms.industry_reforged.corp_access %}

{% trans "Recursive Production Tree" %}

{% trans "Processing Tree..." %}
{% if recursive_bom_tree %} {% for root_node in recursive_bom_tree %}
{% include "industry_reforged/partials/bom_tree_node.html" with node=root_node prefix=forloop.counter|stringformat:"s" %}
{% endfor %} {% else %}

{% trans "No production tree available." %}

{% endif %}
{% endif %} {% if perms.industry_reforged.corp_access and request.htmx %} {% trans "BOM Cost:" %} {{ total_bom_price|eve_isk_short }} {% endif %}