{% extends "industry_reforged/base.html" %} {% load i18n humanize %} {% load industry_tags %} {% block details %}

{% trans "Industrialist Dashboard" %}

{% trans "Leaderboards & History" %} {% include 'industry_reforged/partials/autorefresh_control.html' %}
{% if unauthed_characters %} {% endif %}

{% trans "Message of the Day & Industry Status" %}

{% if motd and motd.message %}

{{ motd.message|linebreaksbr }}

{% trans "Last updated:" %} {{ motd.updated_at|date:"Y-m-d H:i" }}
{% endif %}
{{ dynamic_motd_stats.slogan }}

{% trans "Orders in Production" %}

{{ dynamic_motd_stats.orders_in_production }}

{% trans "Open Job Market" %}

{{ dynamic_motd_stats.open_tasks }}

{% trans "Active Corp Jobs" %}

{{ dynamic_motd_stats.active_jobs }}

{% trans "Value in Progress" %}

{{ dynamic_motd_stats.value_in_progress|eve_isk }}

{% trans "Job Market (Unclaimed)" %}

{% if user_slots %} {{ user_slots.mfg_available }}/{{ user_slots.mfg_total }} {% trans "Mfg Slots" %} {{ user_slots.reaction_available }}/{{ user_slots.reaction_total }} {% trans "Rx Slots" %} {% endif %}
{% csrf_token %}
{% if perms.industry_reforged.corp_access %}
{% csrf_token %}
{% csrf_token %}
{% endif %}
{% for task in unclaimed_tasks %} {% endfor %}
{% trans "Item" %} {% trans "Priority" %} Origin {% trans "Qty" %} {% trans "Reward Value" %} {% trans "Action" %}
0 %}disabled title="{% trans 'Cannot claim until sub-jobs are complete' %}"{% elif not task.buildable %}disabled title="{{ task.missing_skills_text }}"{% endif %}>
{{ task.item_type.name }}
{{ task.activity_name }} {{ task.item_type.name }} {% if task.created_from_blueprint_request %} {{ task.created_from_blueprint_request.requested_runs }} Runs {% endif %} {% if task.released_by_parent_skill_gate %}
{% trans "Released: you can't build the parent item yourself" %} {% endif %}
{% if perms.industry_reforged.corp_access %} {% else %} {% include "industry_reforged/partials/dt_task_priority.html" with task=task %} {% endif %} {% include "industry_reforged/partials/dt_task_origin.html" with task=task %} {{ task.quantity }}
{{ task.builder_reward|eve_isk }}
{% if task.estimated_duration_seconds > 0 %} {{ task.estimated_duration_seconds|format_duration }} {% endif %}
{% if task.is_claimable or task.incomplete_children_count == 0 %} {% if task.buildable %} {% else %} {% endif %} {% endif %} {% if perms.industry_reforged.corp_access %}
{% csrf_token %}
{% endif %}

{% trans "Claimed Jobs" %}

{% csrf_token %}
{% csrf_token %}
{% if perms.industry_reforged.corp_access %}
{% csrf_token %}
{% endif %}
{% trans "Legend:" %} {% trans "Complete" %} = {% trans "Complete single task" %} {% trans "Complete" %} = {% trans "Complete task and auto-complete all sub-tasks" %}
{% for task in my_tasks %} {% endfor %}
{% trans "Item" %} {% trans "Priority" %} Origin {% trans "Qty" %} {% trans "Claimed By" %} {% trans "Reward" %} {% trans "Action" %}
{{ task.item_type.name }}
{{ task.activity_name }} {{ task.item_type.name }} {% if task.created_from_blueprint_request %} {{ task.created_from_blueprint_request.requested_runs }} Runs {% endif %} {% if task.linked_jobs.all %}
{% for link in task.linked_jobs.all %} {% with job=link.character_job|default:link.corporation_job %} {{ job.status|title }} ({{ link.linked_runs }} runs) {% endwith %} {% endfor %}
{% endif %} {% if task.status != 'COMPLETED' and task.order_total_qty and task.order_total_qty > task.quantity %}
Material Progress: {{ task.order_available_qty }} / {{ task.order_total_qty }}
{% endif %} {% if task.eve_delivered_qty > 0 or task.eve_active_qty > 0 %}
EVE Delivered: {{ task.eve_delivered_qty }} / {{ task.quantity }} {% if task.eve_active_qty > 0 %} ({{ task.eve_active_qty }} in progress) {% endif %} {% if task.eve_overdelivered_qty > 0 %} (+{{ task.eve_overdelivered_qty }} extra) {% endif %}
{% endif %} {% if task.spare_stock_qty > 0 %}
{% blocktrans with qty=task.spare_stock_qty %}{{ qty }} spare in stock{% endblocktrans %}
{% endif %}
{% include "industry_reforged/partials/dt_task_priority.html" with task=task %} {% include "industry_reforged/partials/dt_task_origin.html" with task=task %}
{{ task.quantity }}
{% if task.allocated_slots > 1 %} {{ task.allocated_slots }} slots {% endif %}
{{ task.assigned_to.character_name }}
{{ task.builder_reward|eve_isk }}
{% if task.estimated_duration_seconds > 0 %} {{ task.estimated_duration_seconds|format_duration }} {% endif %}
{% csrf_token %}
0 %} onsubmit="return triggerCompleteModal(event, this);" {% endif %}> {% csrf_token %}
{% if perms.industry_reforged.corp_access %}
{% csrf_token %}
{% endif %}
{% if my_tasks %}{% include "industry_reforged/partials/haul_list.html" %}{% endif %} {% if my_waiting %}

