Adds `label()` methods to TrendDirection and PredictionSource enums for cleaner display. Fixes mixed tab/space indentation in StatsOverviewWidget. Links all stats cards to their respective Filament resources (searches, stations, oil-predictions, api-logs). Documents BrentPriceChartWidget's manual registration.
20 lines
363 B
PHP
20 lines
363 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum PredictionSource: string
|
|
{
|
|
case Llm = 'llm';
|
|
case LlmWithContext = 'llm_with_context';
|
|
case Ewma = 'ewma';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Llm => 'LLM',
|
|
self::LlmWithContext => 'LLM+Context',
|
|
self::Ewma => 'EWMA',
|
|
};
|
|
}
|
|
}
|