Did you know the Blade @each
directive can help cleanup loops in your templates?
// good@foreach($item in $items) <div> <p>Name: {{ $item->name }} <p>Price: {{ $item->price }} </div>@endforeach // better (HTML extracted into partial)@each('partials.item', $items, 'item')
Tip given by @kirschbaum_dev