@if (have_rows('link_items'))
    <div class="image-text__links">
        @while (have_rows('link_items'))
            @php
                the_row();
                $item = get_sub_field( 'link_item' );
                $target = $item['target'] ? $item['target'] : '_self';
            @endphp
            @if ($item)
                <a href="{{ $item['url'] }}" target="{{ $target }}" class="image-text__links__item">
                    <p>{!! $item['title'] !!}</p>
                    <span>{{ __('Learn more', 'aphea') }}</span>
                </a>
            @endif
        @endwhile
    </div>
@endif