feat: cookie policy & consent banner per Moldova law 195/2024

- Settings page: new "Politica Cookie" section — toggle banner on/off,
  editable RO/RU policy text (defaults to full 14-section template)
- Public route GET /cookie-policy → CookiePolicyController returns
  locale-aware full policy page with tenant branding
- Cookie banner partial (Alpine.js, localStorage) shown on tracking and
  landing pages; Accept/Reject stores consent, banner dismisses
- Translation keys added to lang/ro/portal.php and lang/ru/portal.php
- Alpine.js (CDN) added to tracking and landing pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 17:52:23 +00:00
parent 753e81d292
commit 68f58cbcdc
9 changed files with 591 additions and 0 deletions
+10
View File
@@ -153,4 +153,14 @@ return [
'reset_title' => 'Задать новый пароль',
'reset_button' => 'Установить пароль',
],
'cookie' => [
'policy_title' => 'Политика использования cookie-файлов',
'back' => 'Назад',
'banner_title' => 'Мы используем cookie',
'banner_body' => 'Мы используем cookie-файлы для работы сайта и улучшения вашего опыта. Строго необходимые cookie используются без согласия (Закон № 195/2024).',
'read_policy' => 'Политика cookie',
'accept' => 'Принять все',
'reject' => 'Только необходимые',
],
];