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

    </div>
    <div class="border-item">
    <ul class="nav nav-pills bg-nav-pills nav-justified mb-3">
        <li class="nav-item">
            <a href="#main" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0 active">
                <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                <span class="d-none d-lg-block"><?php echo e(__('stores.details')); ?></span>
            </a>
        </li>
        
        <li class="nav-item">
            <a href="#section_images" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0">
                <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                <span class="d-none d-lg-block"><?php echo e(__('stores.images')); ?></span>
            </a>
        </li>
        <li class="nav-item">
            <a href="#section_payment" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0">
                <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                <span class="d-none d-lg-block"><?php echo e(__('stores.payment')); ?></span>
            </a>
        </li>
        <li class="nav-item">
            <a href="#section_integration" data-toggle="tab" aria-expanded="false" class="nav-link rounded-0">
                <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                <span class="d-none d-lg-block"><?php echo e(__('stores.integration')); ?></span>
            </a>
        </li>

    </ul>
    <form class="form-row" method="post" onsubmit="saveForm(this)" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        <?php if($edit_store->store ?? ''  && $edit_store->store->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>
        <div class="tab-content row col-12">
            <div class="tab-pane col-lg-12 active" id="main">
                <div class="form-row">
                    
                    <?php if($edit_store->name  != $edit_store->store->name): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('name', getCurrentLocale()) ?? __('stores.name')); ?> (قبل التعديل)  </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->name); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('name', getCurrentLocale()) ?? __('stores.name')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->name); ?>'/>
                        </div>
                    <?php endif; ?>

                    <?php if($edit_store->email  != $edit_store->store->email): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('email', getCurrentLocale()) ?? __('stores.email')); ?> (قبل التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->email); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('email', getCurrentLocale()) ?? __('stores.email')); ?>(بعد التعديل)  </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->email); ?>'/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->phone  != $edit_store->store->phone): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('phone', getCurrentLocale()) ?? __('stores.phone')); ?> (قبل التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->phone); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('phone', getCurrentLocale()) ?? __('stores.phone')); ?>(بعد التعديل)  </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->phone); ?>'/>
                        </div>
                    <?php endif; ?>

                    <?php if($edit_store->status_active  != $edit_store->store->status_active): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('status_active', getCurrentLocale()) ?? __('stores.status_active')); ?>  (قبل التعديل)</label>
                            <input type="text" class="form-control " disabled value='<?php echo e(__('stores.statuses_active.'.$edit_store->store->status_active)); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('status_active', getCurrentLocale()) ?? __('stores.status_active')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e(__('stores.statuses_active.'.$edit_store->status_active)); ?>'/>
                        </div>
                    <?php endif; ?> 
                    <?php if($edit_store->category_id  != $edit_store->store->category_id): ?>
                    <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.category_id')); ?> (قبل التعديل)  </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->category->currentDescription->title); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.category_id')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->category->currentDescription->title); ?>'/>
                        </div>
                    <?php endif; ?> 
                    <?php if($edit_store->sub_category_id  != $edit_store->store->sub_category_id): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.sub_category_id')); ?> (قبل التعديل) </label>
                            <input type="text" class="form-control " disabled
                                   value='<?php echo e($edit_store->store->subCategory->currentDescription->title); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.sub_category_id')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled
                                   value='<?php echo e($edit_store->subCategory->currentDescription->title); ?>'/>
                        </div>
                    <?php endif; ?> 
                    <?php if($edit_store->min_order  != $edit_store->store->min_order): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.min_order')); ?> (قبل التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->min_order); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(__('edit_stores.min_order')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->min_order); ?>'/>
                        </div>
                    <?php endif; ?> 
                </div>

            </div>
                <div class="tab-pane col-lg-12" id="section_images" >
                    <div class="row">
                        <div class="col-lg-12">
                            <h3> <?php echo e(__('stores.images')); ?> </h3>
                        </div>
                        
                        <?php if($edit_store->store->logo != $edit_store->logo && $edit_store->logo != null): ?>
                            <div class="form-group col-lg-6 image_container" >
                                <label><?php echo e(meta('logo', getCurrentLocale()) ?? __('stores.logo')); ?> (قبل التعديل)</label>
                                <img style="width: 100%;height: 30pc" src="<?php echo e(asset($edit_store->store->logo)); ?>"/>
                            </div>
                            <div class="form-group col-lg-6 image_container" >
                                <label><?php echo e(meta('logo', getCurrentLocale()) ?? __('stores.logo')); ?>(بعد التعديل) </label>
                                <img style="width: 100%;height: 30pc" src="<?php echo e(asset($edit_store->logo)); ?>"/>
                            </div>
                        <?php endif; ?>
                        <?php if($edit_store->store->header != $edit_store->header && $edit_store->header != null): ?>
                            <div class="form-group col-lg-6 image_container" >
                                <label><?php echo e(meta('logo', getCurrentLocale()) ?? __('stores.header')); ?> (قبل التعديل)</label>
                                <img style="width: 100%;height: 30pc" src="<?php echo e(asset($edit_store->store->header)); ?>"/>
                            </div>
                            <div class="form-group col-lg-6 image_container" >
                                <label><?php echo e(meta('logo', getCurrentLocale()) ?? __('stores.header')); ?>(بعد التعديل) </label>
                                <img style="width: 100%;height: 30pc" src="<?php echo e(asset($edit_store->header)); ?>"/>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            
            <div class="tab-pane col-lg-12" id="section_payment">
                <div class="row">
                    <div class="col-lg-12">
                        <h3> <?php echo e(__('stores.payment')); ?> </h3>
                    </div>
                    <?php if($edit_store->bank_account != $edit_store->store->bank_account): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank_account', getCurrentLocale()) ?? __('stores.bank_account')); ?>  (قبل التعديل)</label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->bank_account); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank_account', getCurrentLocale()) ?? __('stores.bank_account')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->bank_account); ?>'/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->bank_num != $edit_store->store->bank_num): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank_num', getCurrentLocale()) ?? __('stores.bank_num')); ?>  (قبل التعديل)</label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->bank_num); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank_num', getCurrentLocale()) ?? __('stores.bank_num')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->bank_num); ?>'/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->iban != $edit_store->store->iban): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('iban', getCurrentLocale()) ?? __('stores.iban')); ?>  (قبل التعديل)</label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->iban); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('iban', getCurrentLocale()) ?? __('stores.iban')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->iban); ?>'/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->bank != $edit_store->store->bank): ?>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank', getCurrentLocale()) ?? __('stores.bank')); ?>  (قبل التعديل)</label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->bank); ?>'/>
                        </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('bank', getCurrentLocale()) ?? __('stores.bank')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->bank); ?>'/>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="tab-pane col-lg-12" id="section_integration">
                <div class="row">
                    <div class="col-lg-12">
                        <h3> <?php echo e(__('stores.integration')); ?> </h3>
                    </div>
                    <?php if($edit_store->status_account != $edit_store->store->status_account): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('status_account', getCurrentLocale()) ?? __('stores.status_account')); ?>  (قبل التعديل)</label>
                                <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->status_account); ?>'/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('status_account', getCurrentLocale()) ?? __('stores.status_account')); ?> (بعد التعديل) </label>
                            <input type="text" class="form-control " disabled value='<?php echo e($edit_store->status_account); ?>'/>
                        </div>
                    <?php endif; ?>
                    
                     <?php if($edit_store->user_id_front_image != $edit_store->store->user_id_front_image && $edit_store->user_id_front_image != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('user_id_front_image', getCurrentLocale()) ?? __('stores.user_id_front_image')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->user_id_front_image); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('user_id_front_image', getCurrentLocale()) ?? __('stores.user_id_front_image')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->user_id_front_image); ?>"/>
                        </div>
                    <?php endif; ?>
                    
                    <?php if($edit_store->user_id_back_image != $edit_store->store->user_id_back_image && $edit_store->user_id_back_image != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('user_id_back_image', getCurrentLocale()) ?? __('stores.user_id_back_image')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->user_id_back_image); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('user_id_back_image', getCurrentLocale()) ?? __('stores.user_id_back_image')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->user_id_back_image); ?>"/>
                        </div>
                    <?php endif; ?>
                    
                    <?php if($edit_store->iban_card != $edit_store->store->iban_card && $edit_store->iban_card != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('iban_card', getCurrentLocale()) ?? __('stores.iban_card')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->iban_card); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('iban_card', getCurrentLocale()) ?? __('stores.iban_card')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->iban_card); ?>"/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->license_work != $edit_store->store->license_work && $edit_store->license_work != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('license_work', getCurrentLocale()) ?? __('stores.license_work')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->license_work); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('license_work', getCurrentLocale()) ?? __('stores.license_work')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->license_work); ?>"/>
                        </div>
                    <?php endif; ?>
            
                     <?php if($edit_store->commercial_log != $edit_store->store->commercial_log && $edit_store->commercial_log != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('commercial_log', getCurrentLocale()) ?? __('stores.commercial_log')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->commercial_log); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('commercial_log', getCurrentLocale()) ?? __('stores.commercial_log')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->commercial_log); ?>"/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->manager_id != $edit_store->store->manager_id && $edit_store->manager_id != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('manager_id', getCurrentLocale()) ?? __('stores.manager_id')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->manager_id); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('manager_id', getCurrentLocale()) ?? __('stores.manager_id')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->manager_id); ?>"/>
                        </div>
                    <?php endif; ?>
                    <?php if($edit_store->contract_establish != $edit_store->store->contract_establish && $edit_store->contract_establish != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('contract_establish', getCurrentLocale()) ?? __('stores.contract_establish')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->contract_establish); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('contract_establish', getCurrentLocale()) ?? __('stores.contract_establish')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->contract_establish); ?>"/>
                        </div>
                    <?php endif; ?>
                     <?php if($edit_store->owner_id != $edit_store->store->owner_id && $edit_store->owner_id != null): ?>
                        <div class="form-group col-lg-6">
                                <label><?php echo e(meta('owner_id', getCurrentLocale()) ?? __('stores.owner_id')); ?>  (قبل التعديل)</label>
                                <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->store->owner_id); ?>"/>
                            </div>
                        <div class="form-group col-lg-6">
                            <label><?php echo e(meta('owner_id', getCurrentLocale()) ?? __('stores.owner_id')); ?> (بعد التعديل) </label>
                            <img style="width: 100%;height: 50px" src="<?php echo e($edit_store->owner_id); ?>"/>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
            <input type="hidden" name="status" value="1">
            <div class="text-center mt-5 col-6">
                <button class="butn" ><span>الموافقة علي تعديل البيانات</span></button>
            </div>
            <div class="text-center mt-5 col-6">
                <button type="button" class="butn" style="background: brown;" data-toggle="modal" data-target="#add_pat"><span>رفض تعديل البيانات   </span></button>
            </div>
            
    </form>
