@php $securityOpenSection = request()->query('security_section', 'security-iplocate'); $securitySections = [ [ 'id' => 'security-iplocate', 'title' => __('translate.IP Security (IPLocate.io)'), 'partial' => 'generalsetting::partials.ip_security_iplocate_form', ], [ 'id' => 'security-contact', 'title' => __('translate.Contact reveal protection'), 'partial' => 'generalsetting::partials.ip_security_contact_reveal_form', ], [ 'id' => 'security-phone', 'title' => __('translate.Phone Verification (Veriphone)'), 'partial' => 'generalsetting::partials.phone_verification_form', ], [ 'id' => 'security-email', 'title' => __('translate.Email Deliverability (Local DNS/MX)'), 'partial' => 'generalsetting::partials.email_deliverability_form', ], [ 'id' => 'security-password', 'title' => __('translate.Password Policy'), 'partial' => 'generalsetting::partials.password_policy_form', ], ]; $validIds = array_column($securitySections, 'id'); if (! in_array($securityOpenSection, $validIds, true)) { $securityOpenSection = 'security-iplocate'; } @endphp @push('style_section') @endpush