From d4dc45fc47df37953128b8dabb884340e3f41399 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:08:31 -0500 Subject: [PATCH] Seleccionar todos --- app/Http/Livewire/ShowPlanes.php | 11 +++- .../views/components/ver-entrada.blade.php | 22 ++++--- .../views/livewire/show-planes.blade.php | 63 ++++++++++++++----- 3 files changed, 70 insertions(+), 26 deletions(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 8a49720..99080f5 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -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); + } + } diff --git a/resources/views/components/ver-entrada.blade.php b/resources/views/components/ver-entrada.blade.php index e4d9482..fad9cf7 100755 --- a/resources/views/components/ver-entrada.blade.php +++ b/resources/views/components/ver-entrada.blade.php @@ -1,10 +1,12 @@ -
Ver
- -entradas
-Ver
+ +entradas
+