Add Gestión dashboard and update Tela stats

Introduces a new Gestión dashboard page with a stats overview widget for Tela and OrdenProduccion. Updates navigation icons for several Filament resources for better distinction. Adds a relationship between Tela and OrdenProduccion models. Refactors the telas table migration to use integer types for numeric fields instead of strings.
This commit is contained in:
Juan Felipe Duarte
2026-01-17 08:22:54 -05:00
parent d93be467f7
commit 18c43fe06f
11 changed files with 87 additions and 10 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Filament\Pages;
use App\Filament\Widgets\AlertasStockBodegasWidget;
use Filament\Pages\Page;
class GestionDashboard extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-chart-bar';
protected static ?string $title = 'Dashboard de Gestión';
protected static string $view = 'filament.pages.gestion-dashboard';
protected function getHeaderWidgets(): array
{
return [
\App\Filament\Widgets\TelasStatsOverview::class,
// \App\Filament\Widgets\TelasStatsOverview::class,
// \App\Filament\Widgets\TelasEstadoOverview::class,
// \App\Filament\Widgets\TelasChart::class,
];
}
// ESTO CONTROLA EL ANCHO DE LOS WIDGETS
// protected function getHeaderWidgetsColumns(): int | array
// {
// return 12;
// }
}