{% 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-6 columns">
                            <div class="input-group">
                                <label class="input-group-label">Status</label>
                                <select class="input-group-field" id="purchaseInvoice-status">
                                    <option value="all">All</option>
                                    <option {{ status is null or status == 'Active' ? 'selected' : '' }} value="Active">Active</option>
                                    <option {{ status == 'Closed' ? 'selected' : '' }} value="Closed">Closed</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <table class="display responsive" id="purchaseInvoice-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>Supplier</th>
                            <th>PO No.</th>
                            <th>Payment Method</th>
                            <th>No. of Items</th>
                            <th>Total Amount</th>
                            <th>Status</th>
                            <th>Added Quantity</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(){
            purchaseInvoice.settings.ajaxUrl = '{{ path('material_requisition_purchase_invoice_ajax_list') }}';
            purchaseInvoice.init();
        });
        //]]>
    </script>

{% endblock %}