<div class="pad-course">
    <div class="pad-title">
        <pad-course-detail_link pad-template="linkOnly">
            {{course->name}}
        </pad-course-detail_link>
    </div>
    <div class="pad-date">
        <i class="fas fa-calendar"></i> {{_"Startdatum"}}: <pad-utility-date _:time:_="course->earliestDayPart->startTime" fallback="-"/>

        <pad-if _:if:_="config->showStartGuaranteed" _:if-1:_="course->startGuaranteed">
            <span class="label_startguaranteed label label-success" title="{{_'heeft startgarantie'}}">
                <i class="fas fa-check"></i>{{_"Startgarantie"}}
            </span>
        </pad-if>

        <pad-if _:if:_="availableSpots" equals="0">
            <div class="pad-full"><i class="fas fa-exclamation-triangle"></i> {{_"Cursus is vol"}}</div>
        </pad-if>
    </div>

    <pad-if _:if:_="config->showDayParts" _:if-1:_="course->dayParts">
        <ul class="pad-detail-dayparts">
            <pad-for _:in:_="course->dayParts" as="dayPart">
                <pad-day_part-list_item _:day-part:_="dayPart" pad-template="blockList"/>
            </pad-for>
        </ul>
    </pad-if>

    <hr class="line">

    <pad-if _:if:_="config->showDescription">
        <div class="pad-description">
            {{description}}
        </div>
    </pad-if>

    <pad-if _:if:_="config->showDayPartsCount">
        <div class="pad-dayparts" title="{{_'cursus bestaat uit zoveel delen'}}">
            <i class="fas fa-recycle"></i> <pad-course-day_part_amount _:include-e-learning:_="config->includeELearningDayParts" /> {{config->dayPartText}}
        </div>
    </pad-if>

    <pad-if _:if:_="config->showLocation">
        <div class="pad-place" title="{{_'cursus start in deze plaats'}}">
            <i class="fas fa-map-marker-alt"></i>
            <pad-if _:if:_="course->earliestDayPart->locations->0">
                <pad-utility-user_text_template _:data:_="locationTemplateData" _:template:_="config->locationTemplate"/>
            </pad-if>
            <pad-if _:if:_="course->earliestDayPart->locations->0" not>
                -
            </pad-if>
        </div>
    </pad-if>

    <pad-if _:if:_="config->showELearning" _:if-2:_="course->hasELearning">
        <div class="pad-courseelearning" title="{{_'cursus bevat elearning'}}">
            <i class="fas fa-book"></i>{{_"e-learning"}}
        </div>
    </pad-if>

    <pad-if _:if:_="config->showAvailableSpots">
        <div class="pad-available" title="{{_'plaatsen beschikbaar'}}">
            <i class="fas fa-user-cog"></i> {{availableSpots}} {{_"beschikbaar"}}
        </div>
    </pad-if>

    <pad-if _:if:_="config->showPrice">
        <div class="pad-costs" title="{{_'prijs per persoon'}}">
            <i class="fas fa-money-bill"></i> <pad-utility-price _:data:_="course->costsData" both="0" pp="1" _:tax:_="config->withTax"/>
        </div>
    </pad-if>

    <pad-if _:if:_="config->showMoneyBack" _:if-1:_="course->moneyBackGuaranteed">
        <div class="pad-moneygaranteed" title="{{_'niet goed, geld terug garantie!'}}"><i class="fas fa-money-bill-alt"></i>{{_"Geld terug garantie"}} </div>
    </pad-if>

    <pad-if _:if:_="config->showCode95" _:if-1:_="course->hasCode95">
        <div class="pad-code95" title="{{_'cursus heeft code95'}}"><i class="fas fa-clock fa-fw"></i>{{_"Code95"}} </div>
    </pad-if>

    <pad-if _:if:_="config->showSoob" _:if-1:_="course->hasSoob">
        <div class="pad-soob" title="{{_'cursus heeft SOOB subsidie'}}"><i class="fas fa-truck fa-fw"></i>{{_"SOOB subsidie"}} </div>
    </pad-if>

    <pad-if _:if:_="config->showLabels" _:if-1:_="course->labels">
        <div class="pad-labels" title="{{_'cursus heeft deze labels'}}"><i class="fas fa-tags fa-fw"></i>
            <pad-for _:in:_="course->labels" as="label" implode=", ">{{label}}</pad-for>
        </div>
    </pad-if>

    <pad-if _:if:_="config->showCostRemark">
        <div class="pad-detail-costs-remarks">
            {{course->costsData->remark}}
        </div>
    </pad-if>

    <pad-if _:if:_="config->showDetailButton" _:if-2:_="availableSpots">
        <div class="pad-button" title="{{_'Bekijk details van deze cursus'}}">
            <pad-course-detail_link pad-template="button"/>
        </div>
    </pad-if>
</div>