<div class="modal-header">
    <h4 class="modal-title" id="ceratModal">إنشاء باقة</h4>
    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="X"></button>
</div>
<div class="modal-body">
    <form class="planForm" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <div class="row">

            
            <div class="col-md-4">
                <div class="form-group">
                    <input type='file' onchange="loadFile_image(image)" name="image" id="image"
                        class="<?php $__errorArgs = ['image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" style="display:none;" />
                    <button id="output_image" type="button" onclick="document.getElementById('image').click();"
                        style="width: 100px;
                                height: 100px;
                                border-radius: 0.357rem !important;
                                background-color: #cecbcb;
                                background-repeat: no-repeat;
                                background-size: cover;
                                background-position: center;
                                " />
                </div>
                <label for="username"><?php echo e(__('Icon')); ?></label>
            </div>
            <script>
                var loadFile_image = function(image) {
                    var image = document.getElementById('output_image');
                    var src = URL.createObjectURL(event.target.files[0]);
                    image.style.backgroundImage = 'url(' + src + ')';
                };
            </script>
            <hr class="invoice-spacing">
            <ul class="nav nav-tabs" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active" id="rh_arabic-tab" data-bs-toggle="tab"
                        href="#rh_arabic" aria-controls="rh_arabic" role="tab"
                        aria-selected="true"> عربي</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="rh_english-tab" data-bs-toggle="tab"
                        href="#rh_english" aria-controls="rh_english" role="tab"
                        aria-selected="false"> English</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="rh_arabic" aria-labelledby="rh_arabic-tab"
                    role="tabpanel">
                    <?php if (isset($component)) { $__componentOriginal767b2fe2f313e877004be11b5e91bb94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal767b2fe2f313e877004be11b5e91bb94 = $attributes; } ?>
<?php $component = App\View\Components\InputField::resolve(['label' => ''.e(__('عنوان')).'','name' => 'title_ar','value' => ''.e(old('title_ar')).'','required' => 'true','col' => '6','maxLength' => '1000'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\InputField::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal767b2fe2f313e877004be11b5e91bb94)): ?>
<?php $attributes = $__attributesOriginal767b2fe2f313e877004be11b5e91bb94; ?>
<?php unset($__attributesOriginal767b2fe2f313e877004be11b5e91bb94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal767b2fe2f313e877004be11b5e91bb94)): ?>
<?php $component = $__componentOriginal767b2fe2f313e877004be11b5e91bb94; ?>
<?php unset($__componentOriginal767b2fe2f313e877004be11b5e91bb94); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d = $attributes; } ?>
<?php $component = App\View\Components\TextareaField::resolve(['label' => ''.e(__('الوصف')).'','name' => 'description_ar','value' => ''.e(old('description_ar')).'','maxLength' => '10000'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('textarea-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\TextareaField::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d)): ?>
<?php $attributes = $__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d; ?>
<?php unset($__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d)): ?>
<?php $component = $__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d; ?>
<?php unset($__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d); ?>
<?php endif; ?>
                </div>
                <div class="tab-pane" id="rh_english" aria-labelledby="rh_english-tab"
                    role="tabpanel">
                    <?php if (isset($component)) { $__componentOriginal767b2fe2f313e877004be11b5e91bb94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal767b2fe2f313e877004be11b5e91bb94 = $attributes; } ?>
<?php $component = App\View\Components\InputField::resolve(['label' => ''.e(__('عنوان en')).'','name' => 'title_en','value' => ''.e(old('title_en')).'','required' => 'true','col' => '6','maxLength' => '1000'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\InputField::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal767b2fe2f313e877004be11b5e91bb94)): ?>
<?php $attributes = $__attributesOriginal767b2fe2f313e877004be11b5e91bb94; ?>
<?php unset($__attributesOriginal767b2fe2f313e877004be11b5e91bb94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal767b2fe2f313e877004be11b5e91bb94)): ?>
<?php $component = $__componentOriginal767b2fe2f313e877004be11b5e91bb94; ?>
<?php unset($__componentOriginal767b2fe2f313e877004be11b5e91bb94); ?>
<?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d = $attributes; } ?>
<?php $component = App\View\Components\TextareaField::resolve(['label' => ''.e(__('الوصف en')).'','name' => 'description_en','value' => ''.e(old('body_en')).'','maxLength' => '10000'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('textarea-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\TextareaField::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d)): ?>
<?php $attributes = $__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d; ?>
<?php unset($__attributesOriginald6f594a9b5edb891e4d76b5c13a95b5d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d)): ?>
<?php $component = $__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d; ?>
<?php unset($__componentOriginald6f594a9b5edb891e4d76b5c13a95b5d); ?>
<?php endif; ?>
                </div>
            </div>


            <div class="col-12 mb-2">
                <label  class="form-label pb-1">المميزات:</label>
                <div class="row mb-2">
                    <?php $__currentLoopData = \App\Models\Feature::get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-4 form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" name="features[]"
                                value="<?php echo e($feature->id); ?>" id="feature-<?php echo e($loop->index); ?>">
                            <label class="form-check-label"
                                for="feature-<?php echo e($loop->index); ?>"><?php echo e($feature->title_en); ?></label>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
            <div class="col-12 mb-2">
                <label  class="form-label pb-1">هل شائع:</label>
                    <input type="checkbox" class="form-check-input"  name="popular" value="1" id="colorCheck4">
                    <label  class="form-label ">شائع </label>
            </div>
        </div>


        <div class="row">
            <div class="col-12">
                <button class="btn btn-primary"><?php echo e(__('حفظ')); ?></button>
            </div>
        </div>
    </form>
</div>

<script>
    (function(window, document, $) {
        'use strict';
        var select = $('.select2');

        select.each(function() {
            var $this = $(this);
            $this.wrap('<div class="position-relative"></div>');
            $this.select2({
                // the following code is used to disable x-scrollbar when click in select input and
                // take 100% width in responsive also
                dropdownAutoWidth: true,
                width: '100%',
                dropdownParent: $this.parent()
            });
        });

    })(window, document, jQuery);
</script>
<?php /**PATH C:\xampp\htdocs\tabadul_Irada\resources\views/admin/plan/create_plan.blade.php ENDPATH**/ ?>