<?php $__env->startSection('content'); ?>
<style>
	.addstudent {
		width: 600px;
		margin: 50px 150px;
	}

	.addstudent form {
		margin: 0 auto;
	}

	#addbutton {
	    border: none;
	    width: 100px;
	    height: 38px;
	    border-radius: 3px;
	    background: #415F2A;
	    color: #fff;
	}

</style>
	<div class="addstudent">
		<h3>Add new student</h3>

		<form action="<?php echo e(URL::to('/') . '/admin/administration/update-student'); ?>" method="post">
			
			<input type="hidden" name="_method" value="put">

			<label for="first_name">First name</label>
			<input type="text" name="first_name" value="<?php echo e($student->first_name); ?>" placeholder="First name"><br><br>

			<label for="last_name">Last name</label>
			<input type="text" name="last_name" value="<?php echo e($student->last_name); ?>" placeholder="Last name"><br><br>

			<label for="email">Email</label>
			<input type="email" name="email" value="<?php echo e($student->email); ?>" placeholder="Email"><br><br>

			<label for="parent_email">Parent email</label>
			<input type="email" name="parent_email" value="<?php echo e($student->parent_email); ?>" placeholder="Parent email"><br><br>

			<label for="home_phone">Home phone</label>
			<input type="text" name="home_phone" value="<?php echo e($student->home_phone); ?>" placeholder="Home phone"><br><br>

			<label for="class_id">Assign class</label>
			<select name="class_id" id="">
			<?php foreach($programs as $program): ?>
				<option value="<?php echo e($program->id); ?>"><?php echo e($program->name . '(' . $program->firstName . ' ' . $program->lastName . ')'); ?></option>
			<?php endforeach; ?>
			</select><br><br>
			
			<input type="hidden" name="student_id" value="<?php echo e($student->id); ?>">

			<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">

			<input type="submit" id="addbutton" name="submit" value="Update Student">

		</form>
	</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.administration', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>