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:
@@ -67,6 +67,7 @@
|
||||
.totals .amt { font-size: 22px; font-weight: 700; color: {{ $themeColor }}; }
|
||||
footer { text-align: center; padding: 24px 16px; color: #9ca3af; font-size: 12px; }
|
||||
|
||||
[x-cloak] { display: none !important; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body { background: #0f172a; color: #e5e7eb; }
|
||||
.card { background: #1e293b; box-shadow: none; }
|
||||
@@ -80,6 +81,7 @@
|
||||
footer { color: #64748b; }
|
||||
}
|
||||
</style>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header style="position:relative;">
|
||||
@@ -228,5 +230,8 @@
|
||||
{{ __('portal.common.powered_by') }}
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@php $themeColor = $tenant->settings['theme_color'] ?? '#3B82F6'; @endphp
|
||||
@include('partials.cookie-banner')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user