{% 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="receivedOrderFilter-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="purchaseOrderBreakdown-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>PO Number</th>
                            {#<th>Batch No.</th>#}
                            <th>MRN</th>
                            <th>Supplier</th>
                            <th>Request Date</th>
                            <th>Branch</th>
                            <th>Requested By</th>
                            <th>No. of Items</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(){
            purchaseOrderBreakdownItemDelivery.settings.ajaxUrl = '{{ path('material_requisition_purchase_order_breakdown_receive_ajax_list') }}';
            purchaseOrderBreakdownItemDelivery.init();
        });
        //]]>
    </script>
{% endblock %}