{% import '@LcShop/backend/default/block/macros.html.twig' as macros %}
<table class="table table-condensed">
    <thead>
        <tr>
            <th>Produits</th>
            <th>Stock</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for product in product_availabilities_negative %}
        <tr>
            <td>
                {{ product.productFamily.title }}
                {% if product.productFamily.behaviorCountStock == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_COUNT_STOCK_BY_PRODUCT") %}
                    - {{ product.title }}
                {% endif %}
            </td>
            <td>
                {{ macros.available_quantity_product(product) }}
            </td>
            <td>
                <a class="btn-sm btn-primary" href="{{ path('easyadmin', {'action' : 'edit', 'entity': 'ProductFamily', 'id' : product.productFamily.id }) }}#stock">
                    <i class="fa fa-pen"></i>
                </a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

