@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 keep the admin panel secure and reliable.'); } $acceptLabel = trim((string) ($gdpr['gdpr_accept_label'] ?? __('Accept'))); $declineLabel = trim((string) ($gdpr['gdpr_decline_label'] ?? __('Decline'))); @endphp @if ($gdprEnabled && empty($gdprConsentValue))
@endif