clientes
This commit is contained in:
@@ -132,21 +132,11 @@
|
||||
</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-ver-entrada />
|
||||
|
||||
<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>
|
||||
@@ -197,40 +187,6 @@
|
||||
{{ $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">
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-gray-500 select-none">
|
||||
@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();
|
||||
//var_dump(now()->toDateString(), $historiales);
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
@include('components/listado-planes')
|
||||
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{{ $cuentas->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user