Files
fuel-alert/app/Filament/NavigationGroup.php
Ovidiu U 8dad223d06 feat(admin): add Filament resources for the forecasting stack
Adds three resources under a new "Forecasting" navigation group: a full-CRUD
WatchedEventResource for the Layer 5 volatility detector, plus read-only
WeeklyForecastResource and BacktestResource so the ridge model output and
its calibration can be inspected without SQL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:13:05 +01:00

40 lines
861 B
PHP

<?php
namespace App\Filament;
use BackedEnum;
use Filament\Support\Contracts\HasIcon;
use Filament\Support\Contracts\HasLabel;
use Illuminate\Contracts\Support\Htmlable;
enum NavigationGroup implements HasIcon, HasLabel
{
case Users;
case Data;
case Forecasting;
case System;
public function getLabel(): string
{
return match ($this) {
self::Users => 'Users',
self::Data => 'Data',
self::Forecasting => 'Forecasting',
self::System => 'System',
};
}
public function getIcon(): string|BackedEnum|Htmlable|null
{
return match ($this) {
self::Users => 'heroicon-o-users',
self::Data => 'heroicon-o-circle-stack',
self::Forecasting => null,
self::System => 'heroicon-o-cog-6-tooth',
};
}
}