@forelse($records as $record)
@php
$recordIdentifier = $useRefId ? $record->refid : $record->id;
@endphp
title ?? $record->name ?? ''),
$event.target.checked,
@js($fieldLabel ?? '')
)"
class="rounded border-gray-300 text-primary-600 focus:ring-primary-500">
@empty
@lang('No records found.')
@endforelse
@if ($records instanceof \Illuminate\Pagination\LengthAwarePaginator && $records->hasPages())
{{-- Previous --}}
@if ($records->onFirstPage())
←
@else
@endif
{{-- Page indicator --}}
{{ $records->currentPage() }} of {{ $records->lastPage() }}
{{-- Next --}}
@if ($records->hasMorePages())
@else
→
@endif
@endif