{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{{ bp_name }} - {% trans "Crafting Requirements" %}{% endblock page_title %} {% block extra_css %} {% endblock extra_css %} {% block content %}
{% include "indy_hub/partials/page_header.html" with icon_class="fas fa-tools" title=bp_name subtitle=_("Production workspace") back_url=back_url back_label=_("Back") header_controls=craft_header_controls %}
{% trans "Loading..." %}
{% trans "Preparing simulation workspace" %}

{% trans "We are synchronising materials, production tree and financial data." %}

{% with current_tab=active_tab|default:'materials' %}
{% trans "Blueprints" %}
-
{% trans "Unique Materials" %}
-
{% trans "Est. Profit" %}
-
{% trans "Margin" %}
-
{% trans "Runs" %} {{ num_runs|default:1|intcomma }}
{% trans "Output" %} {{ final_product_qty|default:num_runs|intcomma }}
ME {{ me|default:0 }}
TE {{ te|default:0 }}

{% trans "Production Tree" %}

{% if materials_tree %} {% include "indy_hub/industry/material_tree.html" with materials=materials_tree level=0 %} {% else %}
{% trans "No sub-productions detected for this blueprint." %}
{% endif %}

{% trans "Materials" %}

{% if materials_by_group %} {% for group_id, group in materials_by_group.items %} {% endfor %} {% endif %}
{% trans "Missing Prices" %}

0 {% trans "items are missing price data. Load Fuzzwork prices or enter them manually." %}

{% trans "Total Cost" %} 0 ISK
{% trans "Total Revenue" %} 0 ISK
{% trans "Net Profit" %} 0 ISK
{% trans "Surplus Value" %}
0 ISK
{% trans "Margin" %} 0%

{% trans "Purchase Planner" %}

{% for mat in materials %} {% endfor %}
{% trans "Item" %} {% trans "Qty" %} {% trans "Fuzzwork" %} {% trans "Real Price" %} {% trans "Total Cost" %} {% trans "Margin" %}
{{ mat.type_name }} {{ mat.type_name }}
{{ mat.quantity|intcomma }} 0 -
{% trans 'Final product' %} {% trans "Final product" %}
{{ final_product_qty|default:num_runs|intcomma }} 0 -
{% trans "Total Material Cost" %} 0
{% trans "Total Revenue" %} 0
{% trans "Net Profit" %} 0 (0%)

{% trans "Shopping List" %}

{% trans "Item" %} {% trans "Qty" %} {% trans "Unit Price" %} {% trans "Total" %}
{% trans "Total Shopping Cost" %} 0

{% trans "Optimized profitability by runs" %}

{% trans "Search up to" %} {% trans "runs" %}
{% trans "Open this tab to compute profitability across runs." %}
{% if craft_cycles_summary %}

{% trans "Cycles" %} {{ craft_cycles_summary|length }}

{% if product_type_id and final_product_qty %} {% endif %} {% for type_id, data in craft_cycles_summary.items %} {% endfor %}
{% trans "Item" %} {% trans "Needed" %} {% trans "Per cycle" %} {% trans "Cycles" %} {% trans "Produced" %} {% trans "Surplus" %}
{{ bp_name }}
{{ bp_name }}
{{ final_product_qty|intcomma }} {{ final_product_qty|floatformat:0|intcomma }} {{ num_runs|intcomma }} {{ final_product_qty|intcomma }} 0
{{ data.type_name }} {{ data.type_name }}
{{ data.total_needed|intcomma }} {{ data.produced_per_cycle|intcomma }} {{ data.cycles|intcomma }} {{ data.total_produced|intcomma }} {% if data.surplus > 0 %} +{{ data.surplus|intcomma }} {% elif data.surplus < 0 %} {{ data.surplus|intcomma }} {% else %} 0 {% endif %}
{% else %}
{% trans "No cycles data available." %}
{% endif %}

{% trans "Quick Presets" %}

{% trans "Blueprint Configuration" %}

{% if blueprint_configs_grouped %}
{% for group in blueprint_configs_grouped %}

{{ group.group_name }}

{% for level in group.levels %}
{% for bc in level.blueprints %}
{{ bc.type_name }} {% if bc.user_owns %} {% if bc.is_copy %} COPY OWNED - {{ bc.runs_available|default:"0" }} runs {% else %} ORIGINAL OWNED {% endif %} {% elif bc.shared_copies_available %} {% trans "Available" %} {% else %} {% trans "Not available" %} {% endif %}
{{ bc.type_name }}
{% if not bc.user_owns or bc.is_copy %}
{% if bc.shared_copies_available %}
Copies {{ bc.shared_copies_available|length }}
{% else %}
{% trans "No copies" %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% else %}
{% trans "No child blueprints require configuration tweaks for this item." %}
{% endif %}
{% endwith %}
{% endblock content %} {% block extra_javascript %} {{ blueprint_payload|json_script:"blueprint-payload" }} {% endblock extra_javascript %}