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

    </div>
    <div class="border-item">
        <form class="form-row" action="<?php echo e($action); ?>" method="POST" onsubmit="saveForm(this)" enctype="multipart/form-data">
            <?php echo method_field('PUT'); ?>
            <?php echo csrf_field(); ?>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('edit_stores.status')); ?>  </label>
                <select  onchange="selectStatus()" id="status" name="status" class="form-control">
                    <option value=""><?php echo e(__('dashboard.select')); ?></option>
                    <option value="1"><?php echo e(__('edit_stores.accept')); ?></option>
                    <option value="0"><?php echo e(__('edit_stores.refuse')); ?></option>
                </select>
            </div>
            <div class="form-group col-lg-6 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-6 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>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('edit_stores.name')); ?>  </label>
                <input type="text" class="form-control " disabled value='<?php echo e($edit_store->name); ?>'/>
            </div>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('edit_stores.phone')); ?>  </label>
                <input type="text" class="form-control " disabled value='<?php echo e($edit_store->phone); ?>'/>
            </div>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('edit_stores.email')); ?>  </label>
                <input type="text" class="form-control " disabled value='<?php echo e($edit_store->email); ?>'/>
            </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>
            <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>
            <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>
            <div class="form-group col-lg-6">
                <label><?php echo e(__('edit_stores.store_id')); ?>  </label>
                <input type="text" class="form-control " disabled value='<?php echo e($edit_store->store->name); ?>'/>
            </div>
            <div class="text-center mt-5 col-12">
                <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
            </div>
        </form>
    </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 /Applications/MAMP/htdocs/made/resources/views/admin/edit_stores/form.blade.php ENDPATH**/ ?>