{% extends "base.html" %} {% block content %}

Costing – {{ campaign.title }}

{% if is_brand_user %} View final brand prices for shortlisted creators. {% else %} Enter creator and brand costs; internal margin will auto-calc. {% endif %}

{% if (not is_brand_user) and campaign.status in ["CREATE","SHORTLIST"] %} Manage Shortlist {% endif %} Back to Campaigns
Nature: {{ campaign.nature }}
Status: {{ campaign.status }}
Shortlisted Creators: {{ creators|length }}
Deliverables: {{ deliverables|length }}
{# =========================== TOP TOTALS SUMMARY =========================== #}
Subtotal (Brand)
₹ {{ '%.2f'|format(costing_subtotal_brand or 0) }}
Execution Fee ({{ '%.2f'|format(execution_fee_percent or 10) }}%)
₹ {{ '%.2f'|format(execution_fee_amount or 0) }}
Grand Total (Brand)
₹ {{ '%.2f'|format(grand_total or 0) }}
{% if not is_brand_user %}
Internal Margin Total
₹ {{ '%.2f'|format(internal_margin_total or 0) }}
{% endif %}
{% if is_brand_user %}
Note: Execution fee (10%) is included in the total.
{% else %}
Internal note: External margin is not applied per deliverable. It is added as a 10% execution fee on the final subtotal.
{% endif %}
{% if not creators or not deliverables %}
You need at least one shortlisted creator and one deliverable to enter costing.
{% else %} {% if is_brand_user %}
Costing is maintained by internal users. You can view final Brand Costs here.
{% else %} {% if creator_links %}
Brand Costing Decisions
{% for cc in creator_links %} {% set bs = (cc.brand_costing_status or 'PENDING')|upper %} {% endfor %}
Creator Status Counter Amount Remark
{{ cc.creator.name }}
@{{ cc.creator.handle }}
{{ bs }} {% if cc.brand_counter_amount is not none %} ₹ {{ '%.2f'|format(cc.brand_counter_amount) }} {% else %} — {% endif %} {{ cc.brand_costing_note or '—' }}
{% endif %} {% endif %}
{% if not is_brand_user %} {% endif %} {% for cr in creators %} {% for d in deliverables %} {% for u in range(1, (d.quantity or 0) + 1) %} {% set key = (cr.id, d.id, u) %} {% set q = existing_quotes.get(key) %} {% if not is_brand_user %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Creator Deliverable Platform Unit #Creator Cost (₹) Brand Cost (₹) Internal Margin (₹) (Brand − Creator) Brand Price (₹)
{{ cr.name }}
@{{ cr.handle }} {% if not is_brand_user %} {% endif %}
{{ d.deliverable_type.name }} {% if not is_brand_user %} {% endif %} {{ d.platform.name }} Unit {{ u }} {% if not is_brand_user %} {% endif %}
This is what brand pays (per unit).
{% if q %} {{ '%.2f'|format((q.internal_margin if q.internal_margin is not none else ((q.brand_cost or 0) - (q.creator_cost or 0))) ) }} {% else %} 0.00 {% endif %} {% if q %} {{ '%.2f'|format(q.total_cost) }} {% else %} Costing not finalized {% endif %}
Back {% if not is_brand_user %} {% endif %}
{% endif %} {% if not is_brand_user %} {% endif %} {% endblock %}