<div id="scheduled-email-reports-wrapper" <%= (App.rtl ? 'style="direction:rtl"' : '') %>>
    <div class="row">
        <% _.each(scheduledReports, function(scheduledReport) { %>
            <div class="col s12 m3 xl2">
                <div class="card-panel card-panel-entity z-depth-1 hoverable waves-effect waves-light" style="display: block;" >

                        <div class="row description truncate" >
                            <div style="color: #3970b7; font-weight: bold;">
                            <% if(scheduledReport.active) { %>
                            <i class="material-icons ap-green-text" style="font-size: .95rem !important">play_circle_outline</i>
                            <% } else {%>
                                <i class="material-icons ap-cancel-red-text" style="font-size: .95rem !important">pause_circle_outline</i>
                            <%}%>
                            <%=scheduledReport.description %>
                            </div>
                           
                            <div class="description truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;font-weight: normal">
                                Report: <%= reports[scheduledReport.reportName].name%>
                            </div>
                            <div class="description truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;font-weight: normal">
                                Send Every: <%= scheduledReport.sendEvery%>
                            </div>
                        </div>

                    <div class="edit" style="display: none;">
                        <a href="javascript:void(0)" class="btn-floating btn-large waves-effect waves-light edit-schedule-trigger ap-dark-blue"
                        data-id="<%= scheduledReport.id %>">
                            <i class="material-icons">edit</i>
                        </a>
                    </div>
                </div>
            </div>
        <% }); %>
    </div>
</div>
        
<div id="scheduled-email-reports-form-modal" class="modal modal-fixed-footer" style="max-height: 100%">
</div>

<a href="javascript:void(0)" id="add-schedule-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>