{* @compiler:inline-only *}
{if $body.product}
   {$product = $body.product}
   {$charges = $product->fetchCharges()}
{elseif $product}
   {$charges = $product->getCharges()}
{/if}
{if $product.charges}
   <div class="product-charges" data-tooltip-wrapper>
       {foreach $product.charges as $charge}
           {if $charge.figure == 'N'}{continue}{/if}
          <label class="custom-control custom-checkbox">
             <input type="checkbox" name="note[charges][{$charge.id}]" value="Y" class="custom-control-input" data-charge-input>
             <span class="custom-control-indicator"></span>
             <span class="title">{$charge.title|default:$charge.admin_title} {t price=$charge.price|format_price}za {price}{/t}</span>
             {if $charge.descr}
                <i class="fc icons_tooltip charge-tooltip">
                   <span class="wpj-tooltip">{$charge.descr|strip_tags}</span>
                </i>
             {/if}
          </label>
       {/foreach}
   </div>
{/if}

