
<div class="page-header">
 <ul class="breadcrumb">
  <li><a href="<%=  %>">Home</a></li>
  <li>Membership Setting</li>
  <span style="float: right">
    <%= link_to t('.new', :default => t("helpers.links.new")),new_settings_membership_setting_path,:class => 'btn btn-primary btn-sm' %>
  </span>
 </ul>
</div>
<div class="card">
  <table class="table table-striped">
    <thead>
      <tr>
        <th>Membership type</th>
        <th>Is active</th>
        <th>Gateway communication type</th>
        <th>Gateway url</th>
        <th>Auth token</th>
        <th>Merchant account</th>
        <th>Created by</th>
        <th colspan="3"></th>
      </tr>
    </thead>

    <tbody>
      <% @settings_membership_settings.each do |settings_membership_setting| %>
        <tr>
          <td><%= link_to settings_membership_setting.membership_type, settings_membership_setting_path(settings_membership_setting) %></td>
          <td><%= settings_membership_setting.is_active %></td>
          <td><%= settings_membership_setting.gateway_communication_type %></td>
          <td><%= settings_membership_setting.gateway_url %></td>
          <td><%= settings_membership_setting.auth_token %></td>
          <td><%= settings_membership_setting.merchant_account rescue ''%></td>
          <td><%= settings_membership_setting.created_by %></td>
          <td><%= link_to 'Edit', edit_settings_membership_setting_path(settings_membership_setting) %></td>
          <td><%= link_to 'Destroy', settings_membership_setting_path(settings_membership_setting), method: :delete, data: { confirm: 'Are you sure?' } %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
