<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="card">
            <div class="card-header d-flex justify-content-between align-items-center">
                <div><?php echo e(__('إضافة نوع سؤال')); ?></div>
                <a class="btn btn-sm btn-secondary" href="<?php echo e(route('question-types.index')); ?>"><?php echo e(__('رجوع')); ?></a>
            </div>

            <div class="card-body">
                <?php if($errors->any()): ?>
                    <div class="alert alert-danger">
                        <ul class="mb-0">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><?php echo e($error); ?></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                <?php endif; ?>

                <form method="POST" action="<?php echo e(route('question-types.store')); ?>">
                    <?php echo csrf_field(); ?>

                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('الاسم')); ?></label>
                        <input class="form-control" name="name" value="<?php echo e(old('name')); ?>" required>
                    </div>

                    <div class="mb-3">
                        <label class="form-label"><?php echo e(__('Slug')); ?></label>
                        <input class="form-control" name="slug" value="<?php echo e(old('slug')); ?>" required>
                        <div class="form-text"><?php echo e(__('مثال: yes_no أو number أو text')); ?></div>
                    </div>

                    <button class="btn btn-primary" type="submit"><?php echo e(__('حفظ')); ?></button>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp82\htdocs\GeneralProject-form\resources\views/question-types/create.blade.php ENDPATH**/ ?>