<div class="box-body">
	<div class="table-responsive">
		<table id='dispatchtable' class="table table-striped table-hover table-bordered search-table" style="font-size: 110%">
			<thead>
				<tr>
					<th class="text-center">#</th>
					<th class="text-center">Facility</th>
					<!-- <th class="text-center">District</th> -->
					<!-- <th class="text-center">Hub</th> -->
					<!-- <th class="text-center">IP</th> -->
					<th class="text-center">Item Requested</th>
					<th class="text-center">Qty Ordered</th>
					<th class="text-center">Request Date</th>
					<th class="text-center">Date Received @ Hub</th>
					<th class="text-center">TAT 3</th>
					<!-- <th class="text-center">Status</th> -->
					<!-- <th class="text-center">Qty Dispatched</th> -->
					<!-- <th class="text-center">Dispatch Date</th> -->
					<!-- <th class="text-center">Dispatched By</th> -->
					<!-- <th class="text-center">Actions</th> -->
				</tr>
			</thead>

			<tbody>
				<?php $row=1; ?>
				<?php foreach($hubrcvd as $value): ?>
				<tr>
					<td class="text-center"><?php echo $row; ?></td>
					<td class="text-center"><?php echo $value->facility->facility; ?></td>
					<!-- <td class="text-center"><?php echo $value->district->name; ?></td> -->
					<!-- <td class="text-center"><?php echo $value->hub->hub; ?></td> -->
					<!-- <td class="text-center"><?php echo $value->ip; ?></td> -->

					<?php if($value->commodity_id == 0): ?>
					<td class="text-center" style="color:red"><i>no commodity selected</i></td>
					<?php else: ?>
					<td><?php echo $value->commodity->name; ?></td>
					<?php endif; ?>

					<td class="text-center"><?php echo $value->qty_to_order; ?></td>
					<td class="text-center"><?php echo $value->created_at; ?></td>
					<td class="text-center"><?php echo $value->hub_date_received; ?></td>
					<td class="text-center"><?php echo $value->dispatch_tat3; ?></td>

				</tr>
				<?php $row++; ?>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>
