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

<cal:calendar.isAdmin calendar="{calendar}">
    <f:then>
        <table class="table-event-show">
            <tr>
                <th>Name</th>
                <th>Adresse</th>
                <th>PLZ/Ort</th>
                <th>E-Mail</th>
            </tr>
            <f:for each="{event.reservationsSortedByName}" as="reservation" iteration="iterator">
                <tr>
                    <td>
                        {reservation.frontendUser.lastName} {reservation.frontendUser.firstName}
                    </td>
                    <td>
                        {f:if(condition: reservation.name, then: 'Gast: {reservation.name}')}
                        {f:if(condition: reservation.frontendUser.address, then: '{reservation.frontendUser.address}')}
                    </td>
                    <td> {f:if(condition: reservation.frontendUser.city, then: '
                        {reservation.frontendUser.zip} {reservation.frontendUser.city}')}
                    </td>
                    <td>{f:if(condition: reservation.frontendUser.email,then: '
                        {reservation.frontendUser.email}')}
                    </td>
                </tr>
            </f:for>
        </table>
    </f:then>
</cal:calendar.isAdmin>

</html>
