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/SBogers95/rentman.io/resources/views/site/components/announcements.blade.php
@if($announcements->isNotEmpty())
<div class="c-announcements js-announcements">
    @foreach($announcements as $announcement)

        @php
            // To keep the code below clean we grab the label for the announcement type here
            $announcementType = \App\Komma\Announcements\Models\Announcement::$types[$announcement->type];
        @endphp

    <{{ !empty($announcement->url) ? 'a' : 'div' }}
            @if(!empty($announcement->url))
            href="{{ $announcement->url }}"
        @if($announcement->target_blank)
            target="_blank"
        @endif
        @endif
        data-country-setting="{{ $announcement->country_setting }}"
        @if($announcement->country_ids)
            data-countries="{{ $announcement->country_ids }}"
        @endif

        class="js-announcements-item c-announcements__item  c-announcements__item--{{ $announcementType }}"
    >

        <div class="c-announcements__label">@lang('site/global.announcement_types.' . $announcementType)</div>
        <div class="c-announcements__message">
            {!! $announcement->message !!}
            @if(!empty($announcement->url))
                <span class="c-announcements__arrow">
@include('site.components.icons.arrowhead')
</span>
            @endif
        </div>

</{{ !empty($announcement->url) ? 'a' : 'div' }}>
@endforeach

</div>
@endif