{% extends "base.html" %} {% block title %}Painel — Frota Trucks{% endblock %} {% block body %}
Frota Trucks{% set h = header_info() %}{% if h.company %} · {{ h.company }}{% endif %}{% if h.machine_id %} · Cód: {{ h.machine_id }}{% endif %}
{% if mensalidade_aviso %}
{{ mensalidade_aviso }}
{% endif %}
{% if last_sync %}Última sincronização: {{ last_sync }}{% else %}Ainda não sincronizado{% endif %}
Total de trucks
{{ counts.total }}
OK
{{ counts.ok }}
Vencendo
{{ counts.vencendo }}
Vencido
{{ counts.vencido }}
{% if filtro != "todos" %}
Filtrando por: {% if filtro == "ok" %}OK{% elif filtro == "vencendo" %}Vencendo{% else %}Vencido{% endif %} (limpar filtro)
{% endif %} {% for row in trucks %} {% endfor %}
Truck Motor Odômetro Horas motor Status manutenção
{{ row.truck.name }} {{ row.truck.engine_model or "—" }} {{ "%.0f"|format(row.truck.odometer_miles) if row.truck.odometer_miles is not none else "—" }} mi {{ "%.0f"|format(row.truck.engine_hours) if row.truck.engine_hours is not none else "—" }} h {% if row.status == "ok" %}OK {% elif row.status == "vencendo" %}Vencendo {% elif row.status == "vencido" %}Vencido {% elif row.status == "sem_registro" %}Sem registro {% else %}Sem config.{% endif %} Detalhes
{% if not trucks and filtro == "todos" %}

Nenhum truck encontrado. Verifique a sincronização com o Geotab.

{% endif %} {% if not trucks and filtro != "todos" %}

Nenhum truck com esse status agora.

{% endif %}
{% endblock %}