<div class="dashboard-wrapper">
	<!-- Main Container Start -->
	<div class="main-container">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12 col-xs-12">
					<div class="panel panel-default">
						<div class="panel-heading clearfix">
							<i class="icon-dashboard"></i>
							<h3 class="panel-title">
								<% image = @inventory.location_network.network_ssids.last.is_enabled rescue "false" %>
								<%= link_to "Device", inventory_index_path,:class=>"text-info" %>  &nbsp; <%= image_tag(image.to_s+".png") %> &nbsp; <%= @inventory.mac_id%></h3>
						</div>
						<div class="panel-body">
							<div class="row">
								<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
									<thead>
								    <tr>
								      <th>Mac address</th>
								      <th>Serial Number</th>
								      <th>Activated On</th>
								      <th>Network Name</th>
								      <th>Tags</th>
								    </tr>
									</thead>
									<tbody>
										<%@routers.each do |x|%>
									    <tr>
									    	<% image = x.location_network.network_ssids.last.is_enabled rescue "false" %>
									      <td><%= image_tag(image.to_s+".png")%> <%= link_to x.mac_id, inventory_path(x.id) %></td>
												<td><%= link_to x.mac_id, inventory_path(x.id) %></td>
									      <td><%=format_date(x.created_at,:default)%></td>
									      <td><%= link_to x.location_network.network_name, home_path(x.location_network) unless x.location_network.blank? %></td>

									      <td width="15%"><% x.tag_list.each do |y| %>
									      	<%= link_to y, {:controller=>:inventory,:action=>:showing_tag, :id=>y, :type=>"tag_list"} %>,
									      	<% end %>
									      </td>
									    </tr>
										<%end%>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>