up
This commit is contained in:
@@ -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