<?php $__env->startSection('title', 'Edit Mahasiswa'); ?>

<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-header"><h3 class="card-title">Edit Data Mahasiswa</h3></div>
    <div class="card-body">
        <form action="<?php echo e(route('mahasiswa.update', $mahasiswa->nim)); ?>" method="POST">
            <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">NIM</label>
                <div class="col-sm-10"><input type="text" name="nim" class="form-control" value="<?php echo e($mahasiswa->nim); ?>" disabled></div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Nama</label>
                <div class="col-sm-10"><input type="text" name="nama" class="form-control" value="<?php echo e($mahasiswa->nama); ?>" required></div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Bagian</label>
                <div class="col-sm-10">
                    <select name="bagian" class="form-control" required>
                        <option value="Hukum Pidana" <?php if($mahasiswa->bagian == 'Hukum Pidana'): ?> selected <?php endif; ?>>Hukum Pidana</option>
                        <option value="Hukum Tata Negara" <?php if($mahasiswa->bagian == 'Hukum Tata Negara'): ?> selected <?php endif; ?>>Hukum Tata Negara</option>
                        <option value="Hukum Perdata" <?php if($mahasiswa->bagian == 'Hukum Perdata'): ?> selected <?php endif; ?>>Hukum Perdata</option>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Jurusan</label>
                <div class="col-sm-10"><input type="text" name="jurusan" class="form-control" value="<?php echo e($mahasiswa->jurusan); ?>" required></div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Jenjang Program</label>
                <div class="col-sm-10">
                    <select name="jenjang_program" class="form-control" required>
                        <option value="S1" <?php if($mahasiswa->jenjang_program == 'S1'): ?> selected <?php endif; ?>>S1</option>
                        <option value="S2" <?php if($mahasiswa->jenjang_program == 'S2'): ?> selected <?php endif; ?>>S2</option>
                        <option value="S3" <?php if($mahasiswa->jenjang_program == 'S3'): ?> selected <?php endif; ?>>S3</option>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Judul Skripsi</label>
                <div class="col-sm-10"><textarea name="judul_skripsi" class="form-control" rows="3"><?php echo e($mahasiswa->judul_skripsi); ?></textarea></div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Alamat</label>
                <div class="col-sm-10"><textarea name="alamat" class="form-control" required><?php echo e($mahasiswa->alamat); ?></textarea></div>
            </div>
            <button type="submit" class="btn btn-primary">Update</button>
            <a href="<?php echo e(route('mahasiswa.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/mahasiswa/edit.blade.php ENDPATH**/ ?>