schneespur/release/schneespur-1.0.2/app/Http/Controllers/Admin/HelpController.php
Michael 7288b93500 Release v1.0.2: diagnostic infrastructure core
Add neutral diagnostic framework for future reporting modules:
- DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer
- Laravel exception hook in bootstrap/app.php
- Module permission declarations (requires_permissions in module.json)
- Core diagnostic report points (module boot/install/update failures)
- Module documentation update (moduldoku.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 16:54:11 +00:00

43 lines
1.2 KiB
PHP

<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
class HelpController extends Controller
{
private const TOPICS = [
'installation' => 'help.topic_installation',
'first-steps' => 'help.topic_first_steps',
'customers' => 'help.topic_customers',
'drivers' => 'help.topic_drivers',
'owntracks' => 'help.topic_owntracks',
'jobs' => 'help.topic_jobs',
'overview' => 'help.topic_overview',
'exports' => 'help.topic_exports',
'dsgvo' => 'help.topic_dsgvo',
'settings' => 'help.topic_settings',
'updates' => 'help.topic_updates',
'modules' => 'help.topic_modules',
];
public function index()
{
return view('admin.help.index', [
'topics' => self::TOPICS,
]);
}
public function show(string $topic)
{
if (! array_key_exists($topic, self::TOPICS)) {
abort(404);
}
return view('admin.help.show', [
'topic' => $topic,
'topics' => self::TOPICS,
'langKey' => self::TOPICS[$topic],
]);
}
}