{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Per Diem'} ] %} {{ page_header( icon_class='fas fa-money-bill-alt', title_text='Per Diem Claims', subtitle_text='Manage daily allowance claims', breadcrumbs=breadcrumbs, actions_html='
Manage RatesNew Claim
' ) }}

Total Claims

{{ pagination.total if pagination else (per_diem_claims|length) }}

Total Amount

{{ total_amount|format_currency(currency) }}

{{ _('Filter Claims') }}

{{ _('Exports use current filters') }} {{ _('Export CSV') }} {{ _('Export PDF') }}
{% set locked_client = get_locked_client() %} {% if locked_client %} {% elif only_one_client|default(false) and single_client %} {% else %} {% endif %}
{% if current_user.is_admin %} {% endif %}

{{ per_diem_claims|length }} claim{{ 's' if per_diem_claims|length != 1 else '' }} found

{% if current_user.is_admin %}
{% endif %}
{% if current_user.is_admin %} {% endif %} {% if per_diem_claims %} {% for claim in per_diem_claims %} {% if current_user.is_admin %} {% endif %} {% endfor %} {% endif %}
Period Purpose Location Days Amount Status Actions
{{ claim.start_date|format_date }}
to {{ claim.end_date|format_date }}
{{ claim.trip_purpose }} {% if claim.project %}
{{ claim.project.name }}
{% endif %}
{{ claim.city + ', ' if claim.city else '' }}{{ claim.country }} {{ claim.total_days if claim.total_days else ((claim.full_days or 0) + (claim.half_days or 0) * 0.5) }} {{ (claim.calculated_amount or 0)|format_currency(claim.currency_code) }} {% if claim.status == 'pending' %} Pending {% elif claim.status == 'approved' %} Approved {% elif claim.status == 'rejected' %} Rejected {% elif claim.status == 'reimbursed' %} Reimbursed {% else %} {{ claim.status|title }} {% endif %} View
{% if not per_diem_claims %} {% from "components/ui.html" import empty_state %} {% set actions %} Create Your First Claim Learn More {% endset %} {% if request.args.get('search') or request.args.get('status') %} {{ empty_state('fas fa-search', 'No Per Diem Claims Match Your Filters', 'Try adjusting your filters to see more results. You can clear filters or create a new per diem claim that matches your criteria.', actions, type='no-results') }} {% else %} {{ empty_state('fas fa-money-bill-alt', 'No Per Diem Claims Yet', 'Track daily allowances and expenses for travel. Create your first per diem claim to get started!', actions, type='no-data') }} {% endif %} {% endif %}
{% endblock %} {% block scripts_extra %} {% endblock %}