feat: complete cookie consent with categories & technical processing

- Full 4-category consent modal: Necesare (locked) / Funcționale /
  Analitice / Marketing with toggle switches per category
- Banner shows simple view first; "Personalizează" opens detailed panel
- Consent stored as JSON in localStorage (cookie_consent_v2)
- window.cookieConsent object set on load; dispatches
  cookie-consent-updated / cookie-analytics-granted / cookie-marketing-granted
  CustomEvents for deferred script loading
- Floating 🍪 FAB button lets users re-open settings at any time
- Policy page: "Personalizează" button resets consent, reopens modal
- Full RO/RU translation for all categories and UI strings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 20:39:13 +00:00
parent 68f58cbcdc
commit c3e4b99d4b
5 changed files with 284 additions and 100 deletions
-1
View File
@@ -231,7 +231,6 @@
</footer>
</div>
@php $themeColor = $tenant->settings['theme_color'] ?? '#3B82F6'; @endphp
@include('partials.cookie-banner')
</body>
</html>