<?php $__env->startSection('content'); ?>
<div class="side-title">
    <h3><?php echo e($head ?? ''); ?></h3>
</div>

<div class="border-item">
    <form class="form-row add_about_form" method="post" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        <?php if($about ?? ''  && $about->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('video_url', $local) ?? __('abouts.video_url')); ?> </label>
            <input type="url"  class="form-control <?php echo e($errors->has('video_url') ? 'is-invalid' : ''); ?>" name="video_url" placeholder="<?php echo e(meta('video_url', $local) ?? __('abouts.video_url')); ?>" value='<?php echo e(old("video_url", $about->video_url ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-3">
            <label><?php echo e(meta('client_numbers', $local) ?? __('abouts.client_numbers')); ?> </label>
            <input type="number" min="1"  class="form-control <?php echo e($errors->has('client_numbers') ? 'is-invalid' : ''); ?>" name="client_numbers" placeholder="<?php echo e(meta('client_numbers', $local) ?? __('abouts.client_numbers')); ?>" value='<?php echo e(old("client_numbers", $about->client_numbers ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-3">
            <label><?php echo e(meta('consulting_numbers', $local) ?? __('abouts.consulting_numbers')); ?> </label>
            <input type="number" min="1"  class="form-control <?php echo e($errors->has('consulting_numbers') ? 'is-invalid' : ''); ?>" name="consulting_numbers" placeholder="<?php echo e(meta('consulting_numbers', $local) ?? __('abouts.consulting_numbers')); ?>" value='<?php echo e(old("consulting_numbers", $about->consulting_numbers ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-3">
            <label><?php echo e(meta('cases_numbers', $local) ?? __('abouts.cases_numbers')); ?> </label>
            <input type="number" min="1" class="form-control <?php echo e($errors->has('cases_numbers') ? 'is-invalid' : ''); ?>" name="cases_numbers" placeholder="<?php echo e(meta('cases_numbers', $local) ?? __('abouts.cases_numbers')); ?>" value='<?php echo e(old("cases_numbers", $about->cases_numbers ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-3">
            <label><?php echo e(meta('documentation_numbers', $local) ?? __('abouts.documentation_numbers')); ?> </label>
            <input type="number" min="1" class="form-control <?php echo e($errors->has('documentation_numbers') ? 'is-invalid' : ''); ?>" name="documentation_numbers" placeholder="<?php echo e(meta('documentation_numbers', $local) ?? __('abouts.documentation_numbers')); ?>" value='<?php echo e(old("documentation_numbers", $about->documentation_numbers ?? "")); ?>'/>
        </div>

        <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('about_title', $language->local) ?? __('abouts.about_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('about_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="about_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('about_title', $language->local) ?? __('abouts.about_title')); ?>" value='<?php echo e(old("about_title_{$language->local}", $about[$language->local]->about_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('vision_title', $language->local) ?? __('abouts.vision_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('vision_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="vision_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('vision_title', $language->local) ?? __('abouts.vision_title')); ?>" value='<?php echo e(old("vision_title_{$language->local}", $about[$language->local]->vision_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mission_title', $language->local) ?? __('abouts.mission_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('mission_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="mission_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('mission_title', $language->local) ?? __('abouts.mission_title')); ?>" value='<?php echo e(old("mission_title_{$language->local}", $about[$language->local]->mission_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('message_title', $language->local) ?? __('abouts.message_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('message_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="message_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('message_title', $language->local) ?? __('abouts.message_title')); ?>" value='<?php echo e(old("message_title_{$language->local}", $about[$language->local]->message_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('video_title', $language->local) ?? __('abouts.video_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('video_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="video_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('video_title', $language->local) ?? __('abouts.video_title')); ?>" value='<?php echo e(old("video_title_{$language->local}", $about[$language->local]->video_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('client_title', $language->local) ?? __('abouts.client_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('client_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="client_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('client_title', $language->local) ?? __('abouts.client_title')); ?>" value='<?php echo e(old("client_title_{$language->local}", $about[$language->local]->client_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('cases_title', $language->local) ?? __('abouts.cases_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('cases_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="cases_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('cases_title', $language->local) ?? __('abouts.cases_title')); ?>" value='<?php echo e(old("cases_title_{$language->local}", $about[$language->local]->cases_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('consulting_title', $language->local) ?? __('abouts.consulting_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('consulting_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="consulting_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('consulting_title', $language->local) ?? __('abouts.consulting_title')); ?>" value='<?php echo e(old("consulting_title_{$language->local}", $about[$language->local]->consulting_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('documentation_title', $language->local) ?? __('abouts.documentation_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('documentation_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="documentation_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('documentation_title', $language->local) ?? __('abouts.documentation_title')); ?>" value='<?php echo e(old("documentation_title_{$language->local}", $about[$language->local]->documentation_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('achieve_title', $language->local) ?? __('abouts.achieve_title')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('achieve_title_'.$language->local) ? 'is-invalid' : ''); ?>" name="achieve_title_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('achieve_title', $language->local) ?? __('abouts.achieve_title')); ?>" value='<?php echo e(old("achieve_title_{$language->local}", $about[$language->local]->achieve_title ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('slug', $language->local) ?? __('abouts.slug')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('slug_'.$language->local) ? 'is-invalid' : ''); ?>" name="slug_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('slug', $language->local) ?? __('abouts.slug')); ?>" value='<?php echo e(old("slug_{$language->local}", $about[$language->local]->slug ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('keywords', $language->local) ?? __('abouts.keywords')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('keywords_'.$language->local) ? 'is-invalid' : ''); ?>" name="keywords_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('keywords', $language->local) ?? __('abouts.keywords')); ?>" value='<?php echo e(old("keywords_{$language->local}", $about[$language->local]->keywords ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('meta_description', $language->local) ?? __('abouts.meta_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('meta_description_'.$language->local) ? 'is-invalid' : ''); ?>" name="meta_description_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('meta_description', $language->local) ?? __('abouts.meta_description')); ?>" value='<?php echo e(old("meta_description_{$language->local}", $about[$language->local]->meta_description ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-12">
            <label><?php echo e(meta('about_description', $language->local) ?? __('abouts.about_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="about_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('about_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('about_description', $language->local) ?? __('abouts.about_description')); ?>"><?php echo e(old("about_description_{$language->local}", $about[$language->local]->about_description ?? "")); ?></textarea>
        </div>
        <div class="form-group col-lg-12">
            <label><?php echo e(meta('video_description', $language->local) ?? __('abouts.video_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="video_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('video_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('video_description', $language->local) ?? __('abouts.video_description')); ?>"><?php echo e(old("video_description_{$language->local}", $about[$language->local]->video_description ?? "")); ?></textarea>
        </div>
        <div class="form-group col-lg-12">
            <label><?php echo e(meta('vision_description', $language->local) ?? __('abouts.vision_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="vision_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('vision_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('vision_description', $language->local) ?? __('abouts.vision_description')); ?>"><?php echo e(old("vision_description_{$language->local}", $about[$language->local]->vision_description ?? "")); ?></textarea>
        </div>
        <div class="form-group col-lg-12">
            <label><?php echo e(meta('mission_description', $language->local) ?? __('abouts.mission_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="mission_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('mission_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('mission_description', $language->local) ?? __('abouts.mission_description')); ?>"><?php echo e(old("mission_description_{$language->local}", $about[$language->local]->mission_description ?? "")); ?></textarea>
        </div>
        <div class="form-group col-lg-12">
            <label><?php echo e(meta('message_description', $language->local) ?? __('abouts.message_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="message_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('message_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('message_description', $language->local) ?? __('abouts.message_description')); ?>"><?php echo e(old("message_description_{$language->local}", $about[$language->local]->message_description ?? "")); ?></textarea>
        </div>
        <div class="form-group col-lg-12">
            <label><?php echo e(meta('achieve_description', $language->local) ?? __('abouts.achieve_description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <textarea name="achieve_description_<?php echo e($language->local); ?>" class="form-control  <?php echo e($errors->has('achieve_description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('achieve_description', $language->local) ?? __('abouts.achieve_description')); ?>"><?php echo e(old("achieve_description_{$language->local}", $about[$language->local]->achieve_description ?? "")); ?></textarea>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            
            <div class="form-group col-lg-3">
                <label><?php echo e(meta('about_image_1', $local) ?? __('abouts.about_image_1')); ?> </label>
                <input id="about_image_1_thumbnail" class="about_image_1_thumbnail" type="hidden" name="about_image_1" value="<?php echo e(old("about_image_1", $about->about_image_1 ?? "")); ?>"/>

                <div class="photos about_image_1_main_photo <?php echo e(old('about_image_1', $about->about_image_1 ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                    <div class="col-lg-12">
                        <div class="items">
                            <div class="img">
                                <a href="#" id="lfm" data-input=".about_image_1_thumbnail" data-preview=".about_image_1_holder" class="lfm" data-hide=".about_image_1_pick_button">
                                    <img src="<?php echo e(asset(old('about_image_1', $about->about_image_1 ?? ''))); ?> "  id="about_image_1_holder" class="about_image_1_holder"/>
                                </a>
                            </div>
                            <a href="#" class="showHide resetImage close" data-empty=".about_image_1_thumbnail" data-hide=".about_image_1_main_photo" data-show=".about_image_1_pick_button"><i class="fas fa-times"></i></a>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>
                <span class="input-group-btn about_image_1_pick_button <?php echo e(old('about_image_1', $about->about_image_1 ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm" data-input=".about_image_1_thumbnail" data-preview=".about_image_1_holder" data-show=".about_image_1_main_photo" data-hide=".about_image_1_pick_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-camera-retro"></i> Choose
                </a>
            </span>
            </div>
            

            
            <div class="form-group col-lg-3">
                <label><?php echo e(meta('about_image_2', $local) ?? __('abouts.about_image_2')); ?> </label>
                <input id="about_image_2_thumbnail" class="about_image_2_thumbnail" type="hidden" name="about_image_2" value="<?php echo e(old("about_image_2", $about->about_image_2 ?? "")); ?>"/>

                <div class="photos about_image_2_main_photo <?php echo e(old('about_image_2', $about->about_image_2 ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                    <div class="col-lg-12">
                        <div class="items">
                            <div class="img">
                                <a href="#" id="lfm" data-input=".about_image_2_thumbnail" data-preview=".about_image_2_holder" class="lfm" data-hide=".about_image_2_pick_button">
                                    <img src="<?php echo e(asset(old('about_image_2', $about->about_image_2 ?? ''))); ?> "  id="about_image_2_holder" class="about_image_2_holder"/>
                                </a>
                            </div>
                            <a href="#" class="showHide resetImage close" data-empty=".about_image_2_thumbnail" data-hide=".about_image_2_main_photo" data-show=".about_image_2_pick_button"><i class="fas fa-times"></i></a>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>
                <span class="input-group-btn about_image_2_pick_button <?php echo e(old('about_image_2', $about->about_image_2 ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm" data-input=".about_image_2_thumbnail" data-preview=".about_image_2_holder" data-show=".about_image_2_main_photo" data-hide=".about_image_2_pick_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-camera-retro"></i> Choose
                </a>
            </span>
            </div>
            

            
            <div class="form-group col-lg-3">
                <label><?php echo e(meta('video_image', $local) ?? __('abouts.video_image')); ?> </label>
                <input id="video_image_thumbnail" class="video_image_thumbnail" type="hidden" name="video_image" value="<?php echo e(old("video_image", $about->video_image ?? "")); ?>"/>

                <div class="photos video_image_main_photo <?php echo e(old('video_image', $about->video_image ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                    <div class="col-lg-12">
                        <div class="items">
                            <div class="img">
                                <a href="#" id="lfm" data-input=".video_image_thumbnail" data-preview=".video_image_holder" class="lfm" data-hide=".video_image_pick_button">
                                    <img src="<?php echo e(asset(old('video_image', $about->video_image ?? ''))); ?> "  id="video_image_holder" class="video_image_holder"/>
                                </a>
                            </div>
                            <a href="#" class="showHide resetImage close" data-empty=".video_image_thumbnail" data-hide=".video_image_main_photo" data-show=".video_image_pick_button"><i class="fas fa-times"></i></a>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>
                <span class="input-group-btn video_image_pick_button <?php echo e(old('video_image', $about->video_image ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm" data-input=".video_image_thumbnail" data-preview=".video_image_holder" data-show=".video_image_main_photo" data-hide=".video_image_pick_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-camera-retro"></i> Choose
                </a>
            </span>
            </div>
            

        <div class="text-center mt-5 col-12">
            <button class="butn add_about_button"><span><?php echo e(__('dashboard.save')); ?></span></button>
        </div>
    </form>
</div>

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

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->
    <script src="<?php echo e(asset('/assets/admin/js/lib/tinymce.min.js')); ?>"></script>
    
    <script>
        var route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>";
        var url = "<?php echo e(url('/')); ?>/",
            currentLanguage = "<?php echo e($local); ?>",
            inputName = null;
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>

    <script>
        $('.add_about_button').click(async function (e) {
            e.preventDefault();
            $(this).prop('disabled', true);

            let form = $('.add_about_form'),
                data = new FormData(form[0]),
                url = form.attr('action'),
                method = form.attr('method');


            const response=await ajax({
                url,
                data,
                dataType: 'json',
                method
            });

            if (response.url){
                window.location.href = response.url;
            }

            if (response.errors){
                $(this).prop('disabled', false);
                toasterError(response.errors);
            }


        });

    </script>

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




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\legal\resources\views/admin/abouts/form.blade.php ENDPATH**/ ?>