{% extends 'base.html' %} {% block title %}Fleet Order Assignment — Admin{% endblock %} {% block content %}
Admin Portal

Fleet Order Assignment

← Back to portal

Orders that chose a fleet company at checkout are waiting for that company to assign one of its own drivers internally. Admin can watch this queue across every company and assign a driver directly if a company needs help — same validation as the company's own assignment (driver must belong to that order's company, and their truck must be rated for the order's weight class).

{% for order in orders %}
Order #{{ order.id }} Awaiting assignment {% if order.sla_hours is not None %} Confirmed {{ order.sla_hours }}h ago {% endif %}

{{ order.company.company_name|default:"Unknown company" }} · {{ order.delivery_date }} {{ order.delivery_time_slot }} · TSh {{ order.total_amount|floatformat:0 }}

{% if order.eligible_drivers %}
{% csrf_token %}
{% else %}

No eligible driver in this company yet for this order's weight class.

{% endif %}
{% empty %}

No orders waiting for driver assignment right now.

{% endfor %}
{% endblock %}