schneespur/app/Http/Controllers/Admin/HelpController.php
Michael ee3dbba6cc Initial release v1.0.0
Schneespur — Open-source winter service documentation software (PWA + Admin).
GPS tracking via OwnTracks, weather data, photo evidence, and legally
compliant service records for winter maintenance operators.

License: AGPL-3.0-or-later
2026-05-17 13:33:51 +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],
]);
}
}