<div id="inventory-wrapper">
    <div class="row">
         <div class="col s3" style="padding-top: 22px;">
            <a class="waves-effect waves-light green btn-large update-inventory">{Literal}Save{/Literal}</a>
        </div>
        <div class="col s6">
            <div class="input-field">
                <div class="input-field inline">
                    <input placeholder="{Literal}Scan or search item code{/Literal}" id="itemSearch" type="text"  class="autocomplete">
                </div>
                &nbsp;&nbsp;
                <a href="javascript:void(0)" class="btn waves-effect waves-light green add-item">
                    <i class="material-icons">add</i>
                </a>
            </div>
        </div>
        <div class="col s3" style="padding-top: 22px;">
            <a class="waves-effect waves-light green btn-large close-inventory" <%= inventory.length === 0 ? 'disabled' : '' %>>{Literal}Receive Inventory{/Literal}</a>
        </div>
    </div>
    <div class="row">
        <% _.each(inventory, function(inventory) { %>
            <div class="col s12 m3 xl2">
                <div class="card-panel card-panel-entity z-depth-1 sequence-card hoverable waves-effect waves-light" style="background-color: #ffffff" data-id="<%= inventory.id %>" data-selected='0'>
                    <div>
                        <div class="row truncate" style="font-size: .95rem; color: gray; margin-bottom: 0px;">
                            {Literal}Id{/Literal}: 
                            <%= inventory.id %>
                        </div>
                        <div class="row description truncate" style="color: #3970b7;">
                            <%= inventory.description %>
                        </div>
                        <div class="row truncate" style="font-size: .95rem; color: gray; margin-bottom: 0px;">
                            {Literal}Qty on Hand{/Literal}:
                            <%= inventory.qtyOnHand %>
                        </div>
                        <div class="row truncate" style="font-size: .95rem; color: gray; margin-bottom: 0px;">
                            {Literal}This Session{/Literal}:
                            <%= inventory.total %>
                        </div>
                        <br>
                    </div>
                    <div class="edit" style="display: none">
                        <a href="javascript:void(0)" class="btn-floating btn-large waves-effect waves-light ap-dark-blue edit-inventory-trigger"
                            data-id="<%= inventory.id %>">
                            <i class="material-icons">edit</i>
                        </a>
                    </div>
                </div>
            </div>
        <% }); %>
    </div>
</div>
        
<div id="inventory-form-modal" class="modal modal-fixed-footer inventory-form-modal" style="max-height: 100%">
    
</div>