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
+5
View File
@@ -296,6 +296,11 @@ class ShowConfiguracion extends Component
'onDismissed' => '',
'cancelButtonText' => 'Salir',
'confirmButtonText' => 'Si',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}
+4
View File
@@ -251,6 +251,10 @@ class ShowPlanes extends Component
'showConfirmButton' => true,
'onConfirmed' => 'siRenovar',
'confirmButtonText' => 'Si, liberar cuenta',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
]
]);
} else {
$cuenta_renovar = Cuentas::find($this->id_cuentaVer);
+10
View File
@@ -345,6 +345,11 @@ class ShowPromociones extends Component
// 'cancelButtonText' => 'No, abandonar.',
'denyButtonText' => 'No, abandonar.',
'confirmButtonText' => 'Sí, comprar.',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}
} else {
@@ -645,6 +650,11 @@ class ShowPromociones extends Component
'onDismissed' => '',
'cancelButtonText' => 'Salir',
'confirmButtonText' => 'Si',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}
+5
View File
@@ -62,6 +62,11 @@ class ShowRoles extends Component
'onDismissed' => '',
'cancelButtonText' => 'Salir',
'confirmButtonText' => 'Si',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}
+5
View File
@@ -237,6 +237,11 @@ class ShowServicio extends Component
'onDismissed' => '',
'cancelButtonText' => 'Salir',
'confirmButtonText' => 'Si',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}
+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)
+5
View File
@@ -508,6 +508,11 @@ class ShowUsuarios extends Component
'onDismissed' => '',
'cancelButtonText' => 'Salir',
'confirmButtonText' => 'Si',
'customClass' => [
'confirmButton' => 'bg-green-500',
'denyButton' => 'bg-red-500',
'cancelButton' => 'bg-gray-500',
]
]);
}