lokalisierung vervollständigt, api provider testconnection, runware modellsuche aktiviert und style preview generation integriert
This commit is contained in:
@@ -2,24 +2,24 @@
|
||||
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
|
||||
use Filament\Widgets\StatsOverviewWidget\Stat;
|
||||
use App\Models\AiModel;
|
||||
use App\Models\ApiProvider;
|
||||
use App\Models\Style;
|
||||
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
|
||||
use Filament\Widgets\StatsOverviewWidget\Stat;
|
||||
|
||||
class AppStatsOverview extends BaseWidget
|
||||
{
|
||||
protected function getCards(): array
|
||||
{
|
||||
return [
|
||||
Stat::make('Anzahl AI Modelle', AiModel::count())
|
||||
Stat::make(__('filament.widgets.app_stats.ai_models'), AiModel::count())
|
||||
->icon('heroicon-o-server')
|
||||
->url(route('filament.admin.resources.ai-models.index')),
|
||||
Stat::make('Anzahl API-Provider', ApiProvider::count())
|
||||
Stat::make(__('filament.widgets.app_stats.api_providers'), ApiProvider::count())
|
||||
->icon('heroicon-o-cube')
|
||||
->url(route('filament.admin.resources.api-providers.index')),
|
||||
Stat::make('Anzahl Styles', Style::count())
|
||||
Stat::make(__('filament.widgets.app_stats.styles'), Style::count())
|
||||
->icon('heroicon-o-sparkles')
|
||||
->url(route('filament.admin.resources.styles.index')),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user