{% trans "Waiting on other tasks" %}

{% trans "These inputs are built by their own tasks, so they are not listed as missing materials." %}

{% for b in my_waiting %}
{{ b.item_name }} {% for w in b.waiting %}
{{ w.name }}: {{ w.built|intcomma }}/{{ w.quantity|intcomma }} {% if "IN_PRODUCTION" in w.statuses %}{% trans "in production" %}{% if w.builders %} ยท {{ w.builders|join:", " }}{% endif %}{% elif "UNCLAIMED" in w.statuses %}{% trans "unclaimed" %}{% endif %}
{% endfor %}
{% endfor %}
{% endif %}

{% trans "Missing Materials for My Claimed Jobs" %}

{% if not my_tasks %}

{% trans "You have no claimed jobs right now." %}

{% elif not my_missing_materials_shortage_count %}

{% trans "Corp stock covers everything your claimed jobs still need." %}

{% else %}
{% for mat in my_missing_materials %} {% endfor %}
{% trans "Material" %} {% trans "Corp Stock" %} {% trans "Required" %} {% trans "Shortfall" %}
{{ mat.name }} {{ mat.name }} {{ mat.group_name }}
{{ mat.corp_stock|default:0|intcomma }}{% include "industry_reforged/partials/stock_locations.html" %} {{ mat.quantity|intcomma }} {{ mat.shortfall|intcomma }}
{% endif %}

{% trans "Build Steps" %}

{% regroup my_claimed_summary by activity_name as grouped_summary %} {% for group in grouped_summary %} {% for sum_item in group.list %} {% endfor %} {% empty %} {% endfor %}
{% trans "Item" %} {% trans "To Build" %} {% trans "In Progress" %} {% trans "Completed" %} {% trans "Progress" %}
{{ group.grouper }}
{{ sum_item.item_type_name }}
{{ sum_item.activity_name }} {{ sum_item.item_type_name }}
{{ sum_item.to_build }} {{ sum_item.in_progress }} {{ sum_item.completed }}
{% trans "You have not claimed any production tasks." %}

{% trans "Corporate Jobs Overview" %}

{% for job in corp_active_jobs %} {% endfor %}
{% trans "Product" %} {% trans "Runs" %} {% trans "Status" %} {% trans "Installer" %} {% trans "End Date" %}
{% if job.product_type %}
{{ job.product_type.name }} {{ job.product_type.name }}
{% elif job.blueprint_type %}
{{ job.blueprint_type.name }} {{ job.activity_name }} {{ job.blueprint_type.name }}
{% else %} Unknown {% endif %}
{{ job.runs }} {% if job.product_type and job.expected_output != job.runs %}
({{ job.expected_output }} output) {% endif %}
{% if job.status == 'delivered' %}Delivered{% elif job.is_ready %}Ready{% else %}{{ job.status|title }}{% endif %} {{ job.installer.character_name|default:"Unknown" }} {{ job.end_date|date:"Y-m-d H:i" }}
({{ job.end_date|naturaltime }})

{% trans "My Corporate Jobs" %}

{% for job in my_eve_jobs %} {% endfor %}
{% trans "Product" %} {% trans "Runs" %} {% trans "Status" %} {% trans "Installer" %} {% trans "End Date" %}
{% if job.product_type %}
{{ job.product_type.name }} {{ job.product_type.name }}
{% elif job.blueprint_type %}
{{ job.blueprint_type.name }} {{ job.activity_name }} {{ job.blueprint_type.name }}
{% else %} Unknown {% endif %}
{{ job.runs }} {% if job.product_type and job.expected_output != job.runs %}
({{ job.expected_output }} output) {% endif %}
{% if job.status == 'delivered' %}Delivered{% elif job.is_ready %}Ready{% else %}{{ job.status|title }}{% endif %} {{ job.installer.character_name|default:"Unknown" }} {% if job.end_date %} {{ job.end_date|date:"Y-m-d H:i" }}
({{ job.end_date|naturaltime }}) {% else %} - {% endif %}

{% trans "My Payouts & Payment Summary" %}

{% for task in my_payout_tasks %} {% endfor %}
{% trans "Date Completed" %} {% trans "Item" %} {% trans "Qty" %} {% trans "Payout Value" %} {% trans "Payment ID" %} {% trans "Payment Date" %}
{{ task.completed_at|date:"Y-m-d H:i" }}
{{ task.item_type.name }} {{ task.item_type.name }} {% if task.created_from_blueprint_request %} {{ task.created_from_blueprint_request.requested_runs }} Runs {% endif %}
{{ task.quantity }} {{ task.builder_reward|eve_isk }} {% if task.payout_batch %} {{ task.payout_batch.payment_reference }} {% else %} {% trans "Unbatched" %} {% endif %} {% if task.payout_batch %} {% if task.payout_batch.status == "PAID" %} {{ task.payout_batch.paid_at|date:"Y-m-d H:i" }} {% else %} {% trans "Pending" %} {% endif %} {% else %} {% trans "Unpaid" %} {% endif %}
{% endblock %} {% block extra_javascript %} {{ block.super }} {% endblock %}