@foreach ($karier as $data)
    <!-- Modal Detail -->
    <div class="modal fade" id="openModal_{{ $data->id_karier }}" tabindex="-1"
        aria-labelledby="openModalLabel_{{ $data->id_karier }}" aria-hidden="true">
        <div class="modal-dialog modal-lg modal-dialog-scrollable">
            <div class="modal-content">
                <div class="modal-header text-white" style="background-color: rgba(87, 7, 65, 1);">
                    <h5 class="modal-title" id="openModalLabel_{{ $data->id_karier }}">Riwayat Konseling -
                        {{ $data->siswa->nama_siswa }}</h5>
                    <button type="button" class="btn-close bg-white" data-bs-dismiss="modal" aria-label="Tutup"></button>
                </div>
                <div class="modal-body">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>Tanggal</th>
                                <th>Tujuan Kuliah</th>
                                <th>Rencana Jurusan</th>
                                <th>Keterangan</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach ($allkarier[$data->id_siswa] as $entry)
                                <tr>
                                    <td>{{ $entry->tanggal }}</td>
                                    <td>{{ $entry->kampus }}</td>
                                    <td>{{ $entry->prodi }}</td>
                                    <td>{{ $entry->keterangan }}</td>
                                </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
@endforeach
