{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container has-loading">
                <div class="content-container-content hide">
                    <div class="row max-width-initial">
                        <div class="large-3 medium-4 columns">
                            {#<div class="input-group">#}
                                {#<label class="input-group-label">Status</label>#}
                                {#<select class="input-group-field" id="addInventoryFilter-status">#}
                                    {#<option value="all">All</option>#}
                                    {#<option value="New" selected>New</option>#}
                                    {#<option value="Completed">Completed</option>#}
                                {#</select>#}
                            {#</div>#}
                        </div>
                        <div class="large-9 medium-8 columns text-right">
                            {% if userData.type == 'Super Admin' or 'Admin Add Inventory New' in userData.accesses %}
                                <label class="middle"><a class="href-new-action" href="{{ path('add_inventory_form') }}">Add Purchase Inventory</a></label>
                            {% endif %}
                        </div>
                    </div>
                    <table class="display responsive" id="addInventory-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>Add Supply No.</th>
                            <th>Date</th>
                            <th>Branch</th>
                            {#<th>Supplier</th>#}
                            <th>Status</th>
                            <th>Notes</th>
                            <th>Action</th>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        jQ(document).ready(function(){
            addInventory.settings.ajaxUrl = '{{ path('add_inventory_ajax_list') }}';
            addInventory.init();
        });
        //]]>
    </script>
{% endblock %}