{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{status} === 'closed'">
    <f:then>
        <f:if condition="{info}">
            <f:then>
                <p>
                    <strong class="text-negative">
                        <vh:translate id="header.closed" package="Newland.Toubiz.Poi.Neos" source="Views/Show"/>:
                    </strong>
                </p>
                {info -> f:format.raw()}
            </f:then>
            <f:else>
                <p>
                    <strong class="text-negative">
                        <vh:translate id="header.closed" package="Newland.Toubiz.Poi.Neos" source="Views/Show"/>
                    </strong>
                </p>
            </f:else>
        </f:if>
    </f:then>
    <f:else if="{status} === 'open'">
        <f:if condition="{info}">
            <f:then>
                <p>
                    <strong class="text-positive">
                        <vh:translate id="header.open" package="Newland.Toubiz.Poi.Neos" source="Views/Show"/>:
                    </strong>
                </p>
                {info -> f:format.raw()}
            </f:then>
            <f:else>
                <p>
                    <strong class="text-positive">
                        <vh:translate id="header.open" package="Newland.Toubiz.Poi.Neos" source="Views/Show"/>
                    </strong>
                </p>
            </f:else>
        </f:if>
    </f:else>
    <f:else if="{info}">
        <p>
            <strong>
                <vh:translate id="header.info" package="Newland.Toubiz.Poi.Neos" source="Views/Show"/>:
            </strong>
        </p>
        {info -> f:format.raw()}
    </f:else>
</f:if>
