File: D:/HostingSpaces/debout/debout.nl/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.save_settings')!!}
</button>
</aside>