<tr id="anggota-{{ $i }}">
    <td>
        {{ $i }}
    </td>
    <td>
        {{ $item['nama'] }}
        <input type="hidden" name="anggota[{{ $i }}][nama]" value="{{ $item['nama'] }}" required/>
    </td>
    <td>
        {{ $item['email'] }}
        <input type="hidden" name="anggota[{{ $i }}][email]" value="{{ $item['email'] }}" required/>
    </td>
    <td>
        {{ $item['nik'] }}
        <input type="hidden" name="anggota[{{ $i }}][nik]" value="{{ $item['nik'] }}" required/>
    </td>
    <td>
        {{ $item['telepon'] }}
        <input type="hidden" name="anggota[{{ $i }}][telepon]" value="{{ $item['telepon'] }}" required/>
    </td>
    <td>
        @if ($i > 1)
        <div class="col-md-4 float-right">
            <button class="btn btn-danger" type="button" onclick="hapusAnggota('{{ $i }}')">Hapus</button>
        </div>
        @endif
    </td>
</tr>
