date
      route
      take-off
      land
      duration
      flight
      reference
    {% for item in flights | sort(attribute="depart") if item.arrive %}
      
{{ item.depart.strftime("%a, %d %b %Y") }}
      {{ item.from }} → {{ item.to }}
      {{ item.depart.strftime("%H:%M") }}
      
        {% if item.arrive %}
          {{ item.arrive.strftime("%H:%M") }}
          {% if item.arrive.date() != item.depart.date() %}+1 day{% endif %}
        {% endif %}
      
      {{ item.duration }}
      {{ item.airline }}{{ item.flight_number }}
      {{ item.booking_reference }}
    {% endfor %}
  
 
  
      date
      route
      depart
      arrive
      operator
      reference
    {% for item in trains | sort(attribute="depart") if item.arrive %}
      
{{ item.depart.strftime("%a, %d %b %Y") }}
      {{ item.from }} → {{ item.to }}
      {{ item.depart.strftime("%H:%M") }}
      
        {% if item.arrive %}
          {{ item.arrive.strftime("%H:%M") }}
          {% if item.arrive.date() != item.depart.date() %}+1 day{% endif %}
        {% endif %}
      
      {{ item.operator }}
      {{ item.booking_reference }}
    {% endfor %}