@php $gdpr = $gdprSettings ?? []; $gdprEnabled = filter_var($gdpr['gdpr_enabled'] ?? false, FILTER_VALIDATE_BOOLEAN); $gdprConsentValue = $gdprConsent ?? null; $gdprMessage = trim((string) ($gdpr['gdpr_message'] ?? '')); if ($gdprMessage === '') { $gdprMessage = __('We use cookies to enhance your shopping experience and analyze site traffic.'); } $acceptLabel = trim((string) ($gdpr['gdpr_accept_label'] ?? '')); $declineLabel = trim((string) ($gdpr['gdpr_decline_label'] ?? '')); @endphp @if ($gdprEnabled && empty($gdprConsentValue)) @endif