@if(isset($success) && $success && isset($endpoint) && !isset($datatable))
  <!-- <div class="alert alert-success"> -->
    <!-- <h5>Nuovo Product Key generato:</h5> -->
    <div class="mb-0">
      <!-- <label for="inputProductKey" class="form-label small text-muted mb-1">Product key</label> -->
      <div class="input-group input-group-merge input-group-lg ">
        <input
          type="text"
          class="form-control font-monospace "
          id="inputProductKey"
          readonly
          disabled
          value="{{ $endpoint->product_key }}"
          onclick="this.select()"
          aria-label="Product key"
        >
        <button
          type="button"
          class="btn btn-outline-primary"
          id="btnCopyProductKey"
          onclick="copyProductKey(this)"
          title="Copia negli appunti"
          aria-label="Copia product key"
        >
          <i class="bx bx-copy"></i>
        </button>
      </div>
    </div>
  <!-- </div> -->
@elseif(isset($datatable))
  <span class="badge bg-success-subtle text-success-emphasis">
    <i class="bx bx-check"></i>
    {{ $endpoint->product_key }}
  </span>
@else
  <div class="alert alert-danger">
    Si è verificato un errore nella generazione del Product Key.
  </div>
@endif