

<?php $__env->startSection('content'); ?>
<!-- content @s -->
                <div class="nk-content nk-content-fluid">
                    <div class="container-xl wide-lg">
                        <div class="nk-content-body">
                            <div class="components-preview wide-md mx-auto">
                                <div class="nk-block-head nk-block-head-lg wide-sm">
                                    <div class="nk-block-head-content">
                                        <div class="nk-block-head-sub"><a class="back-to" href="<?php echo e(url('admin/dashboard')); ?>"><em class="icon ni ni-arrow-left"></em><span>Dashboard</span></a></div>
                                         
                                    </div>
                                </div><!-- .nk-block -->
                                
                                
                                 
                                <div class="nk-block nk-block-lg">
                                    <div class="nk-block-head">
                                        <div class="nk-block-head-content">
                                            <h4 class="title nk-block-title">Site Settings</h4>
                                            <div class="nk-block-des">
                                                <p>You can make changes of your site here.</p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card card-bordered">
                                        <div class="card-inner">
                                            <div class="card-head">
                                                <h5 class="card-title">Website Setting</h5>
                                            </div>
                                            <form class="gy-3" action="<?php echo e(route('admin.updateSettings')); ?>" method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label" for="site-name">Site Logo</label>
                                                            <span class="form-note">Upload your website Logo.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input  class="form-control" id="site-name" type="file" name="logo">
                                                               <?php if($settings->logo): ?>
    <img src="<?php echo e(asset('storage/app/public/' . $settings->logo)); ?>" alt="Logo" width="100">
