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

<div class="content-page">
    <div class="content">

          <!-- Start Content-->
          <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <a href="<?php echo e(route('courses.index')); ?>" class="btn btn-sm btn-dark waves-effect">
                                    <i class="dripicons-reply me-1"></i> Back To All Courses
                                </a>
                            </ol>
                        </div>
                        <h4 class="page-title">Update Course</h4>
                    </div>
                </div>
            </div>

            <!-- end page title -->


                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('courses.update',$courses->id)); ?>" method="POST" enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>
                            <div class="row">

                                <div class="mb-3 col-md-4">
                                    <label class="form-label">Select Category</label>
                                    <select class="form-select" id="example-select" name="course_category_id" required>
                                        <option>Select Here</option>
                                        <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categories): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($categories->id); ?>" <?php if($categories->id==$courses->course_category_id): ?><?php echo e('selected'); ?><?php endif; ?>><?php echo e($categories->course_name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" >Course Name</label>
                                    <input type="text" class="form-control" name="course_name" value="<?php echo e($courses->course_name); ?>">
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" >Course Fees</label>
                                    <input type="text" class="form-control" name="course_fees" value="<?php echo e($courses->course_fees); ?>">
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" >Course Type</label>
                                    <input type="text" class="form-control" name="course_fees_type" value="<?php echo e($courses->course_fees_type); ?>">
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" >Course Duration</label>
                                    <input type="text" class="form-control" name="course_duration" value="<?php echo e($courses->course_duration); ?>">
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label">Eligibility</label>
                                    <textarea class="ckeditor" name="course_eligibility" value="<?php echo e($courses->course_eligibility); ?>" rows="5"><?php echo e($courses->course_eligibility); ?></textarea>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label">Description</label>
                                    <textarea class="ckeditor" name="course_description" value="<?php echo e($courses->course_description); ?>" rows="5"><?php echo e($courses->course_description); ?></textarea>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label">Image</label>
                                    <input type="file" name="course_img" value="<?php echo e($courses->course_img); ?>" class="form-control">
                                    <img id="blah" src="<?php echo e(URL::asset('backend/images/courses/' . $courses->course_img)); ?>"
                                    alt="your image" onerror="this.onerror=null; this.src='backend/images/no_image.svg'"/ style="width:100%">
                                </div>
                                <div class="mb-3 col-md-12">
                                  <button class="btn btn-primary" type="submit">Submit</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
        <!-- container -->
    </div>
    <!-- content -->

</div>

</div>
<!-- END wrapper -->

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

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\gyanoday_laravel\resources\views/backend/courses/edit.blade.php ENDPATH**/ ?>