<div id="group-items-wrapper" <%= (App.rtl ? 'style="direction:rtl"' : '') %>>
    <div class="row">
        <% _.each(groupItems, function(groupItems) { %>
            <% if (groupItems.masterItemDescription != "FlexGroup Item not in effect") { %>
                <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="<%= groupItems.masterItemId %>" data-selected='0'>
                        <div>
                            <div class="row price truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                                {Literal}ID{/Literal}:
                                <%= groupItems.masterItemId%>
                            </div>
                            <div class="row description truncate" style="color: #3970b7;">
                                <%= groupItems.masterItemDescription %>
                            </div>

                            <br>
                            <div class="row price truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                                {Literal}Price{/Literal}: 
                                <%= groupItems.priceAfterDiscount %>
                            </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-group-item-trigger"
                                data-id="<%= groupItems.masterItemId %>">
                                <i class="material-icons">edit</i>
                            </a>
                        </div>
                    </div>
                </div>
            <% } %>
        <% }); %>
    </div>
</div>

<div id="group-items-form-modal" class="modal modal-fixed-footer group-items-form-modal" style="max-height: 100%">
    
</div>

<a href="javascript:void(0)" id="add-group-item-button" class="btn-floating btn-large waves-effect waves-light ap-blue z-depth-4 floating-action-button-fixed">
    <i class="material-icons">add</i>
</a>