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/sdo/sdoschoonmaak.nl/resources/views/site/pages/about.blade.php
@extends('site.pages.default')

@section('content')

    <section class="dynamic-content">
        <div class="grid-row">

            {{-- We need to do it so to prevent property overload... --}}
            @php
                $dynamicBlocks = $page->translation->description;
                $firstBlock = array_shift($dynamicBlocks);
                $page->translation->description = $dynamicBlocks;
            @endphp

            @if($firstBlock->status && isset($firstBlock->code_name) && $firstBlock->code_name == '')
                @if(isset($firstBlock->view) && $firstBlock->view != '')
                    @include($firstBlock->view, ['order' => 'p1'])
                @else
                    @include('site.partials.dynamic.'.$firstBlock->typeSlug, [ 'block' => $firstBlock, 'order' => 'p1'])
                @endif
            @endif

        </div>
    </section>

    @include('site.partials.blocks.reasonsRow', [
        'title' => trans('site/about.whyUs'),
        'listIcons' => 'arrows',
        'reasons' => trans('site/about.reasons'), //Should be an array
        'button' => (object)[
            'link' => "/".$links->method->route,
            'text' => trans('site/about.buttonLabel'),
        ],
        'rightSide' => $page->translation->reasonsRow
    ])

    <section class="dynamic-content">
        <div class="grid-row">

            @if(isset($page->translation->osb))
                @include('site.partials.osb', ['block' => $page->translation->osb] )
            @endif

        </div>
    </section>


    @include('site.partials.blocks.buttonsRow', ['buttons' => [
            (object)[
                'text' => $links->method->name,
                'link' => '/' . $links->method->route,
            ],
            (object)[
                'text' => $links->services->name,
                'link' => '/' . $links->services->route,
            ],

        ]])

@endsection