

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="container-header">
        <h1><?php echo e($title); ?></h1>
    </div>

    <div class="card">

        <div class="card-body">
            <form action="<?php echo e(route('backend.email.config.update')); ?>" method="post" class="mb-25">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                <div class="row">
                    <div class="form-group width-50">
                        <label class="form-label">SMTP host<span class="required">*</span></label>
                        <input type="text" class="form-control" name="smtp_host" placeholder="Enter SMTP host" value="<?php echo e($emailConfig->smtp_host); ?>">
                    </div>
                    <div class="form-group width-50">
                        <label class="form-label">SMTP port<span class="required">*</span></label>
                        <input type="text" class="form-control" name="smtp_port" placeholder="Enter SMTP port" value="<?php echo e($emailConfig->smtp_port); ?>">
                    </div>
                </div>

                <div class="row">
                    <div class="form-group width-50">
                        <label class="form-label">SMTP username<span class="required">*</span></label>
                        <input type="text" class="form-control" name="smtp_username" placeholder="Enter SMTP username" value="<?php echo e($emailConfig->smtp_username); ?>">
                    </div>
                    <div class="form-group width-50">
                        <label class="form-label">SMTP password<span class="required">*</span></label>
                        <div class="form-input-group">
                            <input type="password" class="form-control" id="password" name="smtp_password" placeholder="Enter SMTP password" value="<?php echo e($emailConfig->smtp_password); ?>">
                            <i class="las la-eye" id="password-icon"></i>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group width-50">
                        <label class="form-label">Sent from<span class="required">*</span></label>
                        <input type="text" class="form-control" name="sent_from" placeholder="Enter Sent from" value="<?php echo e($emailConfig->sent_from); ?>">
                    </div>
                    <div class="form-group width-50">
                        <label class="form-label">SMTP encryption<span class="required">*</span></label>
                        <select name="smtp_encryption" id="" class="form-control">
                            <option value="0" <?php echo e($emailConfig->smtp_encryption == 0 ? 'selected' : ''); ?>>TLS</option>
                            <option value="1" <?php echo e($emailConfig->smtp_encryption == 1 ? 'selected' : ''); ?>>SSL</option>
                            <option value="2" <?php echo e($emailConfig->smtp_encryption == 2 ? 'selected' : ''); ?>>None</option>
                        </select>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group">
                        <label class="form-label">Status<span class="required">*</span></label>
                        <div class="toggle-switch">
                            <input type="hidden" name="status" value="0">
                            <input type="checkbox" id="toggle" name="status" value="1" <?php echo e($emailConfig->status == 1 ? 'checked' : ''); ?>>
                            <label for="toggle" class="toggle-label">
                                <span class="toggle-text">On</span>
                            </label>
                        </div>
                    </div>
                </div>

                <button type="submit" class="btn btn-primary">Update config</button>
            </form>
        </div>
    </div>

</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.layout.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nbverify\mine\resources\views/backend/email/config.blade.php ENDPATH**/ ?>