</div>

<div class="modal fade" id="add_pat" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel"> رفض تعديل البيانات </h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h5><?php echo e(__('dashboard.sure')); ?> <i class="fa fa-exclamation-circle text-danger"></i></h5>
                <form id="form-side" onsubmit="saveForm(this)" action="<?php echo e($action); ?>" method="post">
                    <?php echo method_field('PUT'); ?>
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="status" value="0">
                    <div class="form-group col-lg-12 refuse">
                        <label><?php echo e(__('products.message')); ?> </label>
                        <input type="text" name="message" placeholder="<?php echo e(__('products.message')); ?>" class="form-control">
                    </div>
                    <div class="form-group col-lg-12 refuse">
                        <label><?php echo e(__('products.reason_id')); ?> </label>
                        <select name="reason_id" class="form-control">
                            <option value=""><?php echo e(__('dashboard.select')); ?></option>
                            <?php $__currentLoopData = $reasons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option  value="<?php echo e($row->id); ?>"><?php echo e($row->title); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                </form>
            </div>
            <div class="modal-footer justify-content-between">
                <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('dashboard.close')); ?></button>
                <button onclick="saveForm(document.getElementById('form-side'))" type="button" class="btn btn-primary"><?php echo e(__('dashboard.save')); ?></button>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->
    
    <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
    <script>
        function selectStatus()
        {
            let status = $('#status').val()
            if(status == 1)
            {
                $('.refuse').hide()
            }
            else
            {
                $('.refuse').show()
            }
        }
        $('#status').trigger('change')
    </script>
    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            currentLanguage = "<?php echo e(getCurrentLocale()); ?>",
            imagePath = "<?php echo e(asset('')); ?>";
    </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 src="<?php echo e(asset('assets/admin/js/articles.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/made/resources/views/admin/edit_stores/form.blade.php ENDPATH**/ ?>