{#each Object.entries(schueler) as [klasse, schueler]}
  <h3 class="title">{klasse}</h3>
  <table class="table is-striped">
    <thead>
      <tr>
        <th>ID></th>
        <th>Name</th>
        <th>Vorname</th>
        <th>Voucher</th>
      </tr>
    </thead>
    <tbody>
      {#each schueler as s}
        <tr>
          <td>{s.hashid}</td>
          <td>{s.Name}</td>
          <td>{s.Vorname}</td>
          <td><span class={s.voucher && "tag is-info is-medium"}>{s.voucher || ''}</span></td>
        </tr>
      {/each}
    </tbody>
  </table>
{/each}

<script>
  export let schueler, klasse
</script>
