{% extends "base.html" %} {% load i18n %} {% load static %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% trans "Truck Owner Dashboard" %}

{% trans "Manage your fleet and incoming shipping offers." %}

{% trans "Financials" %}

{% trans "Payments" %}

{% trans "View History" %}
{% trans "Subscription" %}
{% if request.user.profile.is_subscription_active %}

{% trans "Active" %}

{% trans "Expires:" %} {{ request.user.profile.subscription_expiry }} {% else %}

{% trans "Inactive" %}

{% trans "Payment required" %} {% endif %} {% trans "Manage" %}
{% trans "Received Shipping Offers" %}
{% for bid in bids %} {% empty %} {% endfor %}
{% trans "Route" %} {% trans "Truck" %} {% trans "Shipper" %} {% trans "Offer Amount" %} {% trans "Status" %} {% trans "Action" %}
{{ bid.shipment.display_origin }} {{ bid.shipment.display_destination }}
{{ bid.shipment.delivery_date }}
{{ bid.truck.plate_no }} {{ bid.shipment.shipper.username }} ${{ bid.amount }} {% if bid.status == 'PENDING' %} {% trans "Pending" %} {% elif bid.status == 'ACCEPTED' %} {% trans "Accepted" %} {% else %} {% trans "Rejected" %} {% endif %} {% if bid.status == 'PENDING' %} {% else %} {% trans "View Details" %} {% endif %}

{% trans "No offers received yet." %}

{% trans "My Fleet" %}

{% for truck in trucks %}
{% if truck.truck_picture %} {{ truck.display_truck_type }} {% else %}
{% endif %}
{{ truck.display_truck_type }}
{% trans "Approved" %}

{% trans "Plate No:" %} {{ truck.plate_no }}

{% trans "Capacity:" %} {{ truck.display_load_capacity }}

{% trans "Edit Truck" %}
{% endfor %} {% for truck in pending_trucks %}
{{ truck.display_truck_type }}
{% trans "Pending" %}

{% trans "Plate No:" %} {{ truck.plate_no }}

{% trans "Waiting for admin approval..." %}

{% endfor %}
{% endblock %}