{% if sessionsAreIncluded == "YES" %}
{% endif %}

{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:

{% for category in categories %} {% endfor %}
{% if rmessage == "YES" %}
{{ responseMessage }}
{% endif %} {% for course in courses %}

{{ course.title }}

{{ 'Teacher'|get_lang }}: {{ course.teacher }}
{% if course.enrolled == "YES" %} {{ 'TheUserIsAlreadyRegisteredInTheCourse'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %} {% if course.enrolled == "TMP" %} {{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %}
{{ course.price }} {{ currency }}
{% endfor %}
{% if sessionsAreIncluded == "YES" %}

{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:

{% for category in categories %} {% endfor %}
{% if rmessage == "YES" %}
{{ responseMessage }}
{% endif %} {% for session in sessions %}

{{ session.name }}

{{ 'From'|get_lang }} {{ session.access_start_date }} {{ 'Until'|get_lang }} {{ session.access_end_date }}
{% if session.enrolled == "YES" %} {{ 'TheUserIsAlreadyRegisteredInTheSession'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %} {% if session.enrolled == "TMP" %} {{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %}
{{ session.price }} {{ currency }}
{% if session.enrolled == "NO" %} {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %}
{% for course in session.courses %}

{{ course.title }}

{{ 'Teacher'|get_lang }}: {{ course.teacher }}
{% if course.enrolled == "YES" %} {{ 'TheUserIsAlreadyRegisteredInTheCourse'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %} {% if course.enrolled == "TMP" %} {{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }} {% endif %}
{% endfor %}
{% endfor %}
{% endif %}