File: D:/HostingSpaces/SBogers10/momsecurity.komma.nl/resources/views/components/servicePoint.blade.php
@if(isset($servicePoint))
<div class="c-servicepoint">
<img class="c-servicepoint__image"
src="{{ ($servicePoint->documents && count($servicePoint->documents) > 0) ? $servicePoint->documents[0]->small_image_url : '/img/placeholder-person.svg'}}"
@if(!empty($servicePoint->translation->first_name) || !empty($servicePoint->translation->last_name))
alt="{{$servicePoint->translation->first_name}} {{$servicePoint->translation->last_name}}"
@endif>
<div class="c-servicepoint__content">
@if(!empty($servicePoint->translation->first_name) || !empty($servicePoint->translation->last_name) || !empty($servicePoint->translation->function))
<div class="c-servicepoint__header">
@if(!empty($servicePoint->translation->first_name) || !empty($servicePoint->translation->last_name))
<h3 class="c-servicepoint__heading">@if(!empty($servicePoint->translation->first_name)) {{$servicePoint->translation->first_name}} @endif @if(!empty($servicePoint->translation->last_name)) {{$servicePoint->translation->last_name}} @endif</h3>
@endif
</div>
@endif
@if(!empty($servicePoint->translation->telephone_label) || !empty($servicePoint->translation->email))
<div class="c-servicepoint__body">
@if(!empty($servicePoint->translation->telephone_label))
<p class="c-servicepoint__data"><a href="tel:{!! $servicePoint->translation->telephone_url !!}">{!! $servicePoint->translation->telephone_label !!}</a></p>
@endif
@if(!empty($servicePoint->translation->email))
<p class="c-servicepoint__data"><a href="mailto:{!! $servicePoint->translation->email !!}">{!! $servicePoint->translation->email !!}</a></p>
@endif
</div>
@endif
@if(isset($buttonText) && isset($buttonLink))
<div class="c-servicepoint__footer">
@include('components.button', [
'modifiers' => ['icon', 'ghost'],
'buttonText' => $buttonText,
'buttonLink' => $buttonLink
])
</div>
@endif
</div>
</div>
@endif