Add breadcrumbs to admin project documentation versions views

- Introduce breadcrumbs for `index`, `create`, `edit`, and `show` views.
- Adjust breadcrumb logic to handle optional categories in `show` view.
This commit is contained in:
2026-07-25 01:25:18 +05:00
parent ace4c69bd8
commit 754a67c5d0
4 changed files with 9 additions and 1 deletions
@@ -1,5 +1,10 @@
@section('meta_title', __('admin-sections.Documentation version'))
@section('h1', __('admin-sections.Project') . ': ' . $project->name)
@if(!empty($category))
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.show.category', $project, $version, $category, $categoryPath ?? null))
@else
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.show', $project, $version))
@endif
@php
$categoryId = null;
if (!empty($category) && $category->id) {