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

    <div class="border-item">
        <form class="form-row" method="post" onsubmit="saveForm(this)" action="<?php echo e($action); ?>">
            <?php if(isset($review) && ($review->id ?? false)): ?>
                <?php echo method_field('PUT'); ?>
            <?php endif; ?>
            <?php echo csrf_field(); ?>

            <?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(__('reviews.customer_name')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?></label>
                    <input type="text" class="form-control <?php echo e($errors->has('customer_name_' . $language->local) ? 'is-invalid' : ''); ?>" name="customer_name_<?php echo e($language->local); ?>" value="<?php echo e(old('customer_name_' . $language->local, data_get($review ?? null, $language->local . '.customer_name'))); ?>" maxlength="90" required>
                    <small class="form-text text-muted"><?php echo e(__('reviews.customer_name_limit')); ?></small>
                </div>
                <div class="form-group col-lg-6">
                    <label><?php echo e(__('reviews.company_name')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?></label>
                    <input type="text" class="form-control <?php echo e($errors->has('company_name_' . $language->local) ? 'is-invalid' : ''); ?>" name="company_name_<?php echo e($language->local); ?>" value="<?php echo e(old('company_name_' . $language->local, data_get($review ?? null, $language->local . '.company_name'))); ?>" maxlength="90" required>
                    <small class="form-text text-muted"><?php echo e(__('reviews.company_name_limit')); ?></small>
                </div>
                <div class="form-group col-lg-12">
                    <label><?php echo e(__('reviews.body')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?></label>
                    <textarea name="body_<?php echo e($language->local); ?>" class="form-control <?php echo e($errors->has('body_' . $language->local) ? 'is-invalid' : ''); ?>" maxlength="300" required><?php echo e(old('body_' . $language->local, data_get($review ?? null, $language->local . '.body'))); ?></textarea>
                    <small class="form-text text-muted"><?php echo e(__('reviews.body_limit')); ?></small>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <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'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.container', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/alyomhostorg/public_html/madar/resources/views/admin/reviews/form.blade.php ENDPATH**/ ?>