botones de color

This commit is contained in:
Felipe
2024-07-12 10:53:59 -05:00
parent 020bf656c3
commit 55f95f2e17
7 changed files with 48 additions and 12 deletions
+6 -4
View File
@@ -30,10 +30,11 @@ class ShowTop extends Component
$query->whereMonth('fecha_inicio', $month)
->whereYear('fecha_inicio', $currentYear)
->where('estado', 'activo');
}])
}])
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
$query->whereMonth('fecha_inicio', $month)
->whereYear('fecha_inicio', $currentYear);
->whereYear('fecha_inicio', $currentYear)
->where('estado', 'activo');
}])
->orderBy('historiales_venta_count', 'desc')
->limit(10)
@@ -63,10 +64,11 @@ class ShowTop extends Component
$query->whereMonth('fecha_inicio', $month)
->whereYear('fecha_inicio', $currentYear)
->where('estado', 'activo');
}])
}])
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
$query->whereMonth('fecha_inicio', $month)
->whereYear('fecha_inicio', $currentYear);
->whereYear('fecha_inicio', $currentYear)
->where('estado', 'activo');
}])
->orderBy('historiales_venta_count', 'desc')
->limit(10)