HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/stafa/stafa.nl/resources/views/site/organisms/eventcard.blade.php
@if(!empty($model->link))
<a class="c-eventcard" href="http://{{$model->link}}" target="_blank">
@else
<div class="c-eventcard">
@endif
    <article class="c-eventcard__frame">
        <div class="c-eventcard__content">
            <div class="c-eventcard__header">
                <div class="c-eventcard__date">
                    <time class="c-eventcard__year" datetime="{{$model->date->year}}">{{$model->date->year}}</time>
                    <time class="c-eventcard__period" datetime="{{$model->date->format('d-m-y')}} @if($model->end_date)/ {{$model->end_date->format('d-m-y')}} @endif">
                        @if(empty($model->end_date))
                            <span>{{$model->date->format('d')}} @lang('calendar.month_names_short.' . ($model->date->month - 1))</span>
                        @else
                            <span>{{$model->date->format('d')}} @if($model->date->month != $model->end_date->month) @lang('calendar.month_names_short.' . ($model->date->month - 1))@endif</span>
                            <span>&dash;&nbsp;{{ $model->end_date->format('d') }} @lang('calendar.month_names_short.' . ($model->end_date->month - 1))</span>
                        @endif
                    </time>
                </div>
                @if(!empty($model->images->first()))
                    <img class="c-eventcard__image" src="{{$model->images->first()->thumb_image_url}}" alt="{{$model->images->first()->name}}"/>
                @endif
            </div>

            <h2 class="c-eventcard__title">{{$model->translation->name}}</h2>

            @if(!empty($model->stand_number))
                <p class="c-eventcard__standnumber">{{$model->stand_number}}</p>
            @endif

            <p class="c-eventcard__location">{{$model->translation->location}}</p>

            @if(!empty($model->link))
                <div class="c-eventcard__link">
                    @include('site.components.button', [
                        'buttonText' => $model->link,
                        'type' => 'text',
                        'tagName' => 'div'
                    ])
                </div>
            @endif
        </div>
    </article>
@if(!empty($model->link))
    </a>
@else
    </div>
@endif