46 lines
3.2 KiB
PHP
46 lines
3.2 KiB
PHP
|
@section('meta_title', __('admin-sections.Documentation version'))
|
||
|
@section('h1', __('admin-sections.Project') . ': ' . $project->name)
|
||
|
<x-admin.layout>
|
||
|
@include('admin.projects.documentation-versions._top')
|
||
|
<div class="card border-0 shadow mb-4">
|
||
|
<div class="card-body">
|
||
|
<h3 id="category" class="mb-4">{{ __('admin-sections.Documentation version') }}: {{ $version->title }}</h3>
|
||
|
<div class="table-responsive">
|
||
|
<table class="table table-centered table-nowrap mb-0 rounded">
|
||
|
<thead class="thead-light">
|
||
|
<tr>
|
||
|
<th class="border-0">{{ __('admin-sections.Sections') }}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@can('viewAny', \App\Models\Documentation::class)
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="{{ route('admin.projects.documentation-versions.documentations.index', ['project' => $project->id, 'version' => $version->id]) }}" class="fw-bold">
|
||
|
<svg width="16" height="16" class="align-text-top" data-slot="icon" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"></path>
|
||
|
</svg>
|
||
|
{{ __('admin-sections.Documentation') }}
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endcan
|
||
|
@can('viewAny', \App\Models\DocumentationCategory::class)
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="{{ route('admin.projects.documentation-versions.categories.index', ['project' => $project->id, 'version' => $version->id]) }}" class="fw-bold">
|
||
|
<svg width="16" height="16" class="align-text-top" data-slot="icon" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"></path>
|
||
|
</svg>
|
||
|
{{ __('admin-sections.Categories') }}
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endcan
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</x-admin.layout>
|