up
This commit is contained in:
@@ -26,7 +26,7 @@ class AlertasStockBodegasWidget extends BaseWidget
|
||||
|
||||
$stats[] = Stat::make('Stock Bajo Global', $productosStockBajo)
|
||||
->description('Productos bajo mínimo')
|
||||
->descriptionIcon('heroicon-m-exclamation-triangle')
|
||||
->descriptionIcon('heroicon-o-exclamation-triangle')
|
||||
->color($productosStockBajo > 0 ? 'danger' : 'success');
|
||||
|
||||
// Productos con stock alto general
|
||||
@@ -40,7 +40,7 @@ class AlertasStockBodegasWidget extends BaseWidget
|
||||
|
||||
$stats[] = Stat::make('Stock Excesivo', $productosStockAlto)
|
||||
->description('Productos sobre máximo')
|
||||
->descriptionIcon('heroicon-m-arrow-trending-up')
|
||||
->descriptionIcon('heroicon-o-arrow-trending-up')
|
||||
->color($productosStockAlto > 0 ? 'warning' : 'success');
|
||||
|
||||
// Análisis por bodega crítica (si existe)
|
||||
@@ -52,7 +52,7 @@ class AlertasStockBodegasWidget extends BaseWidget
|
||||
|
||||
$stats[] = Stat::make('Sin Stock en Principal', $productosConStockCero)
|
||||
->description('Productos agotados')
|
||||
->descriptionIcon('heroicon-m-x-circle')
|
||||
->descriptionIcon('heroicon-o-x-circle')
|
||||
->color($productosConStockCero > 0 ? 'danger' : 'success');
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class AlertasStockBodegasWidget extends BaseWidget
|
||||
return [
|
||||
Stat::make('Sistema de Alertas', 'Configurando...')
|
||||
->description('Ejecute las migraciones necesarias')
|
||||
->descriptionIcon('heroicon-m-cog-6-tooth')
|
||||
->descriptionIcon('heroicon-o-cog')
|
||||
->color('warning')
|
||||
];
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class GestionKpisWidget extends BaseWidget
|
||||
$total = OrdenProduccion::count();
|
||||
$stats[] = Stat::make('Órdenes totales', $total)
|
||||
->description('Total de órdenes de producción')
|
||||
->descriptionIcon('heroicon-m-clipboard-list')
|
||||
->descriptionIcon('heroicon-o-clipboard-document-list')
|
||||
->color('primary');
|
||||
|
||||
$byState = OrdenProduccion::selectRaw('estado, count(*) as cnt')->groupBy('estado')->pluck('cnt', 'estado')->toArray();
|
||||
@@ -38,7 +38,7 @@ class GestionKpisWidget extends BaseWidget
|
||||
$metros = Tela::sum('metros_disponibles');
|
||||
$stats[] = Stat::make('Metros disponibles', number_format($metros, 2) . ' m')
|
||||
->description('Total metros disponibles en stock')
|
||||
->descriptionIcon('heroicon-m-archive-box');
|
||||
->descriptionIcon('heroicon-o-archive-box');
|
||||
|
||||
$atrasadas = OrdenProduccion::where('fecha_entrega_estimada', '<', now()->toDateString())
|
||||
->where('estado', '!=', 'finalizada')
|
||||
|
||||
Reference in New Issue
Block a user