{% extends 'dashboard.html.twig' %} {% block title %}{% trans %} My dashboard | Promotip {% endtrans %}{% endblock %} {% block dashboard %}
{% trans %} Companies {% endtrans %}

{{ company.companyname }}

{{ company.description|raw }}

{% trans %}Address{% endtrans %}:

{{ company.address }} {{ company.housenumber }} {{ company.box }}
{{ city.postcode }} {{ city.locality }}

{% if (company.phonenumber is defined and company.phonenumber is not null) %}
{{ 'Phone'|trans }}:
{{ company.phonenumber|phone_number_format('NATIONAL') }} {% endif %}

{{ 'Website'|trans }}:
Bezoek onze website

{% trans %}Opening hours{% endtrans %}
{{ company.companyname }}

{% for i in range(1,7) %}
{% if ('now'|date('N') == i) %} {% endif %} {% if (i == 1) %} {% trans %}Monday{% endtrans %} {% elseif (i == 2) %} {% trans %}Tuesday{% endtrans %} {% elseif (i == 3) %} {% trans %}Wednesday{% endtrans %} {% elseif (i == 4) %} {% trans %}Thursday{% endtrans %} {% elseif (i == 5) %} {% trans %}Friday{% endtrans %} {% elseif (i == 6) %} {% trans %}Saturday{% endtrans %} {% elseif (i == 7) %} {% trans %}Sunday{% endtrans %} {% endif %}
{% set currentDay = -1 %} {% for o in openingHours %} {% if (i == o.day) %} {{ o.openFrom|date('H:i') }} {{ o.openTill|date('H:i') }}
{% set currentDay = i %} {% endif %} {% endfor %} {% if (currentDay != i) %} {% trans %}closed{% endtrans %} {% endif %}
{% endfor %}
{% endblock %}