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/cookie/cookieSwitch.blade.php
<aside class="c-cookie-switch  js-cookie-switch">
    <h3 class="c-cookie-switch__title">{!! __('site/cookies.switch.title')!!}</h3>
    <p class="c-cookie-switch__text">{!! __('site/cookies.switch.text')!!}</p>

    <div class="c-cookie-switch__settings">
        @foreach(__('site/cookies.types') as $cookieTypeKey => $cookieType)
            <label class="c-cookie-type @if($cookieTypeKey == 'analytic')  c-cookie-type--static  @endif  js-change-cookie-setting">
                <input class="c-cookie-type__input  c-cookie-type__input--{{$cookieTypeKey}}" type="checkbox"

                       {{-- Read the settins of tracking cookie--}}
                        @if($cookieTypeKey == 'tracking')
                               {{ debug( \Cookie::get('trackingCookieAccepted', null) ) }}
                            @if( \Cookie::get('trackingCookieAccepted', null) !== null ) )
                                checked
                            @endif
                        @else
                            checked
                        @endif
                />
                <span class="c-cookie-type__text">
                    <strong class="c-cookie-type__title">{!! __('site/cookies.types.' . $cookieTypeKey .'.title') !!}</strong>
                    {!! __('site/cookies.types.' . $cookieTypeKey .'.description') !!}
                </span>
            </label>
        @endforeach
    </div>

    <button class="c-cookie-switch__button  js-save-cookie-settings" >
        {!! __('site/cookies.switch.saveSettings')!!}
    </button>
</aside>