{% extends 'base.html' %} {% block title %}Vehicle Types — Admin{% endblock %} {% block content %}
Admin Portal

Vehicle Types

← Back to portal

Every vehicle a picker can register as driving — B2C (motorcycle/car/bicycle) and B2B trucks, in one place. Each type's max weight decides who's even offered for a given order (a heavy cart won't show a bicycle, a light one won't need a large truck); the per-km rate + (B2B only) base rate make up the delivery fee, or leave the per-km rate blank to use the platform-wide default. Only active types are offered to customers/pickers.

{% csrf_token %}

B2B only — added once per delivery on top of the per-km rate. Leave 0 for B2C.

Leave blank to use the platform-wide flat per-km rate instead.

{% for tt in truck_types %}
{% if tt.segment == 'b2c' %}B2C{% else %}B2B{% endif %} {% if not tt.is_active %}Inactive{% endif %}

{% if tt.icon_url %}{% else %}{{ tt.icon }}{% endif %} {{ tt.name }}

{{ tt.capacity_label }} · up to {{ tt.max_weight_kg|floatformat:0 }} kg

Base rate: TSh {{ tt.base_rate|floatformat:0 }} {% if tt.per_km_rate %} · TSh {{ tt.per_km_rate|floatformat:0 }}/km{% else %} · platform default per-km rate{% endif %}

{% csrf_token %}
{% empty %}

No truck types added yet — add your first one above.

{% endfor %}
{% endblock %} {% block extra_scripts %} {% endblock %}