<?php $__env->startSection('content'); ?>
    <h1 class="h3 mb-3">Add New Course</h1>

    <div class="card">
        <form action="<?php echo e(route('admin.courses.store')); ?>" method="post" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Name<span class="text-danger">*</span></label>
                        <input type="text" name="name" class="form-control" required>
                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="text-danger"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-md-6 mb-3">
                        <label class="form-label">Description</label>
                        <textarea name="description" rows="3" class="form-control"></textarea>
                    </div>
                    <div class="col-md-3 mb-3">
                        <label class="form-label">Image<span class="text-danger">*</span></label>
                        <input type="file" name="image" class="form-control" required>
                        <?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="text-danger"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-md-3 mb-3">
                        <label class="form-label">Button Link</label>
                        <input type="text" name="btn_link" class="form-control">
                    </div>
                    <div class="col-md-3 mb-3">
                        <label class="form-label">Work Submission<span class="text-danger">*</span></label>
                        <select name="work_submit" class="form-select" required>
                            <option value="1">Enabled</option>
                            <option value="0">Disabled</option>
                        </select>
                    </div>
                    <div class="col-md-3 mb-3">
                        <label class="form-label">Commission<span class="text-danger">*</span></label>
                        <input type="number" step="any" min="0" name="commission" class="form-control" value="0" required>
                    </div>
                </div>

            </div>

            <div class="card-footer d-flex justify-content-between">
                <a href="<?php echo e(route('admin.courses.index')); ?>" class="btn btn-dark">Back</a>
                <button type="submit" type="submit" class="btn btn-primary">Save</button>
            </div>
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/munfashion/public_html/resources/views/backend/courses/add.blade.php ENDPATH**/ ?>