<% breadcrumb_add t('commissions'), settings_commissions_path, settings_commissions_path, t('details') %>

<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
   <div class="card">
  <div class="card-block">
    <h4 class="card-title"><%= t("en.commissions") %></h4>
    <table class="table">
      <tbody>
      <tr>
        <th style="width:20%"><%= t("views.right_panel.detail.product") %> <%= t("views.right_panel.detail.name_txt2") %></th>
        <td><%= @commission.name rescue '-' %></td>
      </tr>
      <tr>
        <th style="width:20%"><%= t("views.right_panel.detail.amount") %></th>
        <td><%= @commission.amount %></td>
      </tr>
      <tr>
        <th style="width:20%"><%= t("views.right_panel.detail.commission_type") %></th>
        <td><%= @commission.commission_type %></td>
      </tr>
      <tr>
        <th style="width:20%"><%= t("views.right_panel.detail.active") %></th>
        <td><%= @commission.is_active %></td>
      </tr>
      <tr>
        <td colspan="2" align="right">
          <%= link_to t("views.btn.edit"), edit_settings_commission_path(@commission), class: 'btn btn-info btn-sm waves-effect' %>
          <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%= settings_commission_path(@commission)%>" data-method="delete">
            <%= t("views.btn.delete") %>
          </button>

          <span class="hidden" id="delete_text">
              <h6>Are you sure you want to delete this row ?</h6>
              <h6>This action can't be undo. </h6> 
          </span>
        </td>
      </tr>
      </tbody>
    </table>
  </div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
  <div class="card">
    <div class="body">
      <h5><i class="material-icons md-18">view_headline <%= t("views.right_panel.header.page_detail") %></i></h5>
      <p>
      1) <%= t("views.right_panel.detail.product") %> <%= t("views.right_panel.detail.name_txt2") %> - <%= t("views.right_panel.detail.product_txt") %> <%= t("views.right_panel.detail.name_txt2") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      2) <%= t("views.right_panel.detail.amount") %> - <%= t("views.right_panel.detail.amount_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      3) <%= t("views.right_panel.detail.commission_type") %> - <%= t("views.right_panel.detail.commission_type_txt") %> <br>
      4) <%= t("views.right_panel.detail.active") %> - <%= t("views.right_panel.detail.status_txt2") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      </p>
      <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.button_lists") %></i> </h5>
      <p>
      1) <%= t("views.right_panel.button.edit") %> - <%= t("views.right_panel.detail.edit_btn_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      2) <%= t("views.right_panel.button.delete") %> - <%= t("views.right_panel.detail.delete_btn_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      </p>
      <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.link_lists") %></i> </h5>
      <p>
        1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %> <br>
        2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
      </p>
    </div>
  </div>  
</div>
</div>

