27 lines
		
	
	
		
			580 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			580 B
		
	
	
	
		
			PHP
		
	
	
	
| <?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' => [
 | |
|                 'modules' => $generalSettings->moduleOptions(),
 | |
|             ],
 | |
|             'general' => [
 | |
|                 'modules' => $generalSettings->modules,
 | |
|             ],
 | |
|         ]);
 | |
|     }
 | |
| }
 |