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

47 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2025-06-29 20:47:23 +07:00
<?php
namespace App\Filament\Pages;
use Filament\Pages\Dashboard;
use Filament\Support\Enums\Width;
2025-06-29 20:47:23 +07:00
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 Dashboard
2025-06-29 20:47:23 +07:00
{
protected Width|string|null $maxContentWidth = 'full';
2025-06-29 20:47:23 +07:00
protected static string | \BackedEnum | null $navigationIcon = 'heroicon-o-archive-box';
2025-06-29 20:47:23 +07:00
protected static string $routePath = 'announce-monitor';
2025-10-04 15:31:46 +07:00
protected static string | \UnitEnum | null $navigationGroup = 'Tracker';
2025-06-29 20:47:23 +07:00
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,
];
}
}