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/buttonRow.blade.php
@php
    // Set default settings if not defined
    if(!isset($buttons)){
        $buttons = [
            (object)[
                    'text' => __('site/global.buttonRow.buttons')[0],
                    'route' => '/' . $links->contact->route,
                    'class' => '',
                    'modifiers' => ['icon'],
                    'dataIconDirection' => ''
                ],
                (object)[
                    'text' => __('site/global.buttonRow.buttons')[1],
                    'route' => '/' . $links->contact->route,
                    'class' => '',
                    'modifiers' => ['large', 'icon'],
                    'dataIconDirection' => ''
                ],
        ];
    }
@endphp


<div class="c-buttonrow">
    <div class="c-buttonrow__section  {{ isset($buttons[0]) && isset($buttons[0]->sectionClasses) ? $buttons[0]->sectionClasses : '' }}">
        @if(isset($buttons[0]))
            @include('site.components.textButtonLink', [
                'textButtonText' => $buttons[0]->text,
                'textButtonLink' => $buttons[0]->route,
                'class' => $buttons[0]->class,
                'modifiers' => $buttons[0]->modifiers,
                'preventBlank' => isset($buttons[0]->preventBlank) ? $buttons[0]->preventBlank : false,
                'dataIconDirection' => $buttons[0]->dataIconDirection
            ])
        @endif
    </div>

    @if(isset($buttons[0]) && isset($buttons[1]) && isset($orLabel) && $orLabel)
        <div class="c-buttonrow__section  c-buttonrow__section--divider">or</div>
    @endif

    <div class="c-buttonrow__section   {{ isset($buttons[1]) && isset($buttons[1]->sectionClasses) ? $buttons[1]->sectionClasses : '' }}">
        @if(isset($buttons[1]))
            @include('site.components.buttonLink', [
                'buttonText' => $buttons[1]->text,
                'buttonLink' => $buttons[1]->route,
                'class' => $buttons[1]->class,
                'modifiers' => $buttons[1]->modifiers,
                'preventBlank' =>  isset($buttons[1]->preventBlank) ? $buttons[1]->preventBlank : false,
            ])
        @endif
    </div>
</div>