<form method="post" action="<?php echo e(action('Admin\SettingsController@updatepreference')); ?>" enctype="multipart/form-data">
    <div class="form-group">
        <h5 class="text-<?php echo e($text); ?>">Contact Email</h5>
        <input type="text" class="form-control bg-<?php echo e(Auth('admin')->User()->dashboard_style); ?> text-<?php echo e($text); ?>" name="contact_email" value="<?php echo e($settings->contact_email); ?>" required>
    </div>

    <input name="s_currency" value="<?php echo e($settings->s_currency); ?>" id="s_c" type="hidden">
    <div class="form-group">
        <h5 class="text-<?php echo e($text); ?>">Website Currency</h5>
		<select name="currency" id="select_c" class="form-control bg-<?php echo e(Auth('admin')->User()->dashboard_style); ?> text-<?php echo e($text); ?>" onchange="s_f()">
            <option value="<?php echo htmlentities($settings->currency); ?>"><?php echo e($settings->currency); ?></option>
            <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option id="<?php echo e($key); ?>" value="<?php echo htmlentities($currency); ?>"><?php echo e($key .' ('.$currency.')'); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</select>
	</div>

    <script>
        function s_f(){
            var e = document.getElementById("select_c");
            var selected = e.options[e.selectedIndex].id;
            document.getElementById("s_c").value = selected;
        }
    </script>

    
    <input type="hidden" value="<?php echo e($settings->site_preference); ?>" name="site_preference">

    

    <div class="form-group">
            <div class="sign-u">
            <div class="sign-up1">
                <h5 class="text-<?php echo e($text); ?>">Verify registration:</h5>
            </div>
            <div class="sign-up2">
            <label class="switch">
                <input name="enable_verification" id="enable_verification" type="checkbox" value="true">
                <span class="slider round"></span>
            </label>
            </div>
        </div>
    </div>

     <div class="form-group">
        <div class="sign-u">
            <div class="sign-up1">
                <h5 class="text-<?php echo e($text); ?>">Turn on/off trade: </h5>
            </div>
            <div class="sign-up2">
            <label class="switch">
                <input name="trade_mode" id="check" type="checkbox" value="on">
                <span class="slider round"></span>
            </label>
            </div>
        </div> 
    </div>
    
    <div class="form-group">
        <div class="sign-u">
            <div class="sign-up1">
                <h5 class="text-<?php echo e($text); ?>">Turn on/off 2FA:</h5>
            </div>
            <div class="sign-up2">
            <label class="switch">
                <input name="enable_2fa" id="2fa_check" type="checkbox" value="yes">
                <span class="slider round"></span>
            </label>
            </div>
        </div> 
    </div>
    
    <div class="form-group">
        <div class="sign-u">
        <div class="sign-up1">
            <h5 class="text-<?php echo e($text); ?>">Turn on/off KYC:</h5>
        </div>
        <div class="sign-up2">
            <label class="switch">
                <input name="enable_kyc" id="kyc_check" type="checkbox" value="yes">
                <span class="slider round"></span>
            </label>
        </div>
        </div>
    </div>

    <?php if($settings->trade_mode=='on'): ?>
        <script>document.getElementById("check").checked= true;</script>
    <?php endif; ?>

    <?php if($settings->enable_2fa=='yes'): ?>
        <script>document.getElementById("2fa_check").checked= true;</script>
    <?php endif; ?>

    <?php if($settings->enable_kyc=='yes'): ?>
        <script>document.getElementById("kyc_check").checked= true;</script>
    <?php endif; ?>

    <?php if($settings->enable_verification=='true'): ?>
        <script>document.getElementById("enable_verification").checked= true;</script>
    <?php endif; ?>

    <?php
    if($settings->site_colour=="default"){
        echo'
        <script>document.getElementById("colour1").checked= true;</script>
        ';
        }
        if($settings->site_colour=="blue"){
            echo'
            <script>document.getElementById("colour2").checked= true;</script>
            ';
        }
        
        //for  bot actuvate checkbox
        if($settings->bot_activate=="true"){
            echo'
            <script>document.getElementById("bot_activate").checked= true;</script>
            ';
        }
    ?>
     <input type="submit" class="btn btn-primary px-5 btn-lg mb-2" value="Save">
    <input type="hidden" name="id" value="1">
    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>"><br/>
</form>