<?php $__env->startSection('content'); ?>
<div class="container app-content">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Edit Translation</h3>
                </div>

                <div class="card-body">
                    <form method="POST" action="<?php echo e(route('admin.translation.update', $translation)); ?>">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>
                        <div class="form-group">
                            <label>Group</label>
                            <select name="group" class="form-control custom-select">
                                <?php $__currentLoopData = $group_names; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($group); ?>" <?php echo e($translation->group == $group ? 'selected' : ''); ?>><?php echo e($group); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Key</label>
                            <input class="form-control <?php $__errorArgs = ['item'];
$__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); ?>" type="text" name="item" value="<?php echo e($translation->item); ?>" required>
                        </div>
                        <div class="form-group">
                            <label>Text in English</label>
                            <fieldset disabled>
                                <input class="form-control disabled" type="text" value="<?php echo e(__("{$translation->group}.{$translation->key}")); ?>">
                            </fieldset>
                        </div>
                        <div class="form-group">
                            <label>Text</label>
                            <input class="form-control <?php $__errorArgs = ['text'];
$__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); ?>" type="text" name="text" value="<?php echo e($translation->text); ?>">
                        </div>
                        <button class="btn btn-success" type="submit">Edit Translation</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\mopie-14\engine\resources\views/translations/edit.blade.php ENDPATH**/ ?>