{% load humanize %}
{% load price_formats %}
{% load i18n %}

<div class="card text-white bg-success" style="margin-bottom:10px;">
    <div class="card-header">{% trans "Request Summary" %}</div>
    <div class="card-body">
        <p class="mb-1">
            <strong>{% trans "Availability:" %}</strong>
            <span id="summary-owner">{% if program.is_corporation %}{{ program.owner.corporation }}{% else %}{{ program.owner.character.character }}{% endif %}</span>
            <button class="btn btn-sm btn-light ms-2 py-0" onclick="copyText('summary-owner')">
                <i class="fas fa-copy"></i>
            </button>
        </p>
        <p class="mb-1">
            <strong>{% trans "I will receive:" %}</strong>
            <span id="summary-price">{{ contract_price_data.contract_net_total|custom_number_format:2 }}</span> ISK
            <button class="btn btn-sm btn-light ms-2 py-0" onclick="copyText('summary-price')">
                <i class="fas fa-copy"></i>
            </button>
        </p>
        {% if tracking_number %}
        <p class="mb-0">
            <strong>{% trans "Tracking number:" %}</strong>
            <span id="summary-tracking" style="font-family: monospace;">{{ tracking_number }}</span>
            <button class="btn btn-sm btn-light ms-2 py-0" onclick="copyText('summary-tracking')">
                <i class="fas fa-copy"></i>
            </button>
        </p>
        {% endif %}
    </div>
</div>
