
<?php $__env->startSection('title'); ?>
<title><?php echo e($websiteLang->where('lang_key','email_template')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>

    <?php if($setting->text_direction=='RTL'): ?>
    <a href="<?php echo e(route('admin.email.template')); ?>" class="btn btn-success mb-2"><i class="fas fa-forward" aria-hidden="true"></i> <?php echo e($websiteLang->where('lang_key','go_back')->first()->custom_text); ?></a>
    <?php else: ?>
    <a href="<?php echo e(route('admin.email.template')); ?>" class="btn btn-success mb-2"><i class="fas fa-backward" aria-hidden="true"></i> <?php echo e($websiteLang->where('lang_key','go_back')->first()->custom_text); ?></a>
    <?php endif; ?>


    <div class="row">
        <div class="col-md-8">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">'<?php echo e(ucfirst($email->name)); ?>' <?php echo e($websiteLang->where('lang_key','email_template')->first()->custom_text); ?></h6>
                </div>
                <div class="card-body">
                    <table class="table table-bordered">
                        <thead>
                            <th><?php echo e($websiteLang->where('lang_key','variable')->first()->custom_text); ?></th>
                            <th><?php echo e($websiteLang->where('lang_key','subject')->first()->custom_text); ?></th>
                        </thead>
                        <tbody>
                            <tr>
                                <?php
                                    $user_name="{{name}}";
                                ?>
                                <td><?php echo e($user_name); ?></td>
                                <td><?php echo e($websiteLang->where('lang_key','user_name')->first()->custom_text); ?></td>
                            </tr>
                            <tr>
                                <?php
                                    $user_email="{{email}}";
                                ?>
                                <td><?php echo e($user_email); ?></td>
                                <td><?php echo e($websiteLang->where('lang_key','user_email')->first()->custom_text); ?></td>
                            </tr>

                            <tr>
                                <?php
                                    $user_phone="{{phone}}";
                                ?>
                                <td><?php echo e($user_phone); ?></td>
                                <td><?php echo e($websiteLang->where('lang_key','user_phone')->first()->custom_text); ?></td>
                            </tr>
                            <tr>
                                <?php
                                    $subject="{{subject}}";
                                ?>
                                <td><?php echo e($subject); ?></td>
                                <td><?php echo e($websiteLang->where('lang_key','msg_subject')->first()->custom_text); ?></td>
                            </tr>

                            <tr>
                                <?php
                                    $message="{{message}}";
                                ?>
                                <td><?php echo e($message); ?></td>
                                <td><?php echo e($websiteLang->where('lang_key','msg')->first()->custom_text); ?></td>
                            </tr>




                        </tbody>
                    </table>
                </div>
            </div>
            <div class="card shadow mb-4">
                <div class="card-body">

                    <form action="<?php echo e(route('admin.email.update',$email->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <label for=""><?php echo e($websiteLang->where('lang_key','subject')->first()->custom_text); ?> <span class="text-danger">*</span></label>
                            <input type="text" class="form-control" value="<?php echo e($email->subject); ?>" name="subject">
                        </div>
                        <div class="form-group">
                            <label for=""><?php echo e($websiteLang->where('lang_key','des')->first()->custom_text); ?>  <span class="text-danger">*</span></label>
                            <textarea name="description" cols="30" rows="10" class="form-control summernote"><?php echo e($email->description); ?></textarea>

                        </div>

                        <button class="btn btn-success" type="submit"><?php echo e($websiteLang->where('lang_key','update')->first()->custom_text); ?></button>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/admin/settings/email-template/contact-edit.blade.php ENDPATH**/ ?>