Seleccionar todos

This commit is contained in:
Lizandro Guarnizo
2024-03-09 16:08:31 -05:00
parent 59bd842990
commit d4dc45fc47
3 changed files with 70 additions and 26 deletions
+10 -1
View File
@@ -113,6 +113,8 @@ class ShowPlanes extends Component
public $notaEliminarModal = false;
public $notaEliminarVariosModal = false;
public $nota_eliminacion;
public $cont;
public function getListeners()
{
@@ -186,7 +188,7 @@ class ShowPlanes extends Component
$this->selectedOption = null;
}
$this->cont = $consulta_cuentas->toArray();
return view('livewire.show-planes', [
'cuentas' => $consulta_cuentas,
'servicios' => Servicio::where('estado', 'activo')->get(),
@@ -713,4 +715,11 @@ class ShowPlanes extends Component
$this->editarTarifaRol = false;
}
public function seleccionarTodos(){
$this->delete_1 = array_column($this->cont['data'], 'id');
//dd($this->delete_1);
}
}