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:
@@ -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;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user