{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Per Diem', 'url': url_for('per_diem.list_per_diem')}, {'text': 'Claim #' + per_diem.id|string} ] %} {{ page_header( icon_class='fas fa-money-bill-alt', title_text='Per Diem Claim #' + per_diem.id|string, subtitle_text=per_diem.trip_purpose, breadcrumbs=breadcrumbs, actions_html='Edit' if current_user.is_admin or per_diem.user_id == current_user.id else '' ) }}

Claim Details

Period

{{ per_diem.start_date.strftime('%Y-%m-%d') }} to {{ per_diem.end_date.strftime('%Y-%m-%d') }}

Location

{{ per_diem.city + ', ' if per_diem.city else '' }}{{ per_diem.country }}

Full Days

{{ per_diem.full_days }}

Half Days

{{ per_diem.half_days }}

Total Amount

{{ per_diem.currency_code or 'EUR' }} {{ '%.2f'|format(per_diem.calculated_amount or 0) }}

Status

{% if per_diem.status == 'pending' %} Pending {% elif per_diem.status == 'approved' %} Approved {% elif per_diem.status == 'rejected' %} Rejected {% elif per_diem.status == 'reimbursed' %} Reimbursed {% endif %}
{% if current_user.is_admin and per_diem.status == 'pending' %}

Admin Actions

{% endif %}
{% endblock %}