output selected blocks on the front in different places

Good afternoon! Tell me how you can draw blocks on the front selectively? Example Block 1 text text text Block 2 Block 3 text text text Block 4 The problem is that my data is formed through the block class in the blade, I display a variable. If, for example, to receive fields directly in the blade, then everything works through @foreach($work->blocks as $block) @if ($loop->index === 1) // Content inserted between first and second block @endif @include('admin.site.blocks.' . $block->type, ['block' => $block]) @endforeach
1 Reply
Hro
Hro2y ago
Hey hip-hop, you cannot make the text segments blocks as well?
Want results from more Discord servers?
Add your server