<!-- DATA EXPORT -->
<div class="widget widget-table">
	<div class="widget-header">
		<h3><i class="fa fa-table"></i> View Entry Records</h3>
	</div>
	<div class="widget-content">
		<table id="datatable-data-export" class="table table-sorting table-striped table-hover table-bordered datatable">
			<thead>
				<tr>
					<th>Day</th>
					<th>Date</th>
					<th>Mortality</th>
					<th>Feed</th>
					<th>Water</th>
					<th>Med/Vac</th>
					<th>Temperature</th>
					<th>Humidity</th>	
					<th>Total Weight</th>
					<th>Observation</th>	
					<th>Suggestion</th>
					<?php
					/*
					<th>Action</th>									
					*/
					?>
				</tr>
			</thead>
			<tbody>
    			@foreach ($data['entryrecords'] as $entryrecords) 
				<tr>
					<td><?php
						 $today = strtotime(date('Y-m-d',strtotime($data['batchrec']->bch_dttim)));
				$your_date = strtotime($entryrecords->feed_dt);
				$datediff = $your_date - $today;
				echo floor($datediff / (60 * 60 * 24));
				?></td>
					<td><?php echo date("d-m-Y",strtotime($entryrecords->feed_dt)); ?></td>
					<td>{{$entryrecords->feed_mortality}}</td>
					<td>{{$entryrecords->feed_feed}}</td>
					<td>{{$entryrecords->feed_water}}</td>
					<td>{{$entryrecords->feed_medical}}</td>
					<td>{{$entryrecords->feed_temp}}</td>
					<td>{{$entryrecords->feed_humidity}}</td>	
					<td>{{$entryrecords->totalweight}}</td>
					<td>{{$entryrecords->feed_observation}}</td>	
					<td>{{$entryrecords->feed_suggestion}}</td>
					<?php
					/*
					<td><button class="btn btn-default btn-xs print" onclick="loadentryrec(<?php echo  $data['batchid']; ?>,0)" >View More</button></td>									
					*/
					?>
				</tr>
				@endforeach				
			</tbody>
		</table>
	</div>
</div>
<!-- END DATA EXPORT -->