null check log recargas

This commit is contained in:
Juan Felipe Duarte
2025-08-19 15:03:21 -07:00
parent 5529804bd2
commit c33339b3c5
@@ -5,7 +5,7 @@
<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">
@@ -17,19 +17,19 @@
<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}}</td>
<td>{{$item->usuario->email}}</td>
<td>{{$item->monto}}</td>
<td>{{$item->status}}</td>
<td>{{$item->valor_recarga}}</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( )}}