<?php $__env->startSection('title', 'Payment Settings'); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-6">
        <div class="card">
            <div class="card-body">
                <form action="<?php echo e(route('admin.setting.env_key')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="form-group row">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL MAILER')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo e(env('MAIL_MAILER')); ?>" disabled>
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_HOST">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL HOST')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_HOST" value="<?php echo e(env('MAIL_HOST')); ?>" placeholder="<?php echo e(__('MAIL HOST')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_PORT">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL PORT')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_PORT" value="<?php echo e(env('MAIL_PORT')); ?>" placeholder="<?php echo e(__('MAIL PORT')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_USERNAME">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL USERNAME')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_USERNAME" value="<?php echo e(env('MAIL_USERNAME')); ?>" placeholder="<?php echo e(__('MAIL USERNAME')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_PASSWORD">
                        <div class="col-lg-4    ">
                            <label class="form-label"><?php echo e(__('MAIL PASSWORD')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="password" class="form-control" name="MAIL_PASSWORD" value="<?php echo e(env('MAIL_PASSWORD')); ?>" placeholder="<?php echo e(__('MAIL PASSWORD')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_ENCRYPTION">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL ENCRYPTION')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_ENCRYPTION" value="<?php echo e(env('MAIL_ENCRYPTION')); ?>" placeholder="<?php echo e(__('MAIL ENCRYPTION')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_FROM_ADDRESS">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL FROM ADDRESS')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_FROM_ADDRESS" value="<?php echo e(env('MAIL_FROM_ADDRESS')); ?>" placeholder="<?php echo e(__('MAIL FROM ADDRESS')); ?>">
                        </div>
                    </div>
                    <div class="form-group row">
                        <input type="hidden" name="types[]" value="MAIL_FROM_NAME">
                        <div class="col-lg-4">
                            <label class="form-label"><?php echo e(__('MAIL FROM NAME')); ?></label>
                        </div>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" name="MAIL_FROM_NAME" value="<?php echo e(env('MAIL_FROM_NAME')); ?>" placeholder="<?php echo e(__('MAIL FROM NAME')); ?>">
                        </div>
                    </div>
                    <div class="form-group mb-0 text-end">
                        <button class="btn btn-primary w-100" type="submit"><?php echo e(__('Save')); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="col-md-6">

        <div class="card">
            <div class="card-header">
                <h4><?php echo e(__('Instruction')); ?></h4>
            </div>
            <div class="card-body">
                <b><?php echo e(__('For Non-SSL')); ?></b>
                <ul class="list-group">
                    <li class="list-group-item"><?php echo e(__('Set Mail Host according to your server Mail Client Manual Settings')); ?></li>
                    <li class="list-group-item"><?php echo e(__("Set Mail port as 587")); ?></li>
                    <li class="list-group-item"><?php echo e(__("Set Mail Encryption as 'ssl' if you face issue with tls")); ?></li>
                </ul>
                <br>
                <b><?php echo e(__('For SSL')); ?></b>
                <ul class="list-group">
                    <li class="list-group-item"><?php echo e(__('Set Mail Host according to your server Mail Client Manual Settings')); ?></li>
                    <li class="list-group-item"><?php echo e(__('Set Mail port as 465')); ?></li>
                    <li class="list-group-item"><?php echo e(__('Set Mail Encryption as ssl')); ?></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<!-- start page title -->
<div class="row">
    <div class="col-12">
        <div class="page-title-box d-sm-flex align-items-center justify-content-between">
            <h4 class="mb-sm-0"><?php echo $__env->yieldContent('title'); ?></h4>

            <div class="page-title-right">
                <ol class="breadcrumb m-0">
                    <li class="breadcrumb-item"><a href="javascript: void(0);">Admin</a></li>
                    <li class="breadcrumb-item active"><?php echo $__env->yieldContent('title'); ?></li>
                </ol>
            </div>

        </div>
    </div>
</div>
<!-- end page title -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script>
    function updateSystem(el, name){
        if($(el).is(':checked')){
            var value = 1;
        }
        else{
            var value = 0;
        }
        $.post('<?php echo e(route('admin.setting.sys_settings')); ?>', {_token:'<?php echo e(csrf_token()); ?>', name:name, value:value}, function(data){
            if(data == '1'){
                Snackbar.show({
                    text: '<?php echo e(__('Settings Updated Successfully')); ?>',
                    pos: 'top-right',
                    backgroundColor: '#38c172'
                });
            }
            else{
                Snackbar.show({
                    text: '<?php echo e(__('Something went wrong')); ?>',
                    pos: 'top-right',
                    backgroundColor: '#e3342f'
                });
            }
        });
    }
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<style>
    .form-group{
        margin-bottom: 20px;
    }
</style>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/golinkgl/bulkexpress.couriers-co.com/resources/views/admin/setup/email.blade.php ENDPATH**/ ?>