planes
This commit is contained in:
@@ -45,9 +45,7 @@
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@include('layouts.footer')
|
||||
</div>
|
||||
|
||||
@@ -132,22 +132,77 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-start items-center gap-x-2">
|
||||
<p>Ver</p>
|
||||
<select wire:model="entradas" name="entradas" id="entradas" class="border-gray-200 rounded-md appearance-none">
|
||||
<option value="10">10</option>
|
||||
<option value="25">25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<p>entradas</p>
|
||||
</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]">Servicio</th>
|
||||
<th class="font-normal pl-[2rem]">Correo</th>
|
||||
<th class="font-normal pl-[2rem]">Contraseña</th>
|
||||
<th class="font-normal pl-[2rem] hidden md:inline-table">Inicio - Final</th>
|
||||
<th class="font-normal pl-[2rem]">Restante</th>
|
||||
<th class="font-normal pl-[2rem]">Ocupado</th>
|
||||
<th class="font-normal pl-[2rem]"></th>
|
||||
<th class="font-normal pl-[2rem] hidden md:inline-table"></th>
|
||||
<th class="font-normal rounded-r-lg md:rounded-r-none"></th>
|
||||
<th class="rounded-r-lg font-normal hidden md:inline-table"></th>
|
||||
</tr>
|
||||
</x-slot>
|
||||
<x-slot name="tbody">
|
||||
@php
|
||||
$n = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($cuentas as $cuenta)
|
||||
@php
|
||||
$n++;
|
||||
$historiales = false;
|
||||
|
||||
if (
|
||||
now()
|
||||
->addDay()
|
||||
->gt($cuenta->vencimiento)
|
||||
) {
|
||||
$historiales = $cuenta
|
||||
->historiales()
|
||||
->where(
|
||||
'fecha_final',
|
||||
'>',
|
||||
now()
|
||||
->addDay()
|
||||
->toDateString(),
|
||||
)
|
||||
->count();
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
@include('components/listado-planes')
|
||||
@endforeach
|
||||
</x-slot>
|
||||
<x-slot name="tlink">
|
||||
{{ $cuentas->links() }}
|
||||
</x-slot>
|
||||
</x-primary-table>
|
||||
{{-- tabla --}}
|
||||
<div class="overflow-y-auto max-h-full">
|
||||
<table wire:loading.class="opacity-50 cursor-wait" class="w-full sm-w-[20rem] text-center mt-4 border-separate border-spacing-y-2">
|
||||
<thead class="font-normal bg-[#000029] text-white h-9">
|
||||
<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]">Servicio</th>
|
||||
<th class="font-normal pl-[2rem]">correo</th>
|
||||
<th class="font-normal pl-[2rem] hidden md:inline-table">Inicio - Final</th>
|
||||
<th class="font-normal pl-[2rem]">Restante</th>
|
||||
<th class="font-normal pl-[2rem]">Ocupado</th>
|
||||
<th class="font-normal pl-[2rem]"></th>
|
||||
<th class="font-normal pl-[2rem] hidden md:inline-table"></th>
|
||||
<th class="font-normal rounded-r-lg md:rounded-r-none"></th>
|
||||
<th class="rounded-r-lg font-normal hidden md:inline-table"></th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-gray-500 select-none">
|
||||
|
||||
Reference in New Issue
Block a user