
<?php $__env->startSection('title'); ?>
    <?php echo e(__('Edit language')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="main-content">
        <div class="container-fluid mt-4">
            <div class="row justify-content-center">
                <div class="col-xl-6 col-md-12">
                    <div class="site-card">
                        <div class="site-card-header">
                            <h3 class="title"><?php echo e(__('Edit  language')); ?></h3>
                            <div class="card-header-links">
                                <a href="<?php echo e(route('admin.language.index')); ?>"
                                   class="card-header-link"><?php echo e(__('Back')); ?></a>
                            </div>
                        </div>
                        <div class="site-card-body">
                            <form action="<?php echo e(route('admin.language.update',$language->id)); ?>" method="post">
                                <?php echo method_field('PUT'); ?>
                                <?php echo csrf_field(); ?>
                                <div class="site-input-groups row">
                                    <label for="" class="col-sm-3 col-label"><?php echo e(__('Language Name:')); ?></label>
                                    <div class="col-sm-9">
                                        <input type="text" class="box-input" required name="name" <?php if($language->locale == 'en'): ?> readonly <?php endif; ?>
                                               value="<?php echo e($language->name); ?>"/>
                                    </div>
                                </div>
                                <div class="site-input-groups row">
                                    <label for="" class="col-sm-3 col-label"><?php echo e(__('Language Code:')); ?></label>
                                    <div class="col-sm-9">
                                        <input type="text" class="box-input" name="code" value="<?php echo e($language->locale); ?>" <?php if($language->locale == 'en'): ?> readonly <?php endif; ?>
                                               placeholder="Eg: en" required/>
                                    </div>
                                </div>

                                <div class="row site-input-groups">
                                    <label for="" class="col-sm-3 col-label"><?php echo e(__('Default Language:')); ?></label>
                                    <div class="col-sm-5">
                                        <div class="site-input-groups">
                                            <div class="switch-field mb-0">
                                                <input
                                                    type="radio"
                                                    id="language-default"
                                                    name="is_default"
                                                    value="1"
                                                    <?php if($language->is_default): echo 'checked'; endif; ?>
                                                />
                                                <label for="language-default"><?php echo e(__('Yes')); ?></label>
                                                <input
                                                    type="radio"
                                                    id="language-default-no"
                                                    name="is_default"
                                                    value="0"
                                                    <?php if(!$language->is_default): echo 'checked'; endif; ?>
                                                />
                                                <label for="language-default-no"><?php echo e(__('No')); ?></label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row site-input-groups">
                                    <label for="" class="col-sm-3 col-label"><?php echo e(__('RTL Support:')); ?></label>
                                    <div class="col-sm-5">
                                        <div class="site-input-groups">
                                            <div class="switch-field mb-0">
                                                <input
                                                    type="radio"
                                                    id="rtl-yes"
                                                    name="is_rtl"
                                                    value="1"
                                                    <?php if($language->is_rtl): echo 'checked'; endif; ?>
                                                />
                                                <label for="rtl-yes"><?php echo e(__('Yes')); ?></label>
                                                <input
                                                    type="radio"
                                                    id="rtl-no"
                                                    name="is_rtl"
                                                    value="0"
                                                    <?php if(!$language->is_rtl): echo 'checked'; endif; ?>
                                                />
                                                <label for="rtl-no"><?php echo e(__('No')); ?></label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row site-input-groups">
                                    <label for="" class="col-sm-3 col-label"><?php echo e(__('Language Status:')); ?></label>
                                    <div class="col-sm-5">
                                        <div class="site-input-groups">
                                            <div class="switch-field mb-0">
                                                <input
                                                    type="radio"
                                                    id="language-status"
                                                    name="status"
                                                    value="1"
                                                    <?php if($language->status): ?> checked <?php endif; ?>
                                                />
                                                <label for="language-status"><?php echo e(__('Active')); ?></label>
                                                <input
                                                    type="radio"
                                                    id="language-status-no"
                                                    name="status"
                                                    value="0"
                                                    <?php if(!$language->status): ?> checked <?php endif; ?>

                                                />
                                                <label for="language-status-no"><?php echo e(__('DeActive')); ?></label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="offset-sm-3 col-sm-9">
                                        <button type="submit"
                                                class="site-btn-sm primary-btn"><?php echo e(__('Update Language')); ?></button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/resources/views/backend/language/edit.blade.php ENDPATH**/ ?>