{% extends 'base.html' %} {% load static %} {% block title %}{{ t.title_picker_dashboard }} — PickkerMarket{% endblock %} {% block content %}
{{ t.picker_dashboard_kicker }}

{{ t.picker_welcome_back }}{% if profile %}{% endif %}

{% if profile %}

{% if profile.source_type == 'warehouse' %}{{ t.picker_source_warehouse }}{% elif profile.source_type == 'shop' %}{{ t.picker_source_shop }}{% else %}{{ t.picker_source_market }}{% endif %} · {{ profile.market_location }} {% if profile.regions_served %} · {{ t.profile_regions_served }}: {{ profile.regions_served }}{% endif %}

{% endif %}
{% if availability_status %}
{% if availability_status.reason == 'delivering' %}{{ t.picker_status_delivering }} {% elif availability_status.reason == 'at_capacity' %}{{ t.picker_status_at_capacity }} {% else %}{{ t.picker_status_available }}{% endif %} {{ availability_status.today_count }}/{{ availability_status.max_orders_per_day }} {{ t.picker_status_today }}
{% endif %}
{% if not profile.is_approved %}
{{ t.picker_pending_approval_title }}

{{ t.picker_pending_approval_body }}

{% endif %} {% if pending_count %}

{{ pending_payment_note }}

{% endif %}
{{ t.picker_pending_earnings }} TSh {{ earnings.pending_amount|floatformat:0 }} {{ earnings.pending_count }} deliver{{ earnings.pending_count|pluralize:"y,ies" }} awaiting payout
{{ t.picker_lifetime_earned }} TSh {{ earnings.lifetime_amount|floatformat:0 }} {{ commission_note }}
{{ t.picker_deliveries_hours_places }} {{ performance.deliveries }} · {{ performance.hours }}h · {{ performance.places }}
{{ t.picker_rating_label }} {% if rating_summary.average %}★ {{ rating_summary.average }}{% else %}{{ t.picker_no_ratings }}{% endif %} {% if rating_summary.count %}from {{ rating_summary.count }} delivery{{ rating_summary.count|pluralize:"y,ies" }}{% endif %}

{{ t.picker_payout_terms_title }}

{% if profile.payout_frequency == 'daily' %}{{ t.picker_daily }}{% else %}{{ t.picker_weekly }}{% endif %}

{{ t.picker_payout_schedule_title }}

{% if profile.payout_frequency == 'daily' %}{{ t.picker_payout_schedule_daily }}{% else %}{{ t.picker_payout_schedule_weekly }}{% endif %}

{% if earnings_history %}

{{ t.picker_earnings_history_title }}

{% for e in earnings_history %} {% endfor %}
{{ t.picker_earnings_col_order }} {{ t.picker_earnings_col_gross }} {{ t.picker_earnings_col_commission }} {{ t.picker_earnings_col_net }}
{{ t.order_hash_prefix }}{{ e.order_id }} {% if e.gross_amount %}TSh {{ e.gross_amount|floatformat:0 }}{% else %}—{% endif %} {% if e.commission_amount %}TSh {{ e.commission_amount|floatformat:0 }} ({{ e.commission_pct|floatformat:1 }}%){% else %}TSh 0{% endif %} TSh {{ e.amount|floatformat:0 }}
{% endif %}

{{ t.picker_active_deliveries }}

{{ t.picker_view_my_route }} {{ t.picker_guide_link }}
{% if active_orders %} {% for order in active_orders %}
{{ t.order_hash_prefix }}{{ order.id }} {{ order.status_label }} {% if order.is_quick %}{{ t.badge_quick_delivery }}{% endif %}

{{ order.delivery_date }} · {{ order.delivery_time_slot }} · {{ order.distance_km }} km · TSh {{ order.delivery_fee|floatformat:0 }} {{ t.order_fee_delivery }} + TSh {{ order.picking_fee|floatformat:0 }} {{ t.order_fee_picking }}{% if order.package_fee > 0 %} + TSh {{ order.package_fee|floatformat:0 }} {{ t.order_fee_package }}{% endif %}

{{ t.picker_deliver_to }} {{ order.delivery_address }}

{% if order.next_action_label %}
{% csrf_token %}
{% endif %} {{ t.picker_message_customer }}
{% endfor %} {% else %}

{{ t.picker_no_active_deliveries }}

{% endif %} {% if history_orders %}

{{ t.picker_recently_delivered }}

{% for order in history_orders %}
{{ t.order_hash_prefix }}{{ order.id }} {{ t.tracker_delivered }}

{{ order.delivery_date }} · TSh {{ order.total_amount|floatformat:0 }}

{% endfor %} {% endif %}
{% endblock %}