Seleccionar todos
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user