<?php endif; ?>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label" for="site-name">Site Name</label>
                                                            <span class="form-note">Specify the name of your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-name" name="sitename" value="<?php echo e($settings->sitename); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Site Email</label>
                                                            <span class="form-note">Specify the email address of your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-email" name="site_email" value="<?php echo e($settings->site_email); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Site Currency</label>
                                                            <span class="form-note">Specify the currency for your website. e.g USD</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-email" name="currency" value="<?php echo e($settings->currency); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Site Currency Symbol</label>
                                                            <span class="form-note">Specify the currency symbol for your website. e.g $</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-email" name="sym" value="<?php echo e($settings->sym); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Coin Transfer Fees (ETH) Only</label>
                                                            <span class="form-note">Specify the amount you want to charge if user want to send coin from any wallet on your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="coinfee" name="coinfee" value="<?php echo e($settings->coinfee); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Card Apply Charges</label>
                                                            <span class="form-note">Specify the amount you want to charge if user want to apply for card on your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="cardfees" name="cardfees" value="<?php echo e($settings->cardfees); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Referral Commission Percentage</label>
                                                            <span class="form-note">Specify the percent you want to give user per referral deposit on your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="referral_percentage" name="referral_percentage" value="<?php echo e($settings->referral_percentage); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Site Copyright</label>
                                                            <span class="form-note">Copyright information of your website.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-copyright" name="site_copyright" value="<?php echo e($settings->site_copyright); ?>" >
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                
                                                
                                                
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Allow Email Verification</label>
                                                            <span class="form-note">Enable or disable Email Verification from site.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <ul class="custom-control-group g-3 align-center flex-wrap">
                                                            <li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="email_verification" value="1" id="reg-enable" <?php if($settings->email_verification == '1'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="reg-enable">Enable</label>
    </div>
</li>
<li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="email_verification" value="0" id="reg-disable" <?php if($settings->email_verification == '0'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="reg-disable">Disable</label>
    </div>
</li>

                                                             
                                                        </ul>
                                                    </div>
                                                </div>
                                                
                                                
                                     <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Allow Email Alert</label>
                                                            <span class="form-note">Enable or disable Email Alert from site.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <ul class="custom-control-group g-3 align-center flex-wrap">
                                                            <li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="email_alert" value="1" id="email-alert-enable" <?php if($settings->email_alert == '1'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="email-alert-enable">Enable</label>
    </div>
</li>
<li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="email_alert" value="0" id="email-alert-disable" <?php if($settings->email_alert == '0'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="email-alert-disable">Disable</label>
    </div>
</li>

                                                             
                                                        </ul>
                                                    </div>
                                                </div>
                                                
                                                
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Allow KYC</label>
                                                            <span class="form-note">Enable or disable KYC from site.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <ul class="custom-control-group g-3 align-center flex-wrap">
                                                            <li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="kyc" value="1" id="kyc-enable" <?php if($settings->kyc == '1'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="kyc-enable">Enable</label>
    </div>
</li>
<li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="kyc" value="0" id="kyc-disable" <?php if($settings->kyc == '0'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="kyc-disable">Disable</label>
    </div>
</li>

                                                             
                                                        </ul>
                                                    </div>
                                                </div>
                                                
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">livechat</label>
                                                            <span class="form-note">Do you want to show live support like livechat widget drop any code of livechat here.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <textarea type="text" class="form-control" name="livechat" value="<?php echo e($settings->livechat); ?>" row="4"><?php echo e($settings->livechat); ?> </textarea>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                
                                                
                                                
                                                
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">Main Website</label>
                                                            <span class="form-note">Specify the URL if your main website is external.</span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" name="siteurl" value="<?php echo e($settings->siteurl); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label">App Download URL (Optional) </label>
                                                            <span class="form-note">Specify the App Download URL if you have a app uploaded somewhere. <small style="color:red;">Leave it if you don't have a app url</small></span>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" name="app_url" value="<?php echo e($settings->app_url); ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row g-3 align-center">
                                                    <div class="col-lg-5">
                                                        <div class="form-group">
                                                            <label class="form-label" for="site-off">Maintanance Mode</label>
                                                            <span class="form-note">Enable to make website make offline.</span>
                                                        </div>
                                                    </div>
                                                     
                                                    
                                                    
                                                    <div class="col-lg-7">
                                                        <ul class="custom-control-group g-3 align-center flex-wrap">
                                                            <li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="maintanance_mode" value="active" id="m-enable" <?php if($settings->maintanance_mode == 'active'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="m-enable">Online</label>
    </div>
</li>
<li>
    <div class="custom-control custom-radio">
        <input type="radio" class="custom-control-input" name="maintanance_mode" value="inactive" id="m-disable" <?php if($settings->maintanance_mode == 'inactive'): ?> checked <?php endif; ?>>
        <label class="custom-control-label" for="m-disable">Offline</label>
    </div>
</li> 

                                                             
                                                        </ul>
                                                    </div>
                                                </div>
                                                <div class="row g-3">
                                                    <div class="col-lg-7 offset-lg-5">
                                                        <div class="form-group mt-2">
                                                            <button type="submit" class="btn btn-lg btn-primary">Update Settings</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div><!-- card -->
                                </div><!-- .nk-block -->
                                
                                
                                
                                
                                <!--SMTP SETTINGS-->
                                
                                
                                
                                <div class="nk-block nk-block-lg">
                                    <div class="nk-block-head">
                                        <div class="nk-block-head-content">
                                            <h4 class="title nk-block-title">Site Email Settings</h4>
                                            <div class="nk-block-des">
                                                <p>You can make changes of your SMTP.</p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card card-bordered">
                                        <div class="card-inner">
                                            <div class="card-head">
                                                <h5 class="card-title">SMTP Setting</h5>
                                            </div>
                                            <form class="gy-3" action="<?php echo e(route('admin.updateSMTPSettings')); ?>" method="POST">
        <?php echo csrf_field(); ?>
                                                <div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label" for="mail-host">Mail Host</label>
            <span class="form-note">Specify SMTP host e.g mail.url.com.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-host" name="mail_host" value="<?php echo e(config('mail.mailers.smtp.host')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail Port</label>
            <span class="form-note">Specify the SMTP Port e.g 465 / 587 / 25.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-port" name="mail_port" value="<?php echo e(config('mail.mailers.smtp.port')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail Username</label>
            <span class="form-note">Specify the SMTP Mail Username e.g support@url.com.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-username" name="mail_username" value="<?php echo e(config('mail.mailers.smtp.username')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail Password</label>
            <span class="form-note">Specify the SMTP Mail Password e.g your webmail password.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-password" name="mail_password" value="<?php echo e(config('mail.mailers.smtp.password')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail Encryption</label>
            <span class="form-note">Specify the SMTP Mail Encryption e.g ssl / tls.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-encryption" name="mail_encryption" value="<?php echo e(config('mail.mailers.smtp.encryption')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail From Address</label>
            <span class="form-note">Specify the SMTP Mail From Address e.g support@url.com.</span>
        </div>
    </div>
    <div class="col-lg-7">
        <div class="form-group">
            <div class="form-control-wrap">
                <input type="text" class="form-control" id="mail-from-address" name="mail_from_address" value="<?php echo e(config('mail.from.address')); ?>">
            </div>
        </div>
    </div>
</div>
<div class="row g-3 align-center">
    <div class="col-lg-5">
        <div class="form-group">
            <label class="form-label">Mail From Name</label>
            <span class="form-note">Specify the SMTP Mail From Name e.g "Crypto Wallet".</span>
        </div>
    </div>
                                                    <div class="col-lg-7">
                                                        <div class="form-group">
                                                            <div class="form-control-wrap">
                                                                <input type="text" class="form-control" id="site-copyright" name="mail_from_name" placeholder="<?php echo e(env('MAIL_FROM_NAME')); ?>" value='"${APP_NAME}"' readonly>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                 
                                                <div class="row g-3">
                                                    <div class="col-lg-7 offset-lg-5">
                                                        <div class="form-group mt-2">
                                                            <button type="submit" class="btn btn-lg btn-primary">Update SMTP</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div><!-- card -->
                                </div><!-- .nk-block -->
                                
                                
                                
                                
                                  <!--CaptCha Settings-->
                                
                                
                                
                                <div class="nk-block nk-block-lg">
                                    <div class="nk-block-head">
                                        <div class="nk-block-head-content">
                                            <h4 class="title nk-block-title">Site CaptCha Settings</h4>
                                            <div class="nk-block-des">
                                                <p>You can make set your Captcha here.</p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card card-bordered">
                                        <div class="card-inner">
                                            <div class="card-head">
                                                <h5 class="card-title">CaptCha Setting</h5>
                                            </div>
                                           <form class="gy-3" action="<?php echo e(route('admin.updateCaptChaSettings')); ?>" method="POST">
    <?php echo csrf_field(); ?>

    <div class="row g-3 align-center">
        <div class="col-lg-5">
            <div class="form-group">
                <label class="form-label">CaptCha Service</label>
                <span class="form-note">Do you want Captcha on your site? You can turn it On/Off.</span>
            </div>
        </div>
        <div class="col-lg-7">
            <ul class="custom-control-group g-3 align-center flex-wrap">
                <li>
                    <div class="custom-control custom-radio">
                        <input type="radio" class="custom-control-input" name="captcha_mode" value="1" id="c-enable" 
                               <?php if($settings->captcha_mode == '1'): ?> checked <?php endif; ?>>
                        <label class="custom-control-label" for="c-enable">Online</label>
                    </div>
                </li>
                <li>
                    <div class="custom-control custom-radio">
                        <input type="radio" class="custom-control-input" name="captcha_mode" value="0" id="c-disable" 
                               <?php if($settings->captcha_mode == '0'): ?> checked <?php endif; ?>>
                        <label class="custom-control-label" for="c-disable">Offline</label>
                    </div>
                </li>
            </ul>
        </div>
    </div>

    <div class="captcha-mode" style="display: none;">
        <div class="row g-3 align-center">
            <div class="col-lg-5">
                <div class="form-group">
                    <label class="form-label">2Captcha</label>
                    <span class="form-note"><strong>Optional - Leave this alone</strong>.</span>
                </div>
            </div>
            <div class="col-lg-7">
                <div class="form-group">
                    <div class="form-control-wrap">
                        <input type="text" class="form-control" id="twocaptcha_api_key" name="twocaptcha_api_key" 
                               readonly value="<?php echo e($settings->twocaptcha_api_key); ?>">
                    </div>
                </div>
            </div>
        </div>
        <hr>
        <h3>Google reCAPTCHA</h3>
        <hr>
        <div class="row g-3 align-center">
            <div class="col-lg-5">
                <div class="form-group">
                    <label class="form-label">Google Site Key</label>
                    <span class="form-note">Go to <a href="https://www.google.com/recaptcha" target="_blank">Google reCAPTCHA</a> to get your Site Key.</span>
                </div>
            </div>
            <div class="col-lg-7">
                <div class="form-group">
                    <div class="form-control-wrap">
                        <input type="text" class="form-control" id="google_site_key" name="google_site_key" 
                               value="<?php echo e($settings->google_site_key); ?>">
                    </div>
                </div>
            </div>
        </div>
        <div class="row g-3 align-center">
            <div class="col-lg-5">
                <div class="form-group">
                    <label class="form-label">Google Secret Key</label>
                    <span class="form-note">Go to <a href="https://www.google.com/recaptcha" target="_blank">Google reCAPTCHA</a> to get your Secret Key.</span>
                </div>
            </div>
            <div class="col-lg-7">
                <div class="form-group">
                    <div class="form-control-wrap">
                        <input type="text" class="form-control" id="google_secret_key" name="google_secret_key" 
                               value="<?php echo e($settings->google_secret_key); ?>">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row g-3">
        <div class="col-lg-7 offset-lg-5">
            <div class="form-group mt-2">
                <button type="submit" class="btn btn-lg btn-primary">Update CaptCha Settings</button>
            </div>
        </div>
    </div>
</form>

<script>
    function toggleCaptchaMode() {
        const captchaMode = document.querySelector('input[name="captcha_mode"]:checked').value;
        const captchaDiv = document.querySelector('.captcha-mode');

        if (captchaMode == "1") {
            captchaDiv.style.display = "block";
        } else {
            captchaDiv.style.display = "none";
        }
    }

    // Run on page load
    document.addEventListener("DOMContentLoaded", function () {
        toggleCaptchaMode();
        
        document.querySelectorAll('input[name="captcha_mode"]').forEach(input => {
            input.addEventListener('change', toggleCaptchaMode);
        });
    });
</script>

                                            
                                        </div>
                                    </div><!-- card -->
                                </div><!-- .nk-block -->
                                
                                
                                
                            </div><!-- .components-preview -->
                        </div>
                    </div>
                </div>
                <!-- content @e -->
<?php $__env->stopSection(); ?>

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