{% from 'utils.html.twig' import ico %}
<ul class="features">
{% if productOffer.saleDateType == enum('ProductOfferEnum::SALE_CLOSE') and productOffer.saleDateStart %}
<li class="feature-inicio-vendas">{{ ico('calendar') }} {{ getLanguage('sale_start', 'product') }} {{ productOffer.saleDateStart|date('d/m/Y') }}</li>
{% endif %}
{% if timeTotal > 0 %}
<li class="feature-carga">
{{ ico('clock') }}{{ timeTotal }}
{{ plural(timeTotal,
getLanguage('workload_hour', 'product'),
getLanguage('workload_hours', 'product')
)}}
</li>
{% endif %}
{% if enrollmentTotal >= 10 %}
<li class="feature-alunos">
{{ ico('user') }}{{ enrollmentTotal }}
{{ plural(enrollmentTotal,
getLanguage('feature_student', 'product'),
getLanguage('feature_students', 'product')
)}}
</li>
{% endif %}
{% if userSubscriptionTotal >= 10 %}
<li class="feature-assinantes">
{{ ico('user') }}{{ userSubscriptionTotal }}
{{ plural(userSubscriptionTotal,
getLanguage('feature_subscription', 'product'),
getLanguage('feature_subscriptions', 'product')
)}}
</li>
{% endif %}
{% if lessonTotal > 0 %}
<li class="feature-aulas">
{{ ico('book-open') }}{{ lessonTotal }}
{{ plural(lessonTotal,
getLanguage('features_lesson', 'product'),
getLanguage('features_lessons', 'product')
)}}
</li>
{% endif %}
{% if lessonModuleTotal > 0 %}
<li class="feature-modulos">
{{ ico('book') }}{{ lessonModuleTotal }}
{{ plural(lessonModuleTotal,
getLanguage('content_module', 'product'),
getLanguage('content_modules', 'product')
)}}
</li>
{% endif %}
{% if courseTotal > 0 %}
<li class="feature-cursos">
{{ ico('clipboard') }}{{ courseTotal }}
{{ plural(courseTotal,
getLanguage('included_course', 'product'),
getLanguage('included_courses', 'product')
)}}
</li>
{% endif %}
{% if dateLastUpdate %}
<li class="feature-date-update">
{{ ico('calendar') }} {{ getLanguage('last_update', 'product') }} {{ dateLastUpdate|date('d/m/Y') }}
</li>
{% endif %}
{% if isModuleActive('course_certificate_module') %}
{% if certificate == enum('ProductEnum::YES') %}
<li class="feature-certificado">{{ ico('quality') }}{{ getLanguage('course_completion_certificate', 'product') }}</li>
{% endif %}
{% endif %}
{% if fileTotal > 0 %}
<li class="feature-arquivos">
{{ ico('download') }}{{ fileTotal }}
{{ plural(fileTotal,
getLanguage('download_file', 'product'),
getLanguage('download_files', 'product')
)}}
</li>
{% endif %}
{% if productOffer.warranty == 1 %}
<li class="feature-garantia">{{ ico('dollar') }}
{{ getLanguage('warranty_devolution', 'product') }}
{{ productOffer.warrantyOption }}
{{ plural(productOffer.warrantyOption,
getLanguage('warranty_devolution_day', 'product'),
getLanguage('warranty_devolution_days', 'product')
)}}
</li>
{% endif %}
</ul>