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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user