<div id="viewPersonil">
    <div class="row mb-3">
        <label for="nama" class="col-sm-2 col-form-label">Nama</label>
        <div class="col-sm-10">
            <span id="nama"> {{ $person['nm_pengguna'] }} </span>
        </div>
    </div>
    <div class="row mb-3">
        <label for="fakultas" class="col-sm-2 col-form-label">Fakultas</label>
        <div class="col-sm-10">
            <span id="fakultas"> {{ $person['nama_fakultas'] }}  </span>
        </div>
    </div>
    <div class="row mb-3">
        <label for="prodi" class="col-sm-2 col-form-label">Program Studi</label>
        <div class="col-sm-10">
            <span id="prodi"> {{ $person['nama_prodi'] }}  </span>
        </div>
    </div>
</div>

{{ Form::open(['url' => route('mahasiswa.anggota.store'), 'method' => 'post', 'id' => 'addPersonil']) }}
{!! Form::hidden('kelompok_id', $kelompok->kelompok_id) !!}
{!! Form::hidden('id_reg_pd', $person['id_pengguna']) !!}
{!! Form::hidden('nim', $person['username']) !!}
{!! Form::hidden('nama', $person['nm_pengguna']) !!}
{!! Form::hidden('fakultas', $person['nama_fakultas']) !!}
{!! Form::hidden('prodi', $person['nama_prodi']) !!}
{!! Form::hidden('status_ketua', '2') !!}
{{ Form::close() }}

<div class="mb-0">
    <div>
        <button type="button" class="btn btn-primary waves-effect waves-light me-1 btnSimpanPersonil" id="btnSimpanPersonil"> Submit </button>
        <a id="btnBatal" class="btn btn-secondary waves-effect" href="{{ url()->previous() }}"> Cancel </a>
    </div>
</div>
{{Html::script('js/person.js')}}
