<pad-utility-style href="../Styles/blockWithStyling.css"/>
<pad-if _:if:_="dayPart->isELearning" _:if-1:_="config->showELearning">
    <li class="pad-daypart-list-item pad-template-blockWithStyling pad-eLearning">
        <div>
            {{dayPart->name}}<pad-if _:if:_="validStartDate"> actief vanaf  <pad-utility-date _:time:_="dayPart->startTime" format="d-m-Y"/></pad-if>
        </div>

        <pad-utility-style selected-style="tags"/>
        <div class="pad-tags">
            <pad-if _:if:_="config->showLabels" _:if-1:_="dayPart->labels">
                <pad-for _:in:_="dayPart->labels" as="label">
                    <div class="pad-label pad-tag">
                        <pad-if _:if:_="config->showIcons">
                            <i class="fas fa-tags fa-fw"></i>
                        </pad-if>
                        {{label}}
                    </div>
                </pad-for>
            </pad-if>

            <pad-if _:if:_="config->showELearningLabel">
                <div class="pad-tag pad-eLearningLabel" title="{{_'cursus bevat elearning'}}">
                    <pad-if _:if:_="config->showIcons">
                        <i class="fas fa-book"></i>
                    </pad-if>
                    {{_"e-learning"}}
                </div>
            </pad-if>
        </div>

        <div class="pad-daypart-description">
            <pad-if _:if:_="config->showDescription">
                <pad-utility-user_html _:template:_="dayPart->description"/>
            </pad-if>
        </div>
    </li>
</pad-if>

<pad-if _:if:_="dayPart->isELearning" not>
    <li class="pad-daypart-list-item pad-blockWithStyling">
        <div>
            {{dayPart->name}}<pad-if _:if:_="validStartDate"> op <pad-utility-date _:time:_="dayPart->startTime" format="d-m-Y"/></pad-if>
            van <pad-utility-date _:time:_="dayPart->startTime" format="H:i"/>
            tot <pad-utility-date _:time:_="dayPart->endTime" format="H:i"/>
            <pad-if _:if:_="config->showLocation" _:if-2:_="location">
                <pad-utility-user_text_template _:data:_="locationTemplateData" _:template:_="config->locationTemplate"/>
            </pad-if>
        </div>

        <pad-if _:if:_="config->showLabels" _:if-1:_="dayPart->labels">
            <pad-utility-style selected-style="tags"/>
            <div class="pad-tags" title="{{config->dayPartText}} heeft deze labels">
                <pad-for _:in:_="dayPart->labels" as="label">
                    <div class="pad-label pad-tag">
                        <pad-if _:if:_="config->showIcons">
                            <i class="fas fa-tags fa-fw"></i>
                        </pad-if>
                        {{label}}
                    </div>
                </pad-for>
            </div>
        </pad-if>

        <pad-if _:if:_="config->showDescription">
            <div class="pad-daypart-description">
                <pad-utility-user_html _:template:_="dayPart->description"/>
            </div>
        </pad-if>
    </li>
</pad-if>