@extends('layouts.main') @section('title', 'Termos LGPD') @section('page-title', 'Termos de consentimento versionados') @section('page-subtitle', 'Publicação e re-aceite quando o termo mudar') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

Versões ativas

@foreach($activeBySlug as $slug => $version)

{{ config('lgpd.consent_slugs.'.$slug, $slug) }}

v{{ $version?->version ?? '—' }}

{{ $version?->title ?? 'Usando fallback de config' }}

@endforeach

Publicar nova versão

@csrf

Histórico

@foreach($versions as $v) @endforeach
Publicado Slug Versão Título Ativo
{{ $v->published_at?->format('d/m/Y H:i') ?? '—' }} {{ $v->slug }} {{ $v->version }} {{ $v->title }} {{ $v->is_active ? 'Sim' : 'Não' }}
{{ $versions->links() }}
@endsection