@foreach($records as $record) @if(!$record->head_office_linked)head_office_linked ? 'checked' : ''}} /> @endif {{$record->createdDate()}} @php echo $record->head_office_linked ? 'Linked' : 'Not Linked' @endphp Preview @endforeach