diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 99080f5..c5da3b9 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -95,7 +95,7 @@ class ShowPlanes extends Component public $activoHoy; public $libres = null; - public $delete_1 = ['1']; + public $delete_1 = []; public $tarifas; public $addUser; public $usuarios; @@ -717,7 +717,13 @@ class ShowPlanes extends Component } public function seleccionarTodos(){ - $this->delete_1 = array_column($this->cont['data'], 'id'); + + if (count($this->delete_1)== 0) { + $this->delete_1 = array_column($this->cont['data'], 'id'); + } else { + $this->delete_1 = []; + } + //dd($this->delete_1); }