<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:cal="http://typo3.org/ns/Ig/IgReservations/ViewHelpers" xmlns:ri="http://typo3.org/ns/Ig/IgResponsiveImages/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
    data-namespace-typo3-fluid="true">
<f:layout name="Default" />

<f:section name="content">

    <f:render partial="Calendar/EventsToApprove" arguments="{calendar:calendars.0,eventsToApproveCount: eventsToApproveCount, settings:settings, usePaddings: 1}" />

    <f:render partial="Calendar/Navigation" arguments="{calendarNav: calendarNav, action: 'overview'}" />

    <div class="table-wrapper">
        <table class="calendar-overview" width="100%">
            <tr class="calendar-overview-row calendar-overview-dates">
                <f:spaceless>
                    <td class="calendar-overview-calendar calendar-overview-date-empty">
                        &nbsp;
                    </td>
                    <f:for each="{dates}" as="day">
                        <td class="calendar-overview-day">
                            {day->f:format.date(format: '%A, %d. %B')}
                        </td>
                    </f:for>
                </f:spaceless>
            </div>
            <f:for each="{calendars}" as="calendar" iteration="it">
                <f:render partial="Calendar/Overview" arguments="{_all}" />
            </f:for>
        </table>
    </div>
    <div class="pdf-export-link frame-space-before-small">
        <f:link.action action="pdfExport" arguments="{search: {date: search.date}}"><span>PDF Export</span></f:link.action>
    </div>
</f:section>

</html>
