61 lines
3.0 KiB
PHP
Executable File
61 lines
3.0 KiB
PHP
Executable File
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="max-w-4xl mx-auto py-10 px-4 sm:px-6 lg:px-8">
|
|
<div class="bg-white shadow rounded-lg p-6">
|
|
<h1 class="text-3xl font-bold text-gray-900 mb-6">{{ __('legal.consent_history') }}</h1>
|
|
|
|
<div class="overflow-x-auto">
|
|
<table class="min-w-full divide-y divide-gray-200">
|
|
<thead class="bg-gray-50">
|
|
<tr>
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">{{ __('legal.date') }}</th>
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">{{ __('legal.terms_version') }}</th>
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">{{ __('legal.privacy_version') }}</th>
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">{{ __('legal.cookie_version') }}</th>
|
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">{{ __('legal.ip_address') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="bg-white divide-y divide-gray-200">
|
|
@forelse ($consents as $consent)
|
|
<tr>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
{{ $consent->accepted_at->format('d/m/Y H:i:s') }}
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
{{ $consent->terms_version }}
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
{{ $consent->privacy_version }}
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
{{ $consent->cookie_version }}
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
{{ $consent->ip_address ?? 'N/A' }}
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="5" class="px-6 py-4 text-center text-sm text-gray-500">
|
|
{{ __('legal.no_consents') }}
|
|
</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="mt-6">
|
|
{{ $consents->links() }}
|
|
</div>
|
|
|
|
<div class="mt-6">
|
|
<a href="{{ route('legal.terms') }}" class="text-indigo-600 hover:text-indigo-900">
|
|
{{ __('legal.back_to_terms') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|