First Commit

This commit is contained in:
marco
2026-09-01 09:22:30 -03:00
commit a43ae23eb4
407 changed files with 36138 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
@extends('layouts.app')
@section('header', __('legal_documents.documents_management'))
@section('breadcrumbs')
@php
$breadcrumbs = [
__('legal_documents.documents_management') => route('legal.documents.index'),
];
@endphp
@endsection
@section('content')
<div class="card shadow">
<div class="card-header py-3 d-flex justify-content-between align-items-center">
<h6 class="m-0 fw-bold text-primary">@lang('legal_documents.documents_management')</h6>
<a href="{{ route('legal.document.edit', 'terms-of-service') }}" class="btn btn-sm btn-primary">
<i class="bi bi-file-earmark-text"></i> @lang('legal_documents.edit')
</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>@lang('legal_documents.type')</th>
<th>@lang('legal_documents.title')</th>
<th>@lang('legal_documents.version')</th>
<th>@lang('legal_documents.published_at')</th>
<th>@lang('legal_documents.actions')</th>
</tr>
</thead>
<tbody>
@forelse($documents->groupBy('type') as $type => $docs)
@php $latest = $docs->first(); @endphp
<tr>
<td>
@if($latest->type === 'terms-of-service')
<span class="badge bg-primary">@lang('legal_documents.terms_of_service')</span>
@elseif($latest->type === 'privacy-policy')
<span class="badge bg-success">@lang('legal_documents.privacy_policy')</span>
@endif
</td>
<td>{{ $latest->title }}</td>
<td><span class="badge bg-secondary">{{ $latest->version }}</span></td>
<td>{{ $latest->published_at ? $latest->published_at->format('d/m/Y H:i') : __('legal_documents.not_published') }}</td>
<td>
<a href="{{ route('legal.document.show', $latest->type) }}" class="btn btn-sm btn-outline-primary" target="_blank">
<i class="bi bi-eye"></i>
</a>
<a href="{{ route('legal.document.edit', $latest->type) }}" class="btn btn-sm btn-outline-secondary">
<i class="bi bi-pencil"></i>
</a>
</td>
</tr>
@empty
<tr>
<td colspan="5" class="text-center text-muted">@lang('legal_documents.no_documents')</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection