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