@if (!empty($records))
#
Lote
Producto
Fecha de vencimiento
Estado
Stock
@foreach ($records as $key => $value) @php $item = \App\Models\Tenant\Item::select('description') ->where('id', $value->item_id) ->first(); $state = ''; if ($value->state) { $state = \Modules\Item\Models\ItemLotsGroupState::select('description') ->where('id', $value->state_id) ->first()->description; } @endphp
{{ $loop->iteration }}
{{ $value->code }}
{{ $item->description }}
{{ $value->date_of_due }}
{{ $state }}
{{ $value->quantity }}
@endforeach
@else
No se encontraron registros.
@endif