Right now, I have to create lots of blade templates because of the following problem. I am seeking creative solutions for this issue. One of them is to do a 'select as' query but Eloquent Model::with() does not support aliasing (as far as I can tell).
@foreach($products as $product)
@foreach($product->typeAs as $typeA) or @foreach($product->typeBs as $typeB)
// same html for both typeA and typeB
@endforeach
@endforeach