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
26 lines
645 B
PHP
26 lines
645 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Setting;
|
|
use App\Services\Extension\DashboardWidgetRegistry;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\View\View;
|
|
|
|
class DashboardController extends Controller
|
|
{
|
|
public function dismissOnboarding(): RedirectResponse
|
|
{
|
|
Setting::set('onboarding_dismissed', '1');
|
|
|
|
return redirect()->route('admin.dashboard');
|
|
}
|
|
|
|
public function index(DashboardWidgetRegistry $widgetRegistry): View
|
|
{
|
|
$widgets = $widgetRegistry->getWidgets();
|
|
|
|
return view('admin.dashboard', compact('widgets'));
|
|
}
|
|
}
|