<% if @product.chk_quantity.eql?(true) %>
    <div class="info-box" style="border: 1px solid rgba(0,0,0,0.2);">
        <span class="info-box-icon bg-green"><i class="fa fa-cart-arrow-down"></i></span>
        <div class="info-box-content">
            <span class="info-box-text">Rozliczanie ilościowe włączone</span>
            <span class="info-box-number"><%= link_to('Wyłącz rozliczanie', {controller: '/ps_admin/product', action: 'set_chk_quantity', id: @product.id, chk_qnt: 0}, remote: true) %></span>
        </div>
    </div>
<% else %>
<div class="info-box" style="border: 1px solid rgba(0,0,0,0.2);">
    <span class="info-box-icon bg-red"><i class="fa fa-opencart"></i></span>
    <div class="info-box-content">
        <span class="info-box-text">Rozliczanie ilościowe wyłączone</span>
        <span class="info-box-number"><%= link_to('Włącz rozliczanie', {controller: '/ps_admin/product', action: 'set_chk_quantity', id: @product.id, chk_qnt: 1}, remote: true) %></span>
    </div>
</div>
<% end %>
