<?php $__env->startSection('content'); ?>



<link href="<?php echo e(asset('assets/css/vendor/quill.core.css')); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo e(asset('assets/css/vendor/quill.snow.css')); ?>" rel="stylesheet" type="text/css" />




<div class="container mt-2">
		<?php $__env->startComponent('components.breadcrumb'); ?>
            <?php $__env->slot('title'); ?>
                <?php echo app('translator')->get('teacherstaff.edittitle'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1'); ?>
                <?php echo app('translator')->get('common.dashboard'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1_link'); ?>
                <?php echo e(route('dashboard')); ?>

            <?php $__env->endSlot(); ?>
            <?php if(\App\Traits\RolePermissionTrait::checkRoleHasPermission('role', 'create')): ?>
				<?php $__env->slot('action_button1'); ?>
                  <i class="fa fa-eye"></i> <?php echo app('translator')->get('common.view'); ?>
                <?php $__env->endSlot(); ?>
                <?php $__env->slot('action_button1_link'); ?>
                    <?php echo e(route('teacherstaff.index')); ?>

                <?php $__env->endSlot(); ?>
            <?php endif; ?>
            <?php $__env->slot('action_button1_class'); ?>
                btn-primary
            <?php $__env->endSlot(); ?>
        <?php echo $__env->renderComponent(); ?>
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<h3><?php echo app('translator')->get('teacherstaff.edittitle'); ?></h3><br>
				<form method="post" class="btn-submit" action="<?php echo e(route('teacherstaff.update',$data->id)); ?>" enctype="multipart/form-data">
					<?php echo csrf_field(); ?>
					<?php echo method_field('PUT'); ?>
					<div class="row myinput">
						<div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.department'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<select class="form-control" name="department_id" id="department_id">
                                    <option value=""><?php echo app('translator')->get("common.select_one"); ?></option>
									<?php if(isset($department)): ?>
									<?php $__currentLoopData = $department; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option <?php if($data->department_id == $c->id): ?> selected <?php endif; ?> value="<?php echo e($c->id); ?>" <?php $c->id == $data->department_id ?  "selected" : '' ?>><?php echo e($c->department); ?></option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									<?php endif; ?>
								</select>
							</div>
						</div>
                        <div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.sl'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group mt-2">
								<input class="form-control" type="text" name="sl" id="sl"  required="" value="<?php echo e($data->sl); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.name'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="name" id="name"  required="" value="<?php echo e($data->name); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.designation'); ?>: </label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="designation" id="designation"  value="<?php echo e($data->designation); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.nid'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="nid" id="nid" value="<?php echo e($data->nid); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-4">
							<label><?php echo app('translator')->get('teacherstaff.blood'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="blood" id="blood"  value="<?php echo e($data->blood); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.religion'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<select class="form-control" name="religion" id="option_s2">
									<option value="Islam" <?php $data->religion == "Islam" ? 'selected' : '' ?>>Islam</option>
									<option value="Hindu" <?php $data->religion == "Hindu" ? 'selected' : '' ?>>Hindu</option>
									<option value="Buddho" <?php $data->religion == "Buddho" ? 'selected' : '' ?>>Buddho</option>
									<option value="Christan" <?php $data->religion == "Christan" ? 'selected' : '' ?>>Christan</option>

								</select>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.relationship'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<select class="form-control" name="relationship" id="option_s2">
									<?php if($data->relationship == "Unmarried"): ?>
									<option value="Unmarried">Unmarried</option>
									<option value="Married">Married</option>
									<?php else: ?>
									<option value="Married">Married</option>
									<option value="Unmarried">Unmarried</option>
									<?php endif; ?>
								</select>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.father_name'); ?>: </label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="father_name" id="father_name" value="<?php echo e($data->father_name); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.mother_name'); ?>: </label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="mother_name" id="mother_name" value="<?php echo e($data->mother_name); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.mobile'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="mobile" id="mobile"  required="" value="<?php echo e($data->mobile); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.email'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="text" name="email" id="email"  value="<?php echo e($data->email); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.join_date'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="date" name="join_date" id="join_date"  value="<?php echo e($data->join_date); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.mpo_date'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="date" name="mpo_date" id="mpo_date" value="<?php echo e($data->mpo_date); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.present_address'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<textarea rows="3" class="form-control" name="present_address" required=""><?php echo e($data->present_address); ?></textarea>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.parmanent_address'); ?>: </label>
							<div class="input-group -mt-2">
								<textarea rows="3" class="form-control" name="parmanent_address"><?php echo e($data->parmanent_address); ?></textarea>
							</div>
						</div>
						<div class="form-group mb-3 col-md-12">
							<label><?php echo app('translator')->get('teacherstaff.education'); ?>: </label>
							<div class="input-group -mt-2">
								<textarea rows="3" class="form-control" name="education"><?php echo e($data->education); ?></textarea>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.gender'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<select class="form-control" name="gender" id="option_s2">
									<?php if($data->gender == "Male"): ?>
									<option value="Male">Male</option>
									<option value="Female">Female</option>
									<?php else: ?>
									<option value="Female">Female</option>
									<option value="Male">Male</option>
									<?php endif; ?>
								</select>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('teacherstaff.type'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group -mt-2">
								<select class="form-control" name="type" id="option_s2">
									<?php if($data->type == 1): ?>
									<option value="1">Teacher</option>
									<option value="2">Staff</option>
									<?php else: ?>
									<option value="2">Staff</option>
									<option value="1">Teacher</option>

									<?php endif; ?>
								</select>
							</div>
						</div>
						<div class="form-group mb-3 col-md-12">
							<label><?php echo app('translator')->get('common.image'); ?>:</label>
							<div class="input-group -mt-2">
								<input class="form-control" type="file" name="image" id="image">
								<br>
							</div>
							<img src="<?php echo e(asset($data->image)); ?>" style="max-height: 100px;">
						</div>
						<div class="modal-footer border-0">
							<button type="button" class="btn btn-secondary border-0" onClick="window.location.reload();"><?php echo app('translator')->get('common.close'); ?></button>
							<button type="submit" class="btn btn-success button border-0"><?php echo app('translator')->get('common.update'); ?></button>
						</div>
					</div>
				</form>
			</div> <!-- end card body-->
		</div> <!-- end card -->
	</div><!-- end col-->
</div>



<script src="<?php echo e(asset('assets/js/vendor/quill.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/pages/demo.quilljs.js')); ?>"></script>



<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gzmcfenigov/public_html/resources/views/admin/teacherstaff/edit.blade.php ENDPATH**/ ?>