{% extends 'admin/dashboard.html.twig' %} {% block title %}Admin - Settings{% endblock %} {% block dashboard_content %}
{% for label, messages in app.flashes %} {% for message in messages %} {% endfor %} {% endfor %}

Manage Settings

{% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %} {{ form_start(form) }}
Tax Settings
{{ form_row(form.tax) }}
Discount Settings
{{ form_row(form.discountCode) }} {{ form_row(form.discountPercentage) }}
{{ form_widget(form.discountActive) }} {{ form_label(form.discountActive) }}
{{ form_end(form) }} {% if settings %}
Current Tax

{{ settings.tax }}%

Current Discount
{% if settings.discountActive and settings.discountCode %}

Code: {{ settings.discountCode }}

Percentage: {{ settings.discountPercentage }}%

Active {% else %}

No active discount

{% endif %}
{% endif %}
{% endblock %}