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

-
\ No newline at end of file + +
+

Ver

+ +

entradas

+
+ diff --git a/resources/views/livewire/show-planes.blade.php b/resources/views/livewire/show-planes.blade.php index 6fa3014..be10996 100755 --- a/resources/views/livewire/show-planes.blade.php +++ b/resources/views/livewire/show-planes.blade.php @@ -118,8 +118,17 @@ +
- +
+
+ + +
+
+ + +
@@ -323,9 +332,11 @@ @endif -
Email:{{ $consulta_verUsuarios->correo ?? '' }} +
Email:{{ $consulta_verUsuarios->correo ?? '' }}
-
Password:{{ $consulta_verUsuarios->password ?? '' }} +
Password:{{ $consulta_verUsuarios->password ?? '' }}
@if ($consulta_verUsuarios) @@ -333,7 +344,9 @@ @if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->completa) @if (Auth::user()->rol->nombre == 'super') - + @endif @endif @@ -341,14 +354,17 @@ @if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->pantallas) @if (Auth::user()->rol->nombre == 'super') - + @endif @endif @endif @endif - @@ -357,7 +373,8 @@
- +
@@ -1000,35 +1017,51 @@
-
+
- +
- - + +
-
+
- +
- - + +