- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
43 lines
1.2 KiB
PHP
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],
|
|
]);
|
|
}
|
|
}
|