<?php $__env->startSection('content'); ?>
    <h2><?php echo e($student->supervisor_id ? 'Change' : 'Assign'); ?> Supervisor to <?php echo e($student->name); ?></h2>

    <?php if(session('success')): ?>
        <div class="alert alert-success"><?php echo e(session('success')); ?></div>
    <?php endif; ?>

    <form action="<?php echo e(route('admin.students.assign.update', $student->id)); ?>" method="POST">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <div class="form-group">
            <label for="supervisor_id">Supervisor:</label>
            <select name="supervisor_id" class="form-control">
                <option value="">-- None --</option>
                <?php $__currentLoopData = $supervisors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supervisor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($supervisor->id); ?>"
                        <?php echo e($student->supervisor_id == $supervisor->id ? 'selected' : ''); ?>>
                        <?php echo e($supervisor->name); ?> (<?php echo e($supervisor->email); ?>)
                    </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <button type="submit" class="btn btn-success mt-3">Save</button>
        <a href="<?php echo e(route('admin.students.index')); ?>" class="btn btn-secondary mt-3">Back</a>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\Laravel Projects\internmanager\resources\views/admin/students/assign.blade.php ENDPATH**/ ?>