My Communication Preferences

@csrf @foreach ($enabled_scopes as $enabled_scope) @php $scope_preferences = !empty($communication_preferences[$enabled_scope]) ? $communication_preferences[$enabled_scope] : null; @endphp @if (!empty($scope_preferences)) @php $scope_preferences = isset($scope_preferences['DPAData']) ? $scope_preferences['DPAData'] : $scope_preferences; @endphp
@php $title = $enabled_scope == 'Brand' ? 'Premier' : $enabled_scope; @endphp {{ $title }}
@foreach ($scope_preferences as $label => $preference) @php $enabled = $preference['Use'] === 'True' ? "checked" : ''; $disabled = $preference['Use'] !== 'True' ? "checked" : ''; @endphp @endforeach
Ok to use Do not use
{{ $label }}
@endif @endforeach