<?php $__env->startSection('title', 'Buat SK Tim Penguji'); ?>

<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-header"><h3 class="card-title">Form SK Tim Penguji (P4)</h3></div>
    <div class="card-body">
        <form action="<?php echo e(route('p4.tim_penguji.store')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <div class="form-group row">
                <label class="col-sm-3 col-form-label">Mahasiswa</label>
                <div class="col-sm-9">
                    <select name="nim_mahasiswa" class="form-control" required>
                        <?php $__currentLoopData = $mahasiswa; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($m->nim); ?>"><?php echo e($m->nim); ?> - <?php echo e($m->nama); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-3 col-form-label">Judul Skripsi</label>
                <div class="col-sm-9"><textarea name="judul_skripsi" class="form-control" required></textarea></div>
            </div>

            <hr>
            <h4>Susunan Tim Penguji</h4>
            <?php for($i = 1; $i <= 5; $i++): ?>
            <div class="form-group row">
                <label class="col-sm-3 col-form-label">Penguji <?php echo e($i); ?> <?php echo e($i == 1 ? '(Ketua)' : ($i == 2 ? '(Sekretaris)' : '(Anggota)')); ?></label>
                <div class="col-sm-9">
                    <select name="nip_penguji<?php echo e($i); ?>" class="form-control" <?php echo e($i <= 2 ? 'required' : ''); ?>>
                        <option value="">-- Pilih Dosen --</option>
                        <?php $__currentLoopData = $dosen; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($d->nip); ?>"><?php echo e($d->nip); ?> - <?php echo e($d->nama); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <?php endfor; ?>

            <button type="submit" class="btn btn-primary">Simpan SK</button>
            <a href="<?php echo e(route('p4.tim_penguji.index')); ?>" class="btn btn-secondary">Batal</a>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /opt/lampp/htdocs/skripsifh/resources/views/p4/tim_penguji/create.blade.php ENDPATH**/ ?>