botones de color
This commit is contained in:
@@ -296,6 +296,11 @@ class ShowConfiguracion extends Component
|
|||||||
'onDismissed' => '',
|
'onDismissed' => '',
|
||||||
'cancelButtonText' => 'Salir',
|
'cancelButtonText' => 'Salir',
|
||||||
'confirmButtonText' => 'Si',
|
'confirmButtonText' => 'Si',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class ShowPlanes extends Component
|
|||||||
|
|
||||||
if (empty($this->fecha_inicial)) {
|
if (empty($this->fecha_inicial)) {
|
||||||
$this->fecha_inicial = Carbon::now()->toDateTimeString();
|
$this->fecha_inicial = Carbon::now()->toDateTimeString();
|
||||||
$this->fecha_final = Carbon::now()->addDay(30)->toDateTimeString();
|
$this->fecha_final = Carbon::now()->addDay(30)->toDateTimeString();
|
||||||
}
|
}
|
||||||
if ($this->servicio_modTarifas) {
|
if ($this->servicio_modTarifas) {
|
||||||
$this->tarifas = Tarifas::with('rol')
|
$this->tarifas = Tarifas::with('rol')
|
||||||
@@ -224,7 +224,7 @@ class ShowPlanes extends Component
|
|||||||
{
|
{
|
||||||
$this->fecha_inicial_renovar = now()->format('Y-m-d H:i:s');
|
$this->fecha_inicial_renovar = now()->format('Y-m-d H:i:s');
|
||||||
$this->fecha_final_renovar = now()->addDays(30)->format('Y-m-d H:i:s');
|
$this->fecha_final_renovar = now()->addDays(30)->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,6 +251,10 @@ class ShowPlanes extends Component
|
|||||||
'showConfirmButton' => true,
|
'showConfirmButton' => true,
|
||||||
'onConfirmed' => 'siRenovar',
|
'onConfirmed' => 'siRenovar',
|
||||||
'confirmButtonText' => 'Si, liberar cuenta',
|
'confirmButtonText' => 'Si, liberar cuenta',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
$cuenta_renovar = Cuentas::find($this->id_cuentaVer);
|
$cuenta_renovar = Cuentas::find($this->id_cuentaVer);
|
||||||
|
|||||||
@@ -345,6 +345,11 @@ class ShowPromociones extends Component
|
|||||||
// 'cancelButtonText' => 'No, abandonar.',
|
// 'cancelButtonText' => 'No, abandonar.',
|
||||||
'denyButtonText' => 'No, abandonar.',
|
'denyButtonText' => 'No, abandonar.',
|
||||||
'confirmButtonText' => 'Sí, comprar.',
|
'confirmButtonText' => 'Sí, comprar.',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -371,7 +376,7 @@ class ShowPromociones extends Component
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function confirmarCompra()
|
public function confirmarCompra()
|
||||||
{
|
{
|
||||||
@@ -645,6 +650,11 @@ class ShowPromociones extends Component
|
|||||||
'onDismissed' => '',
|
'onDismissed' => '',
|
||||||
'cancelButtonText' => 'Salir',
|
'cancelButtonText' => 'Salir',
|
||||||
'confirmButtonText' => 'Si',
|
'confirmButtonText' => 'Si',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ class ShowRoles extends Component
|
|||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$consulta_roles = Role::withCount('usuarios')->get();
|
$consulta_roles = Role::withCount('usuarios')->get();
|
||||||
//dd($consulta_roles);
|
//dd($consulta_roles);
|
||||||
return view('livewire.show-roles',['roles'=>$consulta_roles]);
|
return view('livewire.show-roles',['roles'=>$consulta_roles]);
|
||||||
@@ -33,7 +33,7 @@ class ShowRoles extends Component
|
|||||||
$crear_rol = new Role;
|
$crear_rol = new Role;
|
||||||
$crear_rol->nombre = $this->nombre;
|
$crear_rol->nombre = $this->nombre;
|
||||||
$crear_rol->save();
|
$crear_rol->save();
|
||||||
|
|
||||||
$this->alert('success', 'Rol creado correctamente!', [
|
$this->alert('success', 'Rol creado correctamente!', [
|
||||||
'position' => 'top'
|
'position' => 'top'
|
||||||
]);
|
]);
|
||||||
@@ -43,7 +43,7 @@ class ShowRoles extends Component
|
|||||||
'position' => 'top'
|
'position' => 'top'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function eliminar($id)
|
public function eliminar($id)
|
||||||
@@ -62,6 +62,11 @@ class ShowRoles extends Component
|
|||||||
'onDismissed' => '',
|
'onDismissed' => '',
|
||||||
'cancelButtonText' => 'Salir',
|
'cancelButtonText' => 'Salir',
|
||||||
'confirmButtonText' => 'Si',
|
'confirmButtonText' => 'Si',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -237,6 +237,11 @@ class ShowServicio extends Component
|
|||||||
'onDismissed' => '',
|
'onDismissed' => '',
|
||||||
'cancelButtonText' => 'Salir',
|
'cancelButtonText' => 'Salir',
|
||||||
'confirmButtonText' => 'Si',
|
'confirmButtonText' => 'Si',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,4 +272,4 @@ class ShowServicio extends Component
|
|||||||
$this->renovacion = null;
|
$this->renovacion = null;
|
||||||
$this->servicio = null;
|
$this->servicio = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,10 +30,11 @@ class ShowTop extends Component
|
|||||||
$query->whereMonth('fecha_inicio', $month)
|
$query->whereMonth('fecha_inicio', $month)
|
||||||
->whereYear('fecha_inicio', $currentYear)
|
->whereYear('fecha_inicio', $currentYear)
|
||||||
->where('estado', 'activo');
|
->where('estado', 'activo');
|
||||||
}])
|
}])
|
||||||
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
|
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
|
||||||
$query->whereMonth('fecha_inicio', $month)
|
$query->whereMonth('fecha_inicio', $month)
|
||||||
->whereYear('fecha_inicio', $currentYear);
|
->whereYear('fecha_inicio', $currentYear)
|
||||||
|
->where('estado', 'activo');
|
||||||
}])
|
}])
|
||||||
->orderBy('historiales_venta_count', 'desc')
|
->orderBy('historiales_venta_count', 'desc')
|
||||||
->limit(10)
|
->limit(10)
|
||||||
@@ -63,10 +64,11 @@ class ShowTop extends Component
|
|||||||
$query->whereMonth('fecha_inicio', $month)
|
$query->whereMonth('fecha_inicio', $month)
|
||||||
->whereYear('fecha_inicio', $currentYear)
|
->whereYear('fecha_inicio', $currentYear)
|
||||||
->where('estado', 'activo');
|
->where('estado', 'activo');
|
||||||
}])
|
}])
|
||||||
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
|
->withCount(['historiales_venta' => function ($query) use ($month, $currentYear) {
|
||||||
$query->whereMonth('fecha_inicio', $month)
|
$query->whereMonth('fecha_inicio', $month)
|
||||||
->whereYear('fecha_inicio', $currentYear);
|
->whereYear('fecha_inicio', $currentYear)
|
||||||
|
->where('estado', 'activo');
|
||||||
}])
|
}])
|
||||||
->orderBy('historiales_venta_count', 'desc')
|
->orderBy('historiales_venta_count', 'desc')
|
||||||
->limit(10)
|
->limit(10)
|
||||||
|
|||||||
@@ -508,6 +508,11 @@ class ShowUsuarios extends Component
|
|||||||
'onDismissed' => '',
|
'onDismissed' => '',
|
||||||
'cancelButtonText' => 'Salir',
|
'cancelButtonText' => 'Salir',
|
||||||
'confirmButtonText' => 'Si',
|
'confirmButtonText' => 'Si',
|
||||||
|
'customClass' => [
|
||||||
|
'confirmButton' => 'bg-green-500',
|
||||||
|
'denyButton' => 'bg-red-500',
|
||||||
|
'cancelButton' => 'bg-gray-500',
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user