Add superadmin moderation queues
This commit is contained in:
@@ -14,6 +14,7 @@ use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use UnitEnum;
|
||||
|
||||
class TenantFeedbackResource extends Resource
|
||||
@@ -26,7 +27,7 @@ class TenantFeedbackResource extends Resource
|
||||
|
||||
protected static UnitEnum|string|null $navigationGroup = null;
|
||||
|
||||
protected static ?int $navigationSort = 120;
|
||||
protected static ?int $navigationSort = 30;
|
||||
|
||||
public static function canCreate(): bool
|
||||
{
|
||||
@@ -48,11 +49,22 @@ class TenantFeedbackResource extends Resource
|
||||
return TenantFeedbackTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('admin.feedback.navigation.label');
|
||||
}
|
||||
|
||||
public static function getNavigationGroup(): UnitEnum|string|null
|
||||
{
|
||||
return __('admin.nav.feedback_support');
|
||||
}
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
->with(['tenant', 'event', 'moderator']);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user