Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allergens added to item_modal #37

Closed
wants to merge 2 commits into from

Conversation

babelattke
Copy link

No description provided.

Comment on lines +1 to +17
@foreach ($menuItem->allergens->where('status', 1) ?? [] as $allergen)
<a
class="badge {{ !($hasMedia = $allergen->hasMedia('thumb')) ? 'badge-light' : '' }} rounded mt-2 mr-1"
data-toggle="tooltip"
title="{{ $allergen->name }}: {{ $allergen->description }}"
>
@if ($hasMedia)
<img
class="img-responsive img-rounded"
alt="{{ $allergen->name }}"
src="{{ $allergen->getThumb(['width' => $menuAllergenImageWidth, 'height' => $menuAllergenImageHeight]) }}"
>
@else
{{ $allergen->name }}
@endif
</a>
@endforeach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the point displaying the same allergens as on the menu items page, shouldn't this display the allergens for the menu item options instead?

@sampoyigi sampoyigi closed this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants