<?php $this->load->view('settings/partials/header') ?>
<div class="window-content">
    <div class="page-loader" style="display: none;"></div>
    <div class="pane-group">
        <?php $this->load->view('settings/partials/sidebar') ?>
        <div class="pane">
            <div class="content-inner">
                <div class="content-form" style="width: 80%; float: left; background: #087692; padding: 20px;">
                    <table class="report-table">
                        <caption>Email Subscriber</caption>
                        <?php if (!empty($list)): ?>
                            <?php foreach ($list as $review): ?>
                                <tr>
                                    <td>
                                        <?php echo $review->email ?>
                                    </td>  
                                </tr>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </table>
                </div>
                <div class="content-sidebar-nav" style="width: 20%; float: right;">
                    <?php $this->load->view('page/page_nav') ?>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="setting-general-keyboard text-center"></div>
<?php $this->load->view('settings/partials/footer') ?>
<script type="text/javascript">
    function changeReviewStatus(status, id) {
        $.ajax({
            url: '<?php echo site_url('page/changeReviewStatus') ?>',
            dataType: 'json',
            type: 'POST',
            data: {status: status, id: id},
            success: function (response) {
                if (response.status) {
                    zamanEposNavigator('page', '<?php echo site_url('page/riviewlist') ?>', 'page');
                } else {
                    warning('<?php echo $this->lang->line('error') ?>', response.message, '<?php echo $this->lang->line('ok') ?>');
                }
            }
        });
    }
</script>
