This commit is contained in:
lizandrogd
2024-03-09 20:42:24 -05:00
parent 0d24722629
commit 7075456368
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ class ShowUsuarios extends Component
$tarifa->promocion_id = $this->servicio_modTarifas;
$tarifa->rol_id = $this->roles_modTarifas;
$tarifa->precio = $this->precio_modTarifas;
$tarifa->visible = $this->estadoTarifa ? 'activo' : 'inactivo';
$tarifa->visible = $this->estadoTarifa ? 'true' : 'false';
$tarifa->save();
$this->alert('success', '¡Tarifas actualizadas correctamente!', [
@@ -98,7 +98,7 @@
@endphp
@if ($tarifa['estado'] == 'activo')
@if ($con = $tarifa['usuario_tarifas'])
@if ($con[0]['visible'] == 'activo')
@if ($con[0]['visible'] == 'true')
<button wire:click="cargartarjetaPlan({{ $tarifa['id'] }})"
class="shadow-lg text-white py-4 px-3 rounded-lg bg-gradient-to-br from-black
(via-[{{ $servicio['color_fondo'] }}],90%) to-[{{ $servicio['color_fondo'] }}]">