<div class="row">
	<div class="col-xs-11">
        <section class="panel" style="font-size: 160%;">
	        <header class="panel-heading">
	          <?php /* <span class="label bg-danger pull-right">4 left</span> */ ?>
	          <?php echo app('translator')->get('messages.mailllllll'); ?>
	        </header>
	        <table class="table table-striped">
	          <thead>
	            <tr>
	              <th><?php echo app('translator')->get('messages.kind'); ?></th>
	              <th><?php echo app('translator')->get('messages.send_place'); ?></th>
	              <th><?php echo app('translator')->get('messages.mail_send_date'); ?></th>
	              <th><?php echo app('translator')->get('messages.status'); ?></th>
	              <th><?php echo app('translator')->get('messages.mail_get_date'); ?></th>
	            </tr>
	          </thead>
	          <tbody>
	          	<?php foreach($mails as $one): ?>
		          	<tr>
		          		<td><?php echo e($one->mailtype); ?></td>
		          		<td><?php echo e($one->mail_source); ?></td>
		          		<td><?php echo e($one->mailsenddate); ?></td>
		          		<td>
							<?php if($one->mailstate == '0'): ?>
							<span class="label label-sm label-danger"> <?php echo app('translator')->get('messages.mail_yet'); ?> </span>
							<?php elseif($one->mailstate == '1'): ?>
							<span class="label label-sm label-success"> <?php echo app('translator')->get('messages.mail_got'); ?> </span>
							<?php elseif($one->mailstate == '2'): ?>
							<span class="label label-sm label-default"> <?php echo app('translator')->get('messages.del_ed'); ?> </span>
							<?php endif; ?>
						</td>
		          		<td><?php echo e($one->mailgetdate); ?></td>
		            </tr>
	          	<?php endforeach; ?>
	          </tbody>
	        </table>
	        <?php if($mails->count() == 0): ?>
			<div class="alert alert-info" style="margin: 30px;text-align: center;">
				<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
				<?php echo app('translator')->get('messages.sor_no_mail'); ?>
			</div>
	        <?php endif; ?>
	      </section>
    </div>

    <div class="col-xs-1">
    	<div class="row">
    		<div class="col-xs-12">
    			<div class="btn-group-vertical m-b-sm">
    				<button type="button" class="btn btn-white btn_home"><i class="fa fa-mail-reply fa-3x"></i></button>
    			</div>
    		</div>
    		<div class="col-xs-12">
    			<div class="btn-group-vertical m-b-sm">
		    		<?php if($mails->currentPage() != 1): ?>
		    		<button type="button" class="btn btn-white btn_link" data-link="<?php echo e($type); ?>" data-page="<?php echo e($mails->currentPage()-1); ?>"><i class="fa fa-chevron-circle-up fa-3x"></i></button>
		    		<?php endif; ?>

		    		<?php if($mails->hasMorePages() ): ?>
			        <button type="button" class="btn btn-white btn_link" data-link="<?php echo e($type); ?>" data-page="<?php echo e($mails->currentPage()+1); ?>"><i class="fa fa-chevron-circle-down fa-3x"></i></button>
			        <?php endif; ?>
			    </div>
    		</div>
    		
    	</div>
    	
    </div>
</div>