<html
  xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
  xmlns:ig="http://typo3.org/ns/Internetgalerie/IgRender/ViewHelpers"
  data-namespace-typo3-fluid="true">

<div class="ig-reservations-calendar-table  ym-grid block-left">
    <f:for each="{calendar.data}" as="day">
        <div class="ig-reservations-calendar-day calendar-date calendar-date-{day.date->f:format.date(format: '%Y-%m-%d')} calendar-col ig-inline {f:if(condition: '{day.date->f:format.date(format: \'%Y-%m-%d\')} == {f:format.date(date: \'now\', format: \'%Y-%m-%d\')}', then: ' today')}"
            data-date-format="{day.date->f:format.date(format: '%d.%m.%Y')}" data-date-day=" {day.date->f:format.date(format: '%A')}">
            <div class="calendar-header calendar-header-day">
              <span class="calendar-header-day-date"><f:format.date format="%A">{day.date}</f:format.date></span>
		<ig:svg.inline src="EXT:ig_icon/Resources/Public/Images/iconset/controls/arrow_down.svg" class="accordion-svg" />
            </div>
            <div class="calendar-header calendar-header-date">
                {day.date->f:format.date(format: '%d.%m.%Y')}
            </div>
            <div class="calendar-entries">
                <f:for each="{day.entries}" as="event" iteration="timeslotIt">
                    <f:render partial="Calendar/Timeslot" arguments="{calendar: calendar, event: event, user: user, it: timeslotIt}" />
                </f:for>
            </div>
        </div>
    </f:for>
</div>

</html>
