{% extends "base.html" %} {% set heading = "Schengen area compliance report" %} {% block title %}{{ heading }} - Edward Betts{% endblock %} {% block content %}

{{ heading }}

Current Status
Compliance Status
{% if current_compliance.is_compliant %} ✅ COMPLIANT {% else %} ❌ NON-COMPLIANT {% endif %}
Days Used
{{ current_compliance.total_days_used }}/90
{% if current_compliance.is_compliant %}
Days Remaining
{{ current_compliance.days_remaining }}
{% else %}
Days Over Limit
{{ current_compliance.days_over_limit }}
{% endif %}
{% if current_compliance.next_reset_date %}
Next Reset Date
{{ current_compliance.next_reset_date.strftime('%Y-%m-%d') }}
{% endif %}
Current 180-day Period
{{ current_compliance.current_180_day_period[0].strftime('%Y-%m-%d') }} to {{ current_compliance.current_180_day_period[1].strftime('%Y-%m-%d') }}
{% if current_compliance.stays_in_period %}
Stays in Current 180-day Period
{% for stay in current_compliance.stays_in_period %} {% endfor %}
Entry Date Exit Date Country Days Trip
{{ stay.entry_date.strftime('%Y-%m-%d') }} {% if stay.exit_date %} {{ stay.exit_date.strftime('%Y-%m-%d') }} {% else %} ongoing {% endif %} {{ stay.country | country_flag }} {{ stay.country.upper() }} {{ stay.days }} {% if stay.trip_date and stay.trip_name %} {{ stay.trip_name }} {% else %} - {% endif %}
{% endif %}
{% if warnings %}
Warnings
{% for warning in warnings %} {% endfor %}
{% endif %}
Compliance History
{% if trips_with_compliance %}
Trip Compliance History
{% for trip_date, calculation in trips_with_compliance.items() %} {% endfor %}
Trip Date Trip Name Days Used Days Remaining Status
{{ trip_date.strftime('%Y-%m-%d') }} {% for trip_obj in trip_list if trip_obj.start == trip_date %} {{ trip_obj.title }} {% endfor %} {{ calculation.total_days_used }}/90 {{ calculation.days_remaining }} {% if calculation.is_compliant %} Compliant {% else %} Non-compliant {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}