    <!-- 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>Comisiones</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">
                        <i class="fa fa-list "></i>
                        <span class="caption-subject bold uppercase">Lista de comisiones</span>
                      </div>
                      <div class="actions">

                        <% if can? :create, Commission %>
                          <%= link_to sellers_for_commissions_path, :remote => true, :class=>"btn bold green pull-right" do %> Generar pago de comisión <i class="fa fa-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>Fecha de pago</th>
                            <th>Período</th>
                            <th>Vendedores</th>
                            <th>Ventas</th>
                            <th>Total de ventas</th>
                            <th>Responsable</th>
                            <th width="15%">Acciones</th>
                          </tr>
                        </thead>
                        <tbody>
                        <% @commissions.each_with_index do |commission, key| %>
                            <tr>
                              <td><%= key +1 %></td>
                              <td><%= l(commission.created_at, :format => '%d/%m/%Y') %></td>
                              <td>
                                del <strong><%= l(commission.initial_date, :format => '%d/%m/%Y') %></strong> al <strong><%= l(commission.final_date, :format => '%d/%m/%Y') %></strong>
                              </td>
                              <td> <%= commission.sellerscommissions.count %> </td>
                              <td> <%= commission.sellerscommissions.sum(:num_sales) %> </td>
                              <td><%= number_to_currency(commission.commission_total, precision: 2) %></td>
                              <td><%= commission.user.first_name %> <%= commission.user.last_name %></td>
                              <td class="text-center">
                              <%= link_to commission_path(commission), {:class=>"btn btn-icon-only default filtros", :title=>"Ver detalles de comisión"} do %>
                                <i class="fa fa-search"></i>
                              <% 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 -->
