<?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 Courses
                                </a>
                            </ol>
                        </div>
                        <h4 class="page-title">Add Courses</h4>
                    </div>
                </div>
            </div>

            <!-- end page title -->

                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('courses.store')); ?>" method="POST" enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php echo csrf_field(); ?>
                          <div class="row">
                            <div class="mb-3 col-md-4">
                                <label class="form-label">Course 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 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(old('course_name')); ?>" placeholder="Course Name" required>
                            </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(old('course_fees')); ?>" placeholder="Course Fees">
                            </div>
                            <div class="mb-3 col-md-4">
                                <label class="form-label">Fees Type</label>
                                <input type="text" class="form-control" name="course_fees_type" value="<?php echo e(old('course_fees_type')); ?>" placeholder="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(old('course_duration')); ?>" placeholder="Fees Duration">
                            </div>
                            <div class="mb-3 col-md-12">
                                <label class="form-label">Eligibility</label>
                                <textarea class="form-control" name="course_eligibility"  placeholder="Eligibility" rows="5"><?php echo e(old('course_eligibility')); ?></textarea>
                            </div>
                            <div class="mb-3 col-md-12">
                                <label class="form-label">About Description</label>
                                <textarea id="snow-editor" class="form-control"  name="course_description"  placeholder="About Description" rows="8"><?php echo e(old('course_description')); ?></textarea>
                            </div>

                            <div class="mb-3 col-md-4">
                                <label class="form-label">Image</label>
                                <input type="file" name="course_img" class="form-control">

                                <img id="blah" src="<?php echo e(URL::asset('backend/images/courses/' . old('course_img'))); ?>"
                                             onerror="this.onerror=null; this.src='../backend/images/no_image.png'" style="width: 35%;"/>
                            </div>
                            <div class="mb-3 col-md-12">
                               <button class="btn btn-primary" type="submit">Submit</button>
                            </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/create.blade.php ENDPATH**/ ?>