35 lines
1.4 KiB
PHP
Executable File
35 lines
1.4 KiB
PHP
Executable File
<div>
|
|
<div class=" text-center">
|
|
<div class="flex w-11/12 align-middle">
|
|
<input type="text" placeholder="Buscar" wire:model="buscar" class="mx-auto text-center rounded my-4">
|
|
<label for="aprobado" class="my-1 align-middle px-1">Aprobados</label>
|
|
<input type="checkbox" id="aprobado" wire:model="aprobado" class="my-1 align-middle px-1">
|
|
</div>
|
|
|
|
<table class="text-center w-11/12 mx-auto">
|
|
<tr class="border text-left">
|
|
<th>Compra</th>
|
|
<th>Usuario</th>
|
|
<th>Email</th>
|
|
<th>Valor pagado</th>
|
|
<th>Estado</th>
|
|
<th>Saldo</th>
|
|
</tr>
|
|
|
|
@foreach ($historial_recargas as $item)
|
|
<tr class="border hover:bg-gray-200 hover:ring-gray-500 text-left text-sm">
|
|
<td>{{ \Carbon\Carbon::parse($item->created_at)->format('y/m/d h:i a') }}</td>
|
|
<td>{{ $item->usuario?->name ?? 'N/A' }}</td>
|
|
<td>{{ $item->usuario?->email ?? 'N/A' }}</td>
|
|
<td>{{ $item->monto ?? 'N/A' }}</td>
|
|
<td>{{ $item->status ?? 'N/A' }}</td>
|
|
<td>{{ $item->valor_recarga ?? 'N/A' }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
<div class="mx-10">
|
|
{{ $historial_recargas->links() }}
|
|
</div>
|
|
</div>
|
|
</div>
|