Files
nexusphp/app/Filament/Pages/AnnounceMonitor.php
T

45 lines
1.0 KiB
PHP
Raw Normal View History

2025-06-29 20:47:23 +07:00
<?php
namespace App\Filament\Pages;
use App\Filament\Widgets\AnnounceMonitor\MaxUploadedUser;
2025-09-22 20:58:08 +07:00
use App\Models\Setting;
2025-06-29 20:47:23 +07:00
use Illuminate\Contracts\Support\Htmlable;
class AnnounceMonitor extends \Filament\Pages\Dashboard
{
protected ?string $maxContentWidth = 'full';
protected static ?string $navigationIcon = 'heroicon-o-archive-box';
protected static string $routePath = 'announce-monitor';
protected static ?string $navigationGroup = 'Torrent';
protected static ?int $navigationSort = 15;
public function getTitle(): string|Htmlable
{
return self::getNavigationLabel();
}
public static function getNavigationLabel(): string
{
return __('admin.sidebar.announce_monitor');
}
2025-09-22 20:58:08 +07:00
/**
* @return bool
*/
public static function shouldRegisterNavigation(): bool
{
return Setting::getIsRecordAnnounceLog() && config('clickhouse.connection.host') != '';
}
2025-06-29 20:47:23 +07:00
public function getWidgets(): array
{
return [
MaxUploadedUser::class,
];
}
}