Add breadcrumbs to admin project documentation views

- Implement breadcrumbs for `index`, `create`, and `edit` views.
- Add conditional logic to handle optional category paths in `create` and `edit` views.
This commit is contained in:
2026-07-25 01:25:31 +05:00
parent 754a67c5d0
commit db0dce27b4
3 changed files with 11 additions and 0 deletions
@@ -2,6 +2,11 @@
@section('h1')
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
@endsection
@if(!empty($categoryPath))
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.category-path.documentations.create', $project, $version, $categoryPath))
@else
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.create', $project, $version))
@endif
<x-admin.layout>
@include('admin.projects.documentation-versions.documentations._top')
<div class="row">
@@ -2,6 +2,11 @@
@section('h1')
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
@endsection
@if(!empty($categoryPath))
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.category-path.documentations.edit', $project, $version, $documentation, $categoryPath))
@else
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.edit', $project, $version, $documentation))
@endif
<x-admin.layout>
@include('admin.projects.documentation-versions.documentations._top')
<div class="row">
@@ -2,6 +2,7 @@
@section('h1')
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
@endsection
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.index', $project, $version))
<x-admin.layout>
@include('admin.projects.documentation-versions.documentations._top')
<div class="card border-0 shadow mb-4">