<div class="page-header">
 <ul class="breadcrumb">
  <li><a href="<%=  %>">Home</a></li>
  <li>Employee</li>
  <span style="float: right">
    <%= link_to t('.new', :default => t("helpers.links.new")),new_settings_employee_path,:class => 'btn btn-primary btn-sm' %>
  </span>
 </ul>
</div>

<br>
<div class="card">
  <table class="table table-striped">
    <thead>
      <tr>
        <th style="width:40%">Name</th>
        <th style="width:40%">Role</th>
        <th style="width:20%">Action</th>
      </tr>
    </thead>

    <tbody>
      <% @employees.each do |employee| %>
        <tr>
          <td><%= link_to employee.name,settings_employee_path(employee)  %></td>
          <td><%= employee.role %></td>
          <td>
            <%= link_to 'Edit', edit_settings_employee_path(employee) %> | <%= link_to 'Destroy', employee[:setting], method: :delete, data: { confirm: 'Are you sure?' } %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
