<div class="price-module block-margin-top--{{ $block->margin_type_top }} block-margin-bottom--{{$block->margin_type_bottom}}">
    @if ($block->anchor_id )
        <div id="{{ $block->anchor_id }}" class="anchor-offset"></div>
    @endif
    <div class="price-module__wrapper">
        <div class="price-module__container" data-items="{{ $block->cards->count() >= 3 ? 3 : $block->cards->count() }}">
            @foreach($block->cards as $i => $item)
                @if ($i >= 3)
                    @break
                @endif

                <div class="price-module__item">
                    @if ($item->title)
                        <h2 class="price-module__title">
                            @title($item->title)
                        </h2>
                    @endif
                    @if ($item->subject || $item->embed)
                        <span class="price-module__subtitle">
                            {!! $item->embed !!}
                            @title($item->subject)
                        </span>
                    @endif
                    @if ($item->content)
                        <div class="price-module__list">
                            {!! $item->content !!}
                        </div>
                    @endif
                </div>
            @endforeach
        </div>
    </div>
</div>
