Implement legal document acceptance tracking requiring users to accept terms of service and privacy policy before continuing to use the system. Add automatic generation of standard project files (LICENSE, README.md, RULES.md, cookies.html, termos-de-uso.html, privacidade.html) with download functionality. Enhance prompt building with detailed Portuguese instructions and system requirements. Update seeders with comprehensive legal content and standard files configuration for all prompt templates.
42 lines
1.7 KiB
PHP
Executable File
42 lines
1.7 KiB
PHP
Executable File
@extends('layouts.legal')
|
|
|
|
@section('header', $document->title)
|
|
|
|
@section('breadcrumbs')
|
|
@php
|
|
$breadcrumbs = [
|
|
'Início' => route('welcome'),
|
|
($document->type === 'terms-of-service' ? 'Termos de Uso' : 'Política de Privacidade') => route('legal.document.show', $document->type),
|
|
];
|
|
@endphp
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="card shadow">
|
|
<div class="card-header py-3">
|
|
<div>
|
|
<h5 class="m-0 fw-bold text-primary">{{ $document->title }}</h5>
|
|
<small class="text-muted">Versão {{ $document->version }} - {{ $document->published_at ? $document->published_at->format('d/m/Y') : 'Não publicado' }}</small>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="legal-content">
|
|
{!! nl2br(e($document->content)) !!}
|
|
</div>
|
|
@if($pendingAcceptance ?? false)
|
|
<hr>
|
|
<div class="alert alert-info">
|
|
<i class="bi bi-info-circle me-2"></i>
|
|
Para continuar utilizando o sistema, você precisa aceitar esta versão dos {{ $document->type === 'terms-of-service' ? 'Termos de Uso' : 'Política de Privacidade' }}.
|
|
</div>
|
|
<form method="POST" action="{{ route('legal.document.accept', $document->type) }}">
|
|
@csrf
|
|
<button type="submit" class="btn btn-primary btn-lg w-100">
|
|
<i class="bi bi-check-circle me-2"></i> Aceitar {{ $document->type === 'terms-of-service' ? 'Termos de Uso' : 'Política de Privacidade' }}
|
|
</button>
|
|
</form>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endsection
|