botones de color
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user