

<?php $__env->startSection('title', 'Newsletter - Lista'); ?>

<?php $__env->startSection('content_header', 'Newsletter <small>lista newsletter</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Newsletter</h3>
                </div>
                <?php if(count($newsletter) > 0): ?>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tr>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'id', '_title' => '#'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'email', '_title' => 'E-mail'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th>&nbsp;</th>
                            </tr>
                            <?php foreach($newsletter as $mail): ?>
                                <tr>
                                    <td><?php echo e($mail->id); ?></td>
                                    <td><?php echo e($mail->email); ?></td>
                                    <td><a href="<?php echo e(route('admin.newsletter.delete', $mail->id)); ?>" class="btn btn-danger btn-xs confirm-action">sterge</a></td>
                                </tr>
                            <?php endforeach; ?>
                        </table>
                    </div>
                    <?php if($newsletter->hasPages()): ?>
                        <div class="box-footer">
                            <?php echo $newsletter->render(); ?>

                        </div>
                    <?php endif; ?>
                <?php else: ?>
                    <div class="box-body">
                        <div class="alert alert-info">Nu exista mailuri</div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>