diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 88b15d6..2897cd5 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -606,6 +606,7 @@ class ShowPlanes extends Component { //dd($tarifa); $this->editarTarifaRol = true; + $this->informacionTarifaRol = $tarifa; $this->roles_modTarifas = $tarifa['rol_id']; @@ -613,7 +614,7 @@ class ShowPlanes extends Component $this->precio_modTarifas = $tarifa['valor']; $this->utilidad = $tarifa['utilidad']; $this->diasTarifa = $tarifa['dias']; - $this->estadoTarifa = $tarifa['estado']; + $this->estadoTarifa = $tarifa['estado'] == 'activo' ? 1 : 0; $this->servicio_modTarifas = $tarifa['servicio_id']; } @@ -633,7 +634,7 @@ class ShowPlanes extends Component 'dias' => $this->diasTarifa, 'valor' => $this->precio_modTarifas, 'utilidad' => $this->utilidad, - 'estado' => $this->estadoTarifa, + 'estado' => $this->estadoTarifa == 1 ? 'activo' : 'inactivo', 'rol_id' => $this->roles_modTarifas, 'servicio_id' => $this->servicio_modTarifas diff --git a/resources/views/livewire/show-planes.blade.php b/resources/views/livewire/show-planes.blade.php index 9fe6def..81cc130 100755 --- a/resources/views/livewire/show-planes.blade.php +++ b/resources/views/livewire/show-planes.blade.php @@ -817,13 +817,9 @@ {{ $tarifa->valor ?? '' }} {{ $tarifa->dias ?? '' }} {{ $tarifa->utilidad ?? '' }} - + + - @endforeach @endif @@ -831,16 +827,11 @@ - -
- - +
- @@ -894,8 +885,7 @@
- +