Add category-specific documentation view and management

- Introduce routes and controller actions for displaying and managing documentation by category.
- Adjust views to incorporate category-specific information and actions.
- Update services to handle category retrieval and validation.
- Add localized strings for new functionality in English and Russian.
This commit is contained in:
2026-07-22 01:01:53 +05:00
parent 756cafdbff
commit d3a84bad04
9 changed files with 226 additions and 33 deletions
@@ -35,10 +35,10 @@ final class DocumentationVersionController extends Controller
return view('admin/projects/documentation-versions/index', $result->getData());
}
public function show(int $projectId, int $id, Request $request): View
public function show(int $projectId, int $id, Request $request, ?int $category = null): View
{
$user = $request->user();
$result = $this->documentationVersionService->show($projectId, $id, $user);
$result = $this->documentationVersionService->show($projectId, $id, $category, $user);
if ($result->isError()) {
$this->errors($result);
}