
<?php $__env->startSection('title'); ?> অধ্যায় <?php $__env->stopSection(); ?>
<?php $__env->startSection('chapter'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('chapter.index'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin_content'); ?>

<!-- BEGIN: Content-->
<div class="app-content content ">
	<div class="card">

		<div class="card-header p-1">
			<div class="head-label">
				<h4>বিষয় এডিট</h4>
			</div>
		</div>

		<div class="card-body">
			<form action="<?php echo e(route('chapter.update',$chapter->id)); ?>" method="post">
				<?php echo csrf_field(); ?>
				<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
					<div class="row">

						<div class="col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6">
							<div class="form-group">
								<label for="name">অধ্যায়ের নাম <span class=" text-danger">(required)</span> </label>
								<input type="text" name="chapter_name" required class="form-control"
									value="<?php echo e($chapter->chapter_name); ?>">
							</div>

							<?php $__errorArgs = ['chapter_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
							<span class=text-danger><?php echo e($message); ?></span>
							<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
						</div>

						<div class="col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6">
							<div class="form-group">
								<label for="name">শ্রেণীর নাম <span class=" text-danger">(required)</span> </label>
								<select name="classname_id" class="form-select select2">
									<option disabled> শ্রেণী সিলেক্ট করুন </option>
									<?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $class): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($class->id); ?>"
										<?php echo e($class->id == $chapter->classname_id ? "selected":""); ?>><?php echo e($class->class_name); ?>

									</option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</select>
							</div>

							<?php $__errorArgs = ['classname_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
							<span class=text-danger><?php echo e($message); ?></span>
							<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
						</div>


						<div class="col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6 mt-2">
							<div class="form-group">
								<label for="name">বিভাগের নাম <span class=" text-danger">(required)</span> </label>
								<select id="department_id" name="department_id" class="form-select select2">
									<option disabled> বিভাগ সিলেক্ট করুন </option>

									<?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($department->id); ?>"
										<?php echo e($department->id == $chapter->department_id ? "selected":""); ?>>
										<?php echo e($department->department_name); ?></option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

								</select>
							</div>

							<?php $__errorArgs = ['department_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
							<span class=text-danger><?php echo e($message); ?></span>
							<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

						</div>


						<div class="col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6 mt-2">
							<div class="form-group">
								<label for="name">বিষয়ের নাম <span class=" text-danger">(required)</span> </label>
								<select id="subject_id" name="subject_id" class="form-select select2">
									<option disabled> বিষয় সিলেক্ট করুন </option>

									<?php $__currentLoopData = $subjects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subject): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($subject->id); ?>"
										<?php echo e($subject->id == $chapter->subject_id ? "selected":""); ?>>
										<?php echo e($subject->subject_name); ?></option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

								</select>
							</div>

							<?php $__errorArgs = ['subject_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
							<span class=text-danger><?php echo e($message); ?></span>
							<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

						</div>


						<div class="col-12 col-sm-12 col-md-2 col-lg-2 col-xl-2 d-flex align-items-center"
							style="margin-top: 35px;">
							<input type="submit" name="submit" class="btn btn btn-success" value="Save">
						</div>

					</div>

				</div>
			</form>
		</div>

	</div>

</div>
<!-- END: Content-->

<?php echo $__env->make('admin.chapter.partial.script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\testpaper-final\resources\views/admin/chapter/edit.blade.php ENDPATH**/ ?>