{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Mileage'} ] %} {{ page_header( icon_class='fas fa-car', title_text='Mileage Tracking', subtitle_text='Track and manage vehicle mileage expenses', breadcrumbs=breadcrumbs, actions_html='
' ) }}Total Distance
{{ '%.2f'|format(total_distance) }} km
Total Amount
{{ total_amount|format_currency(currency) }}
Total Entries
{{ pagination.total if pagination else (mileage_entries|length) }}
| {% endif %} | Date | Purpose | Route | Distance | Amount | Status | Actions |
|---|---|---|---|---|---|---|---|
| {% endif %} | {{ entry.date|format_date if entry.date else (entry.trip_date|format_date if entry.trip_date else '—') }} |
{{ entry.purpose }}
{% if entry.project %}
{{ entry.project.name }}
{% endif %}
|
{{ entry.start_location }}
{{ entry.end_location }}
|
{{ '%.2f'|format(entry.distance_km) }} km | {{ (entry.total_amount or entry.calculated_amount or 0)|format_currency(entry.currency_code) }} | {% if entry.status == 'pending' %} Pending {% elif entry.status == 'approved' %} Approved {% elif entry.status == 'rejected' %} Rejected {% elif entry.status == 'reimbursed' %} Reimbursed {% else %} {{ entry.status|title }} {% endif %} | View |