Cleanup Added lobby menu and page items. fix for root redirect

This commit is contained in:
2025-09-03 22:49:27 +02:00
parent 6e212db8e1
commit eff5aafbdb
25 changed files with 148 additions and 65 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Filament\User\Widgets;
use Filament\Widgets\Widget;
class AdminButtonWidget extends Widget
{
protected static ?int $sort = 1;
protected static string $view = 'filament.user.widgets.admin-button-widget';
public function shouldRender(): bool
{
return auth()->user()->role === 'admin';
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Filament\User\Widgets;
use Filament\Widgets\Widget;
class AdminLinkWidget extends Widget
{
protected static ?int $sort = 2;
protected static string $view = 'filament.user.widgets.admin-link-widget';
public function shouldRender(): bool
{
return auth()->user() && auth()->user()->role === 'admin';
}
}