{% extends 'base.html' %} {% load static %} {% block 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_count }} order(s) awaiting payment confirmation before they reach you.

{% 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 }}
{{ 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 %}

{{ t.picker_active_deliveries }}

{% if active_orders %} {% for order in active_orders %}
Order #{{ order.id }} {{ order.status|title }}

{{ 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 }}

{{ 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 %}
Order #{{ order.id }} {{ t.tracker_delivered }}

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

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