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.
16 lines
230 B
PHP
16 lines
230 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum TrendDirection: string
|
|
{
|
|
case Rising = 'rising';
|
|
case Falling = 'falling';
|
|
case Flat = 'flat';
|
|
|
|
public function label(): string
|
|
{
|
|
return ucfirst($this->value);
|
|
}
|
|
}
|