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

Brand Approval – {{ campaign.title }}

Approve / Reject / Negotiate creator-wise. Campaign moves to APPROVED only when all non-rejected creators are approved.

Back to Costing
Status: {{ campaign.status }}
Creators: {{ creators|length }}
Deliverables: {{ deliverables|length }}
{# =========================== OVERALL TOTALS (TOP 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 %}
Note: Execution Fee (10%) is included in the overall total and is not applied per deliverable.
{% if missing_costing %}
Some costing rows are missing. Please go back to Costing and fill all Creator × Deliverable × Unit prices.
{% endif %}
Approve All sets every creator decision to Approve (you can still change individual ones before saving).
{% for cc in creator_links %} {% set cr = cc.creator %} {# creator subtotal (brand costs only) #} {% set total = namespace(v=0) %} {% set total_creator = namespace(v=0) %} {% for d in deliverables %} {% for u in range(1, (d.quantity or 0) + 1) %} {% set q = quote_map.get(cr.id, {}).get(d.id, {}).get(u) %} {% if q %} {% set total.v = total.v + (q.total_cost or 0) %} {% set total_creator.v = total_creator.v + (q.creator_cost or 0) %} {% endif %} {% endfor %} {% endfor %} {% set bs = (cc.brand_costing_status or 'PENDING') %}
{{ cr.name }}
@{{ cr.handle }}
Subtotal (Brand)
₹ {{ "%.2f"|format(total.v) }}
{% if not is_brand_user %}
Internal Margin (Creator vs Brand)
₹ {{ "%.2f"|format((total.v - total_creator.v) or 0) }}
{% endif %}
{{ bs }}
{% set current = 'APPROVE' if bs == 'APPROVED' else ('REJECT' if bs == 'REJECTED' else ('NEGOTIATE' if bs == 'NEGOTIATE' else '')) %}
If you choose Negotiate, you can enter a counter amount + note.

{% if not is_brand_user %} {% endif %} {% for d in deliverables %} {% for u in range(1, (d.quantity or 0) + 1) %} {% set q = quote_map.get(cr.id, {}).get(d.id, {}).get(u) %} {% if not is_brand_user %} {% endif %} {% endfor %} {% endfor %}
Deliverable Platform Unit #Creator Cost Brand Cost Internal MarginBrand Price
{{ d.deliverable_type.name }} {{ d.platform.name }} Unit {{ u }} {% if q %}₹ {{ "%.2f"|format(q.creator_cost or 0) }}{% else %} Missing {% endif %} {% if q %}₹ {{ "%.2f"|format(q.brand_cost or (q.total_cost or 0)) }}{% else %} - {% endif %} {% if q %} ₹ {{ "%.2f"|format((q.internal_margin if q.internal_margin is not none else ((q.brand_cost or (q.total_cost or 0)) - (q.creator_cost or 0))) ) }} {% else %} - {% endif %} {% if q %} ₹ {{ "%.2f"|format(q.total_cost or 0) }} {% else %} Costing not finalized {% endif %}
{% endfor %}
After saving, campaign moves to APPROVED only if all non-rejected creators are approved.
Execution Fee (10%) is included in the overall total.
{% if missing_costing %}
Action is disabled until all costing rows are filled.
{% endif %}
{% endblock %}