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/SBogers68/ouddorp-duin.nl/app/views/layouts/partials/cta.blade.php
<div class="grid-row @if($page->code_name != 'home')cta-block-default @else cta-block @endif">
    <div class="grid-col col-12">

    {{--If sentence and buttons values are specified in the code--}}
    @if(isset($sentence, $button, $layout, $buttonLink))

        @if($layout == 'home')

            {{-- custom cta block for homepage --}}
            <div class="cta-content-wrapper cta-home">
                <h2 class="cta-sentence">{{ $sentence }}</h2>
                <a href="{{ $buttonLink }}" class="cta-button">{{ $button }}</a>
            </div>

        @elseif($layout == 'default')

            {{-- default block for cta --}}
            <div class="cta-content-wrapper cta-default">
                <h2 class="cta-sentence">{{ $sentence }}</h2>
                <a href="{{ $buttonLink }}" class="cta-button" @if(isset($blank) && $blank) target="_blank" @endif>{{ $button }}</a>
            </div>

        @endif

    {{--The sentence and buttons are specified in KMS (dynamic content)--}}
    @else

            <div class="cta-content-wrapper cta-default">
                <h2 class="cta-sentence">{{ $block->sentence }}</h2>
                @if(isset($block->buttonLink) && $block->buttonLink != '')
                <a href="{{$block->buttonLink}}" target="_blank" class="cta-button">{{ $block->button }}</a>
                    @else
                    <p>Fill in a link in kms</p>
                @endif
            </div>

    @endif

    </div>
</div>