{% load helpers %}

<div class="card">
  <h5 class="card-header d-flex justify-content-between align-items-center">
    Assigned Licenses
  </h5>
  <table class="table table-hover table-headings mb-0">
    <tbody>
      <tr>
        <td>
          <a href="{% url 'plugins:netbox_license:licenseassignment_list' %}?virtual_machine__cluster_id={{ object.id }}">
            Licenses
          </a>
        </td>
        <td class="text-end">
          <span class="badge text-bg-primary rounded-pill">{{ licenses|length }}</span>
        </td>
      </tr>
    </tbody>
  </table>
</div>
