<div class="page-header">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="<%= root_path %>"><%= t("views.right_panel.button.home") %></a></li>
    <li class="breadcrumb-item"><a href="<%= print_settings_path %>"><%= t("views.right_panel.header.print_settings") %></a></li>
    <li class="breadcrumb-item active"><%= t :details %></li>
    <span class="float-right">
      <%= link_to t('.back', :default => t("views.btn.back")), print_settings_path %>
    </span>
  </ol>
</div>
<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
    <div class="card">
      <div class="card-block">
        <table class="table">
          <tbody>
            <tr>
              <th><%= t("views.right_panel.detail.name") %></th>
              <td><%= @print_setting.name %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.unique_code") %></th>
              <td><%= @print_setting.unique_code %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.template") %></th>
              <td><%= @print_setting.template %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.printer_name") %></th>
              <td><%= @print_setting.printer_name %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.brand_name") %></th>
              <td><%= @print_setting.brand_name %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.printer_type") %></th>
              <td><%= @print_setting.printer_type %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.font") %></th>
              <td><%= @print_setting.font rescue '-' %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.api_settings") %></th>
              <td><%= @print_setting.api_settings %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.page_width") %></th>
              <td><%= @print_setting.page_width %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.page_height") %></th>
              <td><%= @print_setting.page_height %></td>
            </tr>
            <tr>
              <th><%= t("views.right_panel.detail.print_copies") %></th>
              <td><%= @print_setting.print_copies %></td>
            </tr>
            <tr>
              <th>Include Shift Sale Items</th>
              <td>
                <% if @lookup == '1' %>
                <%= 'True' %>
                <% else %>
                <%= 'False' %>
                <% end %>
              </td>
            </tr>
            <tr>
              <td colspan="2" align="right">
                <%= link_to t("views.btn.edit"), edit_print_setting_path(@print_setting),:class => 'btn btn-info btn-sm waves-effect' %>
                <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%= print_settings_path(@print_setting)%>" 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-3 col-lg-3">
    <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.name") %> - <%= t("views.right_panel.detail.print_settings_txt") %> <%= t("views.right_panel.detail.name_txt2") %> <br>
        2) <%= t("views.right_panel.detail.unique_code") %> - <%= t("views.right_panel.detail.unique_code_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        3) <%= t("views.right_panel.detail.template") %> - <%= t("views.right_panel.detail.template_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        4) <%= t("views.right_panel.detail.printer_name") %> - <%= t("views.right_panel.detail.printer_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        5) <%= t("views.right_panel.detail.font") %> - <%= t("views.right_panel.detail.font_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        6) <%= t("views.right_panel.detail.api_settings") %> - <%= t("views.right_panel.detail.api_settings_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        7) <%= t("views.right_panel.detail.page_width") %> - <%= t("views.right_panel.detail.page_width_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        8) <%= t("views.right_panel.detail.page_height") %> - <%= t("views.right_panel.detail.page_height_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_txt") %> <br>
        9) <%= t("views.right_panel.detail.print_copies") %> - <%= t("views.right_panel.detail.print_copies_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.print_settings_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.print_settings_txt") %> <br>
        2) <%= t("views.right_panel.button.delete") %> - <%= t("views.right_panel.detail.delete_btn_txt") %> <%= t("views.right_panel.detail.print_settings_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.print_settings_txt") %> <br>
        </p>
      </div>
    </div>
  </div>
</div>
