{{-- 
  Mostra le icone degli allergeni se sono contenuti nell'array $allergeni.
  $allergeni deve essere un array contenente i nomi (stringa) degli allergeni.
  Ogni icona viene mostrata solo se il suo nome è presente.
  Le icone usate sono tratte da: https://icon-icons.com/it/ricerca/icone/allergeni
--}}

@php
  // dimensione icona uniforme
  $iconSize = 22;
@endphp

@if(in_array('Cereali contenenti glutine', $allergeni ?? []))
  {{-- Icona cereali/glutine --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoGluten-Gluten_icon-icons.com_67600.svg&id=67600&pack_or_individual=pack"
       alt="Cereali contenenti glutine" width="{{$iconSize}}" height="{{$iconSize}}" title="Cereali contenenti glutine"/>
@endif

@if(in_array('Crostacei', $allergeni ?? []))
  {{-- Icona crostacei --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoCrustaceo-Crustaceans_icon-icons.com_67603.svg&id=67603&pack_or_individual=pack"
       alt="Crostacei" width="{{$iconSize}}" height="{{$iconSize}}" title="Crostacei"/>
@endif

@if(in_array('Uova', $allergeni ?? []))
  {{-- Icona uova --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoHuevo-Egg_icon-icons.com_67598.svg&id=67598&pack_or_individual=pack"
       alt="Uova" width="{{$iconSize}}" height="{{$iconSize}}" title="Uova"/>
@endif

@if(in_array('Pesce', $allergeni ?? []))
  {{-- Icona pesce --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FFish_icon-icons.com_67594.svg&id=67594&pack_or_individual=pack"
       alt="Pesce" width="{{$iconSize}}" height="{{$iconSize}}" title="Pesce"/>
@endif

@if(in_array('Arachidi', $allergeni ?? []))
  {{-- Icona arachidi --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoCacahuete-Peanuts_icon-icons.com_67604.svg&id=67604&pack_or_individual=pack"
       alt="Arachidi" width="{{$iconSize}}" height="{{$iconSize}}" title="Arachidi"/>
@endif

@if(in_array('Soia', $allergeni ?? []))
  {{-- Icona soia --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FSoy_icon-icons.com_67593.svg&id=67593&pack_or_individual=pack"
       alt="Soia" width="{{$iconSize}}" height="{{$iconSize}}" title="Soia"/>
@endif

@if(in_array('Latte', $allergeni ?? []))
  {{-- Icona latte --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoLacteos-DairyProducts_icon-icons.com_67597.svg&id=67597&pack_or_individual=pack"
       alt="Latte" width="{{$iconSize}}" height="{{$iconSize}}" title="Latte"/>
@endif

@if(in_array('Frutta a guscio', $allergeni ?? []))
  {{-- Icona frutta a guscio --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoFrutosCascaraPeelFruits_icon-icons.com_67601.svg&id=67601&pack_or_individual=pack"
       alt="Frutta a guscio" width="{{$iconSize}}" height="{{$iconSize}}" title="Frutta a guscio"/>
@endif

@if(in_array('Sedano', $allergeni ?? []))
  {{-- Icona sedano --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoApio-Celery_icon-icons.com_67605.svg&id=67605&pack_or_individual=pack"
       alt="Sedano" width="{{$iconSize}}" height="{{$iconSize}}" title="Sedano"/>
@endif

@if(in_array('Senape', $allergeni ?? []))
  {{-- Icona senape --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoMostaza-Mustard_icon-icons.com_67595.svg&id=67595&pack_or_individual=pack"
       alt="Senape" width="{{$iconSize}}" height="{{$iconSize}}" title="Senape"/>
@endif

@if(in_array('Semi di sesamo', $allergeni ?? []))
  {{-- Icona semi di sesamo --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoGranosSesamo-SesameGrains_icon-icons.com_67599.svg&id=67599&pack_or_individual=pack"
       alt="Semi di sesamo" width="{{$iconSize}}" height="{{$iconSize}}" title="Semi di sesamo"/>
@endif

@if(in_array('Anidride solforosa e solfiti', $allergeni ?? []))
  {{-- Icona solfiti/anidride solforosa --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoDioxidoAzufreSulfitosSulfurDioxideSulphites_icon-icons.com_67602.svg&id=67602&pack_or_individual=pack"
       alt="Anidride solforosa e solfiti" width="{{$iconSize}}" height="{{$iconSize}}" title="Anidride solforosa e solfiti"/>
@endif

@if(in_array('Lupini', $allergeni ?? []))
  {{-- Icona lupini --}}
  <img src="https://icon-icons.com/download-file?file=https%3A%2F%2Fimages.icon-icons.com%2F852%2FSVG%2FIconoAlergenoAltramuces-Lupins_icon-icons.com_67606.svg&id=67606&pack_or_individual=pack"
       alt="Lupini" width="{{$iconSize}}" height="{{$iconSize}}" title="Lupini"/>
@endif

{{-- Se serve aggiungere altre icone standard, seguire questa logica e inserire i file SVG appropriati nella cartella public/assets/svg-allergeni/ --}}