<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 e($title); ?>

	        </header>
	        <table class="table table-striped">
	          <thead>
	            <tr>
	              <th><?php echo app('translator')->get('messages.title'); ?></th>
				  <?php if($title == '熱門店家' || $title == '週邊商家'): ?>
				  <?php else: ?>
	              <th style="width:20%"><?php echo app('translator')->get('messages.publish_dept'); ?></th>  
				  <?php endif; ?>
	              <th style="width:35%"><?php echo app('translator')->get('messages.publish_time'); ?></th>
	            </tr>
	          </thead>
	          <tbody>
	          	<?php foreach($news as $one): ?>
		          	<tr>                
		            	<td><a href="javascript:;" class="btn_news_view" data-type="<?php echo e($type); ?>" data-id="<?php echo e($one->id); ?>"><?php echo e($one->title); ?></a></td>
						<?php if($title == '熱門店家' || $title == '週邊商家'): ?>
						<?php else: ?>
						<td><?php echo e($one->author); ?></td>
						<?php endif; ?>
		            	<td><?php echo e($one->created_at); ?></td>
		            </tr>
	          	<?php endforeach; ?>
	          	

	          </tbody>
	        </table>
	        <?php if($news->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_nodata'); ?>
			</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_link" data-link="news"><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($news->currentPage() != 1): ?>
		    		<button type="button" class="btn btn-white btn_news_list" data-type="<?php echo e($type); ?>" data-page="<?php echo e($news->currentPage()-1); ?>"><i class="fa fa-chevron-circle-up fa-3x"></i></button>
		    		<?php endif; ?>

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