@foreach($freebies as $freebie) @php $getMenuStoreItems = $freebie->getMenuStoreItemCategories($freebie->id); @endphp @foreach($getMenuStoreItems as $getMenuStoreItem)
@php $has_freebie = $getMenuStoreItem->hasFreebies($menu_building_id, $getMenuStoreItem->store_item_id); @endphp @if($has_freebie) @else @endif
Card image

{{$getMenuStoreItem->menu_store_item->name}}

@endforeach @endforeach