Refactor table structure in admin documentation versions view

- Consolidate category and documentation sections under a single table.
- Adjust layout for clarity and consistency.
This commit is contained in:
2026-07-25 02:09:15 +05:00
parent 5f0958f42e
commit 7a1b9ecda1
@@ -39,9 +39,7 @@
<table class="table table-centered table-nowrap mb-0 rounded">
<thead class="thead-light">
<tr>
<td><h5>{{ __('admin-sections.Categories') }}</h5></td>
</tr>
<tr>
<th class="border-0">{{ __('validation.attributes.type') }}</th>
<th class="border-0">{{ __('validation.attributes.title') }}</th>
<th class="border-0">{{ __('validation.attributes.slug') }}</th>
<th class="border-0">{{ __('validation.attributes.is_public') }}</th>
@@ -51,6 +49,9 @@
<tbody>
@forelse($categories as $category)
<tr>
<td>
{{ __('admin-sections.Categories') }}
</td>
<td>
@can('view', $category)
<a href="{{ route('admin.projects.documentation-versions.category.show', ['project' => $project->id, 'version' => $version->id, 'category' => $category->id]) }}" class="text-decoration-none text-dark">
@@ -100,19 +101,11 @@
</td>
</tr>
@endforelse
</tbody>
<tbody>
<tr>
<td><h5>{{ __('admin-sections.Documentation') }}</h5></td>
</tr>
<tr class="thead-light">
<th class="border-0">{{ __('validation.attributes.title') }}</th>
<th class="border-0">{{ __('validation.attributes.slug') }}</th>
<th class="border-0">{{ __('validation.attributes.is_public') }}</th>
<th class="border-0 rounded-end" style="width: 150px"></th>
</tr>
@forelse($documentations as $documentation)
<tr>
<td>
{{ __('admin-sections.Documentation') }}
</td>
<td>
{{ $documentation->content?->title }}
</td>