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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<div class="flex justify-start items-center gap-x-2">
|
||||
<p class="text-sm">Ver</p>
|
||||
<select wire:model="entradas" name="entradas" id="entradas" class="border-gray-200 rounded-md appearance-none text-sm">
|
||||
<option value="10">10</option>
|
||||
<option value="25">25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<p class="text-sm">entradas</p>
|
||||
</div>
|
||||
|
||||
<div class="flex space-x-2">
|
||||
<p class="text-sm my-auto">Ver</p>
|
||||
<select wire:model="entradas" name="entradas" id="entradas" class="my-auto border-gray-200 rounded-md appearance-none text-sm">
|
||||
<option value="10">10</option>
|
||||
<option value="25">25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<p class="text-sm my-auto ">entradas</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -118,8 +118,17 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-between items-center gap-x-2">
|
||||
|
||||
<x-ver-entrada />
|
||||
<div>
|
||||
<div class="my-1 md:my-0 text-sm">
|
||||
<input type="checkbox" name="" id="Libres 100%" wire:click="seleccionarTodos">
|
||||
<label for="Libres 100%">Seleccionar todos</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-ver-entrada />
|
||||
</div>
|
||||
|
||||
<x-primary-table>
|
||||
<x-slot name="thead">
|
||||
@@ -323,9 +332,11 @@
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<div><span class="font-semibold text-gray-700">Email:</span>{{ $consulta_verUsuarios->correo ?? '' }}
|
||||
<div><span
|
||||
class="font-semibold text-gray-700">Email:</span>{{ $consulta_verUsuarios->correo ?? '' }}
|
||||
</div>
|
||||
<div><span class="font-semibold text-gray-700">Password:</span>{{ $consulta_verUsuarios->password ?? '' }}
|
||||
<div><span
|
||||
class="font-semibold text-gray-700">Password:</span>{{ $consulta_verUsuarios->password ?? '' }}
|
||||
</div>
|
||||
<div class="flex justify-end">
|
||||
@if ($consulta_verUsuarios)
|
||||
@@ -333,7 +344,9 @@
|
||||
@if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->completa)
|
||||
@if (Auth::user()->rol->nombre == 'super')
|
||||
<span class="mr-4">
|
||||
<button wire:click="openAdd" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir usuario</button>
|
||||
<button wire:click="openAdd" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir
|
||||
usuario</button>
|
||||
</span>
|
||||
@endif
|
||||
@endif
|
||||
@@ -341,14 +354,17 @@
|
||||
@if (count($consulta_verUsuarios->historiales) != $consulta_verUsuarios->servicio->pantallas)
|
||||
@if (Auth::user()->rol->nombre == 'super')
|
||||
<span class="mr-4">
|
||||
<button wire:click="openAdd" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir usuario</button>
|
||||
<button wire:click="openAdd" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Añadir
|
||||
usuario</button>
|
||||
</span>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
<span>
|
||||
<button wire:click="openRenovar" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Editar
|
||||
<button wire:click="openRenovar" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5 ">Editar
|
||||
cuenta
|
||||
</button>
|
||||
</span>
|
||||
@@ -357,7 +373,8 @@
|
||||
|
||||
<div class="bg-white px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse sm:justify-evenly gap-5 mt-4">
|
||||
<span>
|
||||
<button x-on:click="ver=false" wire:click="" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
<button x-on:click="ver=false" wire:click="" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -1000,35 +1017,51 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div x-cloak x-show="notaEliminarModal" x-transition:enter="transition duration-350" x-transition:enter-start="opacity-0 scale-100" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="transition duration-350" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 scale-100" class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
|
||||
<div x-cloak x-show="notaEliminarModal" x-transition:enter="transition duration-350"
|
||||
x-transition:enter-start="opacity-0 scale-100" x-transition:enter-end="opacity-100 scale-100"
|
||||
x-transition:leave="transition duration-350" x-transition:leave-start="opacity-100 scale-100"
|
||||
x-transition:leave-end="opacity-0 scale-100"
|
||||
class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
|
||||
<div class="grid h-full place-items-center">
|
||||
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-lg shadow-md">
|
||||
|
||||
<div class="mb-4 flex flex-col">
|
||||
<label for="nota_eliminacion" class="block text-gray-700 text-sm font-bold mb-2">Nota:</label>
|
||||
<textarea type="text" id="nota_eliminacion" wire:model="nota_eliminacion" placeholder="Porque quieres eliminar esta cuenta?" class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:ring-0 focus:border-neutral-300 w-full py-2 px-3 h-40 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"></textarea>
|
||||
<textarea type="text" id="nota_eliminacion" wire:model="nota_eliminacion"
|
||||
placeholder="Porque quieres eliminar esta cuenta?"
|
||||
class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:ring-0 focus:border-neutral-300 w-full py-2 px-3 h-40 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="bg-white py-3 sm:flex sm:flex-row-reverse sm:justify-between gap-5 mt-4">
|
||||
<button wire:click="confirm_delete_cuenta" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Eliminar</button>
|
||||
<button x-on:click="notaEliminarModal=false" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
<button wire:click="confirm_delete_cuenta" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Eliminar</button>
|
||||
<button x-on:click="notaEliminarModal=false"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div x-cloak x-show="notaEliminarVariosModal" x-transition:enter="transition duration-350" x-transition:enter-start="opacity-0 scale-100" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="transition duration-350" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 scale-100" class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
|
||||
<div x-cloak x-show="notaEliminarVariosModal" x-transition:enter="transition duration-350"
|
||||
x-transition:enter-start="opacity-0 scale-100" x-transition:enter-end="opacity-100 scale-100"
|
||||
x-transition:leave="transition duration-350" x-transition:leave-start="opacity-100 scale-100"
|
||||
x-transition:leave-end="opacity-0 scale-100"
|
||||
class="fixed backdrop-blur-sm bg-black/20 left-0 bottom-0 top-0 right-0 h-full z-20">
|
||||
<div class="grid h-full place-items-center">
|
||||
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-lg shadow-md">
|
||||
|
||||
<div class="mb-4 flex flex-col">
|
||||
<label for="nota_eliminacion" class="block text-gray-700 text-sm font-bold mb-2">Nota:</label>
|
||||
<textarea type="text" id="nota_eliminacion" wire:model="nota_eliminacion" placeholder="Porque quieres eliminar esta cuenta?" class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:ring-0 focus:border-neutral-300 w-full py-2 px-3 h-40 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"></textarea>
|
||||
<textarea type="text" id="nota_eliminacion" wire:model="nota_eliminacion"
|
||||
placeholder="Porque quieres eliminar esta cuenta?"
|
||||
class="border-2 border-neutral-200 rounded-[0.8rem] shadow apperance-none focus:ring-0 focus:border-neutral-300 w-full py-2 px-3 h-40 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="bg-white py-3 sm:flex sm:flex-row-reverse sm:justify-between gap-5 mt-4">
|
||||
<button wire:click="confirm_delete_cuentas" type="button" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Eliminar</button>
|
||||
<button x-on:click="notaEliminarVariosModal=false" class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
<button wire:click="confirm_delete_cuentas" type="button"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Eliminar</button>
|
||||
<button x-on:click="notaEliminarVariosModal=false"
|
||||
class="inline-flex justify-center w-full rounded-md border border-transparent px-4 py-2 text-white bg-[#585858] hover:bg-[#3a3a3a] ease-in-out sm-text-sm sm-leading-5">Cerrar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user