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/cta/cta--bar.blade.php
@php

    // Make default settings if isn't defined
    if(!isset($headingTitle)) $headingTitle = __('site/global.ctaBar.title');
    if(!isset($headingSubTitle)) $headingSubTitle = __('site/global.ctaBar.subtitle');
    if(!isset($buttons) && isset($links->bookADemo) && isset($links->contact)){

        $buttons = [
            (object)[
                    'text' => __('site/global.ctaBar.buttons')[0],
                    'route' => ( config('site.trailForm') != null ? config('site.trailForm') : '/' . $links->contact->route),
                    'preventBlank' => (config('site.trailForm') != null ? true : false)
                ],
                (object)[
                    'text' => __('site/global.ctaBar.buttons')[1],
                    'route' => '/' . $links->bookADemo->route,
                ],
        ];
    }

    if(!isset($buttons)) {
         $buttons = [
            (object)[
                    'text' => __('site/global.ctaBar.buttons')[0],
                    'route' => ( config('site.trailForm') != null ? config('site.trailForm') : '/' . $links->contact->route),
                    'preventBlank' => (config('site.trailForm') != null ? true : false)
                ],
        ];
    }

@endphp


<div class="c-cta  c-cta--bar">
    <div class="c-cta__main">
        <div class="c-cta__content">
            @if( \App::getLocale() === 'ru')
                <div class="c-heading c-heading--is-inverted">
                    @if(!empty($headingSubTitle))
                        <p class="c-heading__subtitle">{!! $headingSubTitle !!}</p>
                    @endif
                </div>
            @else
                @include('site.components.heading', [ 'modifiers' => ['is-inverted']])
            @endif
        </div>

        <div class="c-cta__actions">
            @if(isset($buttons[0]))
                <div class="c-cta__button">
                    @include('site.components.buttonLink', ['buttonText' => $buttons[0]->text, 'buttonLink' => $buttons[0]->route, 'preventBlank' => $buttons[0]->preventBlank])
                </div>

                <div class="c-cta__button">
                    @if(isset($buttons[1]))
                        @include('site.components.buttonLink', ['buttonText' => $buttons[1]->text, 'buttonLink' => $buttons[1]->route, 'modifiers' => ['filled']])
                    @endif
                </div>
            @endif
        </div>

    </div>
</div>