Files
sirpremiumv2/resources/views/livewire/show-mantenimiento.blade.php
T

79 lines
3.4 KiB
PHP

<div class="h-full w-full md:my-2">
<div class=" fixed backdrop-blur-sm bg-white/70 left-0 bottom-0 top-0 right-0 h-full z-40" wire:loading
wire:target="eliminarCuentas">
<div class="grid h-full place-items-center">
<div class="max-w-xs">
<img src="./img/loading.gif" alt="" class="w-full text-center">
<p class="text-gray-500 text-center">Cargando</p>
</div>
</div>
</div>
<div class="bg-[#f5f5f5] md:w-[100%] m-auto p-2 md:p-5 rounded-[1.2rem] relative mb-4">
<div class="grid grid-cols-1 text-center sm:flex justify-between my-2 items-center text-sm ">
<div class="grid grid-cols-1 sm:flex items-center gap-4">
<div class="flex text-sm">
<x-icon-arrow-right />
Mantenimiento
</div>
</div>
<div class="my-1 md:my-0 flex gap-2">
<button wire:click="eliminarCuentasSinHistorial" class="bg-[#b221fd] hover:bg-[#7a02b8] text-white px-4 py-2 rounded">Eliminar cache de cuentas sin historial</button>
<button wire:click="eliminarCuentas" class="bg-red-400 text-white px-4 py-2 rounded">Eliminar</button>
</div>
</div>
<div class="flex justify-between items-center gap-x-2">
<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">
<tr class="text-left">
<th class="rounded-l-lg font-normal pl-[2rem]"></th>
<th class="font-normal pl-[2rem]">id</th>
<th class="font-normal pl-[2rem]">Estado</th>
<th class="font-normal pl-[2rem]">Cuenta</th>
<th class="font-normal pl-[2rem]">Fecha</th>
</tr>
</x-slot>
<x-slot name="tbody">
@foreach ($historiales as $historial)
<tr class="hover:bg-gray-200 hover:ring-gray-500 border-gray-200 text-sm text-left w-full pl-4 @if ($historiales >= '1') bg-green-200 @endif"
x-data="{ openOption: false }">
<td>
<input type="checkbox" wire:model="delete_1" value="{{ $historial->id }}">
</td>
<td class="pl-[2rem]">{{ $historial->id ?? '' }}</td>
<td class="pl-[2rem]">{{ $historial->historial->estado ?? '' }}</td>
<td class="pl-[2rem]">
{{ $historial->cuenta->correo ?? '' }}
-
{{ $historial->cuenta->password ?? 'No disponible' }}
</td>
<td class="pl-[2rem]">
{{ $historial->created_at->format('d-m-Y') ?? '' }}
</td>
</tr>
@endforeach
</x-slot>
<x-slot name="tlink">
{{ $historiales->links() }}
</x-slot>
</x-primary-table>
</div>
</div>