2021-11-19 00:15:20 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Setting\Controllers;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use App\Setting\GeneralSettings;
|
|
|
|
use Inertia\Inertia;
|
|
|
|
use Inertia\Response;
|
|
|
|
|
|
|
|
class SettingController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @wip
|
|
|
|
*/
|
|
|
|
public function index(GeneralSettings $generalSettings): Response
|
|
|
|
{
|
|
|
|
return Inertia::render('setting/Index', [
|
|
|
|
'options' => [
|
2022-03-11 20:19:17 +01:00
|
|
|
'modules' => $generalSettings->moduleOptions(),
|
2021-11-19 00:15:20 +01:00
|
|
|
],
|
|
|
|
'general' => [
|
2022-03-11 20:19:17 +01:00
|
|
|
'modules' => $generalSettings->modules,
|
|
|
|
],
|
2021-11-19 00:15:20 +01:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|