{# Compact participant card with name, room, price, and edit button #} {% set isCanceled = cardData.isCanceled is defined ? cardData.isCanceled : false %} {% set isValid = cardData.isValid is defined ? cardData.isValid : true %} {% set isSubmitted = isSubmitted|default(false) %} {% set needsAttention = needsAttention|default(false) %} {% set attentionLabels = attentionLabels|default([]) %} {% set hintLabel = hintLabel|default(null) %} {% set mode = mode|default('create') %} {# Determine display states #} {% set showAsError = not isValid and isSubmitted %} {% set showAsAttention = needsAttention and not showAsError %} {% set showAsIncomplete = not isValid and not isSubmitted %} {# Build edit URL for linking #} {% if mode == 'edit' %} {% set editUrl = path('app_booking_edit_participant', {bookingId: bookingId, index: index}) %} {% else %} {% set editUrl = path('app_booking_create_step_2_participant', {index: index}) %} {% endif %}