		<!-- BEGIN CONTAINER -->
		<div class="page-container">
			<!-- BEGIN CONTENT -->
			<div class="page-content-wrapper">
				<!-- BEGIN CONTENT BODY -->
				<!-- BEGIN PAGE HEAD-->
				<div class="page-head">
					<div class="container-fluid">
						<!-- BEGIN PAGE TITLE -->
						<div class="page-title">
							<h1>Proveedores </h1>
						</div>
						<!-- END PAGE TITLE -->
					</div>
				</div>
				<!-- END PAGE HEAD-->
				<!-- BEGIN PAGE CONTENT BODY -->
				<div class="page-content">
					<div class="container-fluid">
						<!-- BEGIN PAGE BREADCRUMBS -->
						<ul class="page-breadcrumb breadcrumb">
							<%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
						</ul>
						<!-- END PAGE BREADCRUMBS -->
						<!-- BEGIN PAGE CONTENT INNER -->
						<div class="page-content-inner">
							<div id="notice">
							<% if success %>
								<div class="alert alert-success">
									<p><%= success %></p>
								</div>
							<% elsif warning %>
								<div class="alert alert-warning">
									<p><%= warning %></p>
								</div>
							<% end %>
							</div>
							<div class="row">
								<div class="col-md-12">
									<div class="portlet light ">
										<div class="portlet-title">
											<div class="caption">
													<%= icon('list') %>
													<span class="caption-subject bold uppercase">Lista de Proveedores</span>
											</div>
											<div class="actions">
												<% if can? :manage, Supplier %>
												<%= link_to new_supplier_path, {:class=>"btn bold green pull-right filtros"} do %> Nuevo Proveedor <%= icon('plus') %></i>
												<% end %>
												<% end %>
											</div>
										</div>
										<div class="portlet-body">
											<input type='hidden' name='filter' id='filter' value='<%= @filter %>' >
											<input type='hidden' name='current_page' id='current_page' value='<%= @current_page %>' >
											<table class="table table-striped table-bordered table-hover tableadvanced">
												<thead>
													<tr>
														<th>#</th>
														<th>Proveedor</th>
														<th>RFC</th>
														<th>Teléfono</th>
														<th>Status</th>
														<th width="15%">Acciones</th>
													</tr>
												</thead>
												<tbody>
													<% @suppliers.each_with_index do |supplier, key| %>
													<tr>
														<td><%= key + 1 %></td>
														<td><%= supplier.nick_name %> </td>
														<td> <% if supplier.billing_information.present? %> <%= supplier.billing_information.rfc %> <% end %></td>
														<td><%= supplier.phone %></td>
														<td class="text-center">
															<% if supplier.status == "inactive" %>
																<i class='fa fa-times fa-2 font-red'></i> 
															<% else %> 
																<i class='fa fa-check fa-2 font-green'></i> 
															<% end %>
														</td>
														<td class=""><%= link_to supplier, {:class=>"btn btn-icon-only default filtros", :title=>"Ver proveedor"} do %>
																<%= icon('search') %>
															<% end %>
															<% if can? :update, Supplier %>
															<%= link_to edit_supplier_path(supplier), {:class=>"btn btn-icon-only btn-primary filtros", :title=>"Editar proveedor"} do %>
																<%= icon('edit') %>
															<% end %>
															<% end %>
															<% if supplier.active? %>
																<%= link_to supplier_update_status_path(supplier), :class=>"btn btn-icon-only default", :title=>"Desactivar proveedor", data: { confirm: '¿Esta seguro de desactivar el proveedor?', method: 'post'}  do %>
																	<i class="fa fa-toggle-off"></i>
																<% end %>
															<% elsif supplier.inactive? %>
																<%= link_to supplier_update_status_path(supplier), :class=>"btn btn-icon-only green-jungle", :title=>"Activar proveedor", data: { confirm: '¿Esta seguro de activar el proveedor?', method: 'post'}  do %>
																	<i class="fa fa-toggle-on"></i>
																<% end %>
															<% end %>
															<% if can? :destroy, Supplier %>
																<%= link_to supplier , method: :delete, :class => "btn btn-icon-only btn-danger", :title=>"Eliminar proveedor", data: { confirm: '¿Esta seguro de eliminar al Proveedor?'}   do %> 
																	<%= icon('trash-o') %>
																<% end %>
															<% end %>
														</td>
													</tr>
													<% end %>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- END PAGE CONTENT INNER -->
					</div>
				</div>
				<!-- END PAGE CONTENT BODY -->
				<!-- END CONTENT BODY -->
			</div>
			<!-- END CONTENT -->
		</div>
		<!-- END CONTAINER -->