| Name | Category | Farm Price | Market Price | Stock | Trending | Actions |
|---|---|---|---|---|---|---|
| {{ product.name }}{% if not product.is_active %} Hidden{% endif %} | {{ product.category }} | TSh {{ product.farm_price|floatformat:0 }}/{{ product.unit }} | TSh {{ product.market_price|floatformat:0 }}/{{ product.unit }} | {{ product.stock_qty }} | {% if product.is_trending %} Yes {% if product.trend_badge and product.trend_badge.change_pct != None %} ({{ product.trend_badge.direction }} {{ product.trend_badge.change_pct }}%) {% else %} (no price data recorded yet) {% endif %} {% else %}—{% endif %} | Edit {% if product.is_active %} {% else %} {% endif %} |
| No products yet — add your first one above. | ||||||
| Order | Customer | Picker | Delivery | Distance / Route | Total | Status | Actions |
|---|---|---|---|---|---|---|---|
| #{{ order.id }} | {{ order.customer_name }} | {{ order.picker_name }} | {% if order.is_quick %}Quick {% endif %}{{ order.delivery_date }} {{ order.delivery_time_slot }} |
{{ order.distance_km }} km
{% if order.eta_traffic_min %} ~{{ order.eta_traffic_min }} min (traffic est.){% endif %} {% if order.route_surface_label %} {{ order.route_surface_label }}{% endif %} {% if order.picking_duration_min %} Picked in {{ order.picking_duration_min }} min{% endif %} |
TSh {{ order.total_amount|floatformat:0 }} | {{ order.status|title }} | {% if order.status == 'pending_payment' %} {% endif %} {% if order.picker_id and order.delivery_lat and order.status != 'pending_payment' %} Track {% endif %} |
| {% if order.shop_payment_complete %} Shop payment recorded {% for m in order.required_markets %}{{ m.name }}{% endfor %} {% else %} Shop payment pending — picker can't start picking yet {% for m in order.unpaid_markets %} {% endfor %} {% endif %} | |||||||
| No orders yet. | |||||||