<div class="sellers-filter">
   {get_sellers assign='sellers_for_flags'}
   {$flags = []}
   {foreach $sellers_for_flags as $item}
      {foreach array_keys($item.flags) as $flag}
         {$flags[$flag] = true}
      {/foreach}
   {/foreach}

   {foreach $cfg['Seller']['Flags'] as $key => $flag}
      {if !isset($flags[$key]) || $key != 'REN'}
         {continue}
      {/if}

      <label class="custom-control custom-checkbox">
         <input type="checkbox" name="type[]" value="{$key}" class="custom-control-input" data-sellers-filter-input="flags">
         <span class="custom-control-indicator"></span>
         <span class="custom-control-text">
            {$flag.name}
            <i class="tooltip tooltip-p"></i>
         </span>
      </label>
   {/foreach}
</div>
