<ul class="steps steps-3 justify-content-center d-flex align-items-center mt-2 mb-2">
<li class="d-flex justify-content-center align-items-center {% if "edit" in app.request.get('_route') and "segment_document" not in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold" href="{{ path('dossier_edit', {'id': dossier.id}) }}">
<i class="fas fa-align-left"></i> {% trans %}Général{% endtrans %}
</a>
</li>
{% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
{% if "segment" in app.request.get('_route') or dossier.dossierSegments|length >= 1 %}
{% set navSegment = segment is defined and segment ? segment : dossier.dossierSegments.first %}
{% else %}
{% set navSegment = false %}
{% endif %}
<li class="d-flex justify-content-center align-items-center {% if "composition" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ navSegment ? "" : 'isDisabled' }}" href="{{ navSegment ? path('dossier_segment_composition', {'id': dossier.id, 'segmentId': navSegment.id }) : currentPath }}">
<i class="fas fa-layer-group"></i> Composition{% if navSegment and not navSegment.isCompoValide %} <i class="fas fa-exclamation text-danger"></i>{% endif %}
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "itineraire" in app.request.get('_route') or "edit_segment_document_dossier" in app.request.get('_route') or "new_segment_document_dossier" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ navSegment ? "" : 'isDisabled' }}" href="{{ navSegment ? path('dossier_segment_itineraire', {'id': dossier.id, 'segmentId': navSegment.id }) : currentPath }}">
<i class="fas fa-map-signs"></i> Itinéraire
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "rooming" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ navSegment ? "" : 'isDisabled' }}" href="{{ navSegment ? path('dossier_segment_rooming', {'id': dossier.id, 'segmentId': navSegment.id }) : currentPath }}">
<i class="fas fa-users-cog"></i> Gestion PAX{% if navSegment and not navSegment.isPaxValide %} <i class="fas fa-exclamation text-danger"></i>{% endif %}
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "vols" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ navSegment ? "" : 'isDisabled' }}" href="{{ navSegment ? path('dossier_segment_vols', {'id': dossier.id, 'segmentId': navSegment.id }) : currentPath }}">
<i class="fas fa-plane"></i> Gestion Vols{% if navSegment and not navSegment.isTransferValide %} <i class="fas fa-exclamation text-danger"></i>{% endif %}
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "achat" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ dossier.isCompoValide ? "" : 'isDisabled' }}" href="{{ path('dossier_segment_achats', {'id': dossier.id }) }}">
<i class="fas fa-book-open"></i> Gestion achat(s){% if not dossier.isAchatsValide %} <i class="fas fa-exclamation text-danger"></i>{% endif %}
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "ventes" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold {{ dossier.isCompoValide ? "" : 'isDisabled' }}" href="{{path('dossier_segment_ventes', {'id': dossier.id }) }}">
<i class="fas fa-quote-right"></i> Gest. vente(s){% if not dossier.isVentesValide %} <i class="fas fa-exclamation text-danger"></i>{% endif %}
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "evenements" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold" href="{{ path('dossier_evenements', {'id': dossier.id}) }}">
<i class="far fa-calendar-alt"></i> Evènements
</a>
</li>
<li class="d-flex justify-content-center align-items-center {% if "documents" in app.request.get('_route') %} current active {% endif %}">
<a class="h5 mb-0 font-weight-bold" href="{{ path('dossier_documents', {'id': dossier.id}) }}">
<i class="far fa-folder-open"></i> Documents
</a>
</li>
</ul>
{{ include('dossier/_tasks.html.twig') }}