{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Material Exchange" %}{% endblock page_title %} {% block extra_css %} {% endblock extra_css %} {% block content %}

{% trans "Items in Stock" %}

{{ stock_count|intcomma }}

{% trans "Stock Value" %}

{{ total_stock_value|floatformat:0|intcomma }} ISK

{% trans "Pending Sell Orders" %}

{{ pending_sell_orders|intcomma }}

{% trans "Pending Buy Orders" %}

{{ pending_buy_orders|intcomma }}

{% trans "My Orders" %}

{% trans "Track your sell and buy orders with status updates." %}

{% trans "View Orders" %}
{% trans "Sell to Hub" %}

{% trans "Sell your materials to the corp at fair prices based on Jita Buy." %}

{% trans "Start Selling" %}
{% trans "Buy from Hub" %}

{% trans "Purchase materials from the corp stock without going to Jita." %}

{% trans "Browse Stock" %}
{% trans "Transaction History" %}

{% trans "View all completed transactions and monthly reports." %}

{% trans "View History" %}
{% trans "Your Recent Sell Orders" %}
{% if user_sell_orders %}
{% for order in user_sell_orders %} {% endfor %}
{% trans "Items" %} {% trans "Total Quantity" %} {% trans "Total" %} {% trans "Status" %}
{% for item in order.items.all %} {{ item.type_name }} ({{ item.quantity|intcomma }}){% if not forloop.last %}, {% endif %} {% endfor %} {{ order.total_quantity|intcomma }} {{ order.total_price|floatformat:0|intcomma }} ISK
{% if order.status == 'draft' %} {% elif order.status == 'awaiting_validation' %} {% elif order.status == 'validated' %} {% elif order.status == 'accepted' %} {% elif order.status == 'completed' %} {% elif order.status == 'rejected' %} {% elif order.status == 'cancelled' %} {% endif %} {{ order.get_status_display }}
{% else %}

{% trans "No sell orders yet." %}

{% endif %}
{% trans "Your Recent Buy Orders" %}
{% if user_buy_orders %}
{% for order in user_buy_orders %} {% endfor %}
{% trans "Items" %} {% trans "Total Quantity" %} {% trans "Total" %} {% trans "Status" %}
{% for item in order.items.all %} {{ item.type_name }} ({{ item.quantity|intcomma }}){% if not forloop.last %}, {% endif %} {% endfor %} {{ order.total_quantity|intcomma }} {{ order.total_price|floatformat:0|intcomma }} ISK
{% if order.status == 'draft' %} {% elif order.status == 'awaiting_validation' %} {% elif order.status == 'validated' %} {% elif order.status == 'accepted' %} {% elif order.status == 'completed' %} {% elif order.status == 'rejected' %} {% elif order.status == 'cancelled' %} {% endif %} {{ order.get_status_display }}
{% else %}

{% trans "No buy orders yet." %}

{% endif %}
{% if recent_transactions %}
{% trans "Recent Hub Activity" %}
{% for tx in recent_transactions %} {% endfor %}
{% trans "Type" %} {% trans "User" %} {% trans "Material" %} {% trans "Quantity" %} {% trans "Value" %} {% trans "Date" %}
{% if tx.transaction_type == 'sell' %} {% trans "Sell" %} {% else %} {% trans "Buy" %} {% endif %} {{ tx.user.username }} {{ tx.type_name }} {{ tx.quantity|intcomma }} {{ tx.total_price|floatformat:0|intcomma }} ISK {{ tx.completed_at|date:"Y-m-d H:i" }}
{% endif %} {% if can_admin %}
{% trans "Admin Panel" %}
{% trans "Sell Orders" %}
{% if admin_sell_orders %}
{% trans "Sell queue" %}
{% for order in admin_sell_orders %}
{% trans "Sell" %} · {{ order.order_reference }}
{{ order.seller.username }} · {{ order.created_at|date:"Y-m-d H:i" }}
{% trans "Items" %}
{{ order.items.count }}
{% trans "Total" %}
{{ order.total_price|floatformat:0|intcomma }} ISK
{% trans "Preview" %}
{% for item in order.items.all|slice:":3" %} {{ item.type_name }} ×{{ item.quantity|intcomma }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if order.items.count > 3 %} … {% endif %}
{% if order.status == 'draft' %} {% elif order.status == 'awaiting_validation' %} {% elif order.status == 'validated' %} {% elif order.status == 'accepted' %} {% elif order.status == 'completed' %} {% elif order.status == 'rejected' %} {% elif order.status == 'cancelled' %} {% endif %} {{ order.get_status_display }}
{% url 'indy_hub:material_exchange_index' as exchange_index %} {% trans "Details" %} {% if order.status not in 'completed,rejected,cancelled' %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No sell orders found." %}
{% endif %}
{% trans "Buy Orders" %}
{% if admin_buy_orders %}
{% trans "Buy queue" %}
{% for order in admin_buy_orders %}
{% trans "Buy" %} · {{ order.order_reference }}
{{ order.buyer.username }} · {{ order.created_at|date:"Y-m-d H:i" }}
{% trans "Items" %}
{{ order.items.count }}
{% trans "Total" %}
{{ order.total_price|floatformat:0|intcomma }} ISK
{% trans "Preview" %}
{% for item in order.items.all|slice:":3" %} {{ item.type_name }} ×{{ item.quantity|intcomma }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if order.items.count > 3 %} … {% endif %}
{% if order.status == 'draft' %} {% elif order.status == 'awaiting_validation' %} {% elif order.status == 'validated' %} {% elif order.status == 'accepted' %} {% elif order.status == 'completed' %} {% elif order.status == 'rejected' %} {% elif order.status == 'cancelled' %} {% endif %} {{ order.get_status_display }}
{% url 'indy_hub:material_exchange_index' as exchange_index %} {% trans "Details" %} {% if order.status not in 'completed,rejected,cancelled' %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No buy orders found." %}
{% endif %}
{% endif %}
{% endblock content %}