<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Config</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li>
                        <li class="breadcrumb-item active">Config</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <!-- Default box -->
                    <div class="card">
                        <div class="card-header">
                            <!-- <h3 class="card-title">Select Members For </h3> -->
                            <div class="card-tools">
                                <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                    <i class="fas fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <div class="card-body">
                            <form method="post" action="<?php echo e(route('setting.update_key')); ?>" name="form"
                                enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="action" value="<?php echo e(empty($keyname) ? 'insert' : 'update'); ?>">
                                <input type="hidden" name="id" value="<?php echo e(!empty($keyname->id) ? $keyname->id : ''); ?>">
                                <div class="form-group">
                                    <div class="col-4">
                                        <label for="">IndiaMartKey</label>
                                        <input type="text" name="indiamartkey"
                                            class="form-control <?php $__errorArgs = ['indiamartkey'];
$__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); ?>" id="indiamartkey"
                                            placeholder="Enter IndiaMart" value="<?php echo e(!empty($keyname->indiamartkey) ?$keyname->indiamartkey : ''); ?>" required>

                                        <?php if($errors->has('indiamartkey')): ?>
                                        <div class="form-text text-danger">
                                            <?php echo e($errors->first('indiamartkey')); ?>

                                        </div>
                                        <?php endif; ?>
                                    </div>
                                </div>
                                <div class="card-footer">
                                    <button type="submit" class="btn btn-primary"><?php echo e(empty($keyname) ? 'Add' : 'Update'); ?></button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <!-- Default box -->
                    <div class="card">
                        <div class="card-header">
                           <h3 class="card-title">Default SMTP Settings</h3>
                            <div class="card-tools">
                                <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                                    <i class="fas fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <div class="card-body">
                            <form method="post" action="<?php echo e(route('setting.update_emailconfig')); ?>" name="form"
                                enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="action" value="<?php echo e(empty($user_emailconfig) ? 'insert' : 'update'); ?>">
                                <input type="hidden" name="id" value="<?php echo e(!empty($user_emailconfig->id) ? $user_emailconfig->id : ''); ?>">
                                <div class="form-group">
                                    <div class="col-12">
                                        <div class="form-group">
                                            <label for="">Host</label>
                                            <input type="text" name="host" class="form-control" id="" placeholder="Enter Host"
                                                value="<?php echo e(isset($user_emailconfig->host) ? $user_emailconfig->host : ""); ?>" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="">User Name</label>
                                            <input type="text" name="username" class="form-control" id="" placeholder="Enter username"
                                                value="<?php echo e(isset($user_emailconfig->username) ? $user_emailconfig->username : ""); ?>" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="">Password</label>
                                            <input type="password" name="password" class="form-control" id="" placeholder="Enter password"
                                                value="<?php echo e(isset($user_emailconfig->password) ? $user_emailconfig->password : ""); ?>" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="">Smtp Port</label>
                                            <input type="text" name="smtp_port" class="form-control" id="" placeholder="Enter smtp_port"
                                                value="<?php echo e(isset($user_emailconfig->smtp_port) ? $user_emailconfig->smtp_port : ""); ?>" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="">Smtp Transport</label>
                                            <input type="text" name="smtp_transport" class="form-control" id="" placeholder="Enter smtp_transport"
                                                value="<?php echo e(isset($user_emailconfig->smtp_transport) ? $user_emailconfig->smtp_transport : ""); ?>" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="">Smtp Encryption</label>
                                            <input type="text" name="smtp_encryption" class="form-control" id="" placeholder="Enter smtp_encryption"
                                                value="<?php echo e(isset($user_emailconfig->smtp_encryption) ? $user_emailconfig->smtp_encryption : ""); ?>" required>
                                        </div>
                                    </div>
                                </div>
                                <div class="card-footer">
                                    <button type="submit" class="btn btn-primary"><?php echo e(empty($keyname) ? 'Add' : 'Update'); ?></button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/asojsoftcaps/public_html/frenzincrm.asojsoftcaps.com/frenzincrm/resources/views/settings/indiamartkey.blade.php ENDPATH**/ ?>