{% extends 'base.html.twig' %} {% block title %}Misja {{ mission.id }} | Panel admina{% endblock %} {% block body %} {% set charColors = {scout: 'scout', blitz: 'blitz', nova: 'nova', echo: 'echo'} %} {% set charColor = charColors[mission.character] ?? 'gray-400' %}
{# Back link #} ← Wszystkie misje {# Header #}

{{ mission.id }}

{{ mission.title ?? 'Bez tytułu' }}

{{ mission.character ?? '—' }} {{ mission.location ?? '—' }} {{ mission.difficulty ?? '—' }} {{ mission.estimatedMinutes }} min
{# Intro dialog #} {% if mission.introDialog %}

Intro dialog

{{ mission.introDialog }}

{% endif %} {# Parent instructions #} {% if mission.preparation.parent_instructions|default %}
Instrukcje dla rodzica

{{ mission.preparation.parent_instructions }}

{% endif %}
{# Steps #} {% if mission.steps %}

Kroki ({{ mission.steps|length }})

{% for step in mission.steps %}
{{ loop.index }}

{{ step.title ?? 'Krok ' ~ loop.index }}

{# Character dialog #} {% if step.character_dialog is defined and step.character_dialog %}

{{ step.character_dialog }}

{% endif %} {# Riddle / question #} {% if step.riddle_text is defined and step.riddle_text %}

Zagadka

{{ step.riddle_text }}

{% endif %} {# Answer options (choice) #} {% if step.answer_options is defined and step.answer_options %}

Odpowiedzi

{% for option in step.answer_options %}
{{ option }} {% if option == (step.answer ?? step.correct_answer ?? '') %} {% endif %}
{% endfor %}
{% elseif step.answer is defined and step.answer %}

Odpowiedź

{{ step.answer }}

{% endif %} {# Hint #} {% if step.hint is defined and step.hint %}

Podpowiedź

{{ step.hint }}

{% endif %} {# Fun fact #} {% if step.fun_fact is defined and step.fun_fact %}

Ciekawostka

{{ step.fun_fact }}

{% endif %} {# Success dialog #} {% if step.success_dialog is defined and step.success_dialog %}

Po sukcesie

{{ step.success_dialog }}

{% endif %}
{% endfor %}
{% endif %} {# Completion #} {% if mission.completionDialog or mission.badge %}

Zakończenie

{% if mission.completionDialog %}

{{ mission.completionDialog }}

{% endif %}
{% if mission.badge %}
Odznaka: {{ mission.badge.name }}
{% endif %}
{% endif %} {# Review panel #}

Status misji

{% for flash in app.flashes('success') %}
{{ flash }}
{% endfor %} {% if review %}

Obecny status: {% if review.status == 'approved' %} Zatwierdzona {% elseif review.status == 'needs_work' %} Do poprawki {% elseif review.status == 'rejected' %} Odrzucona {% endif %}

{% if review.notes %}

Notatki: {{ review.notes }}

{% endif %} {% if review.reviewedAt %}

Ostatnia zmiana: {{ review.reviewedAt|date('Y-m-d H:i') }} przez {{ review.reviewedBy ?? '—' }}

{% endif %}
{% endif %}
{# Navigation #}
← Wszystkie misje
{% endblock %}