<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.household_meter_read'); ?>
	        </header>
	        <table class="table table-striped">
	          <thead>
	            <tr>
	              <th><?php echo app('translator')->get('messages.form_got_name'); ?></th>
	              <th><?php echo app('translator')->get('messages.start_date'); ?></th>
	              <th><?php echo app('translator')->get('messages.end_date'); ?></th>
	              <th><?php echo app('translator')->get('messages.points'); ?></th>
	              <th><?php echo app('translator')->get('messages.action'); ?></th>                    
	            </tr>
	          </thead>
	          <tbody>
	          	<?php foreach($records as $one): ?>
		          	<tr>
		          		<td><?php echo e($one->type); ?>-<?php echo e($one->title); ?></td>
		          		<td><?php echo e($one->time_start); ?></td>
		          		<td><?php echo e($one->time_end); ?></td>
		          		<?php if($one->status == 1): ?>
		          		<td><input type="text" class="form-control" id="record_<?php echo e($one->id); ?>" placeholder="<?php echo app('translator')->get('messages.points'); ?>" value="<?php echo e($one->value); ?>"></td>
		          		<td><button class="btn btn-default btn_record_submit" data-id="<?php echo e($one->id); ?>"><?php echo app('translator')->get('messages.submit'); ?></button></td>
		          		<?php else: ?>
		          		<td><input type="text" class="form-control" placeholder="<?php echo app('translator')->get('messages.points'); ?>" value="<?php echo e($one->value); ?>" readonly></td>
		          		<td></td>
		          		<?php endif; ?>
		          		
		            </tr>
	          	<?php endforeach; ?>
	          </tbody>
	        </table>
	        <?php if($records->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_meter_form'); ?>
			</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($records->currentPage() != 1): ?>
		    		<button type="button" class="btn btn-white btn_link" data-link="<?php echo e($type); ?>" data-page="<?php echo e($records->currentPage()-1); ?>"><i class="fa fa-chevron-circle-up fa-3x"></i></button>
		    		<?php endif; ?>

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