@if(count($records) > 0)
@php $row_created = false;@endphp @foreach($records as $k => $record) @if($loop->first || count($records) == 2) @endif @if(!$loop->first && count($records) > 2) @if(!$row_created) @php $row_created = true;@endphp
@endif @if($loop->last)
@endif @endif @endforeach
@endif