<?php $__env->startSection('panel'); ?>
    <div class="row mb-none-30">
        <div class="col-lg-12 col-md-12 mb-30">
            <div class="card">
                <div class="card-body">
                    <form action="" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group ">
                                    <label> <?php echo app('translator')->get('Site Title'); ?></label>
                                    <input class="form-control" type="text" name="site_name" required value="<?php echo e($general->site_name); ?>">
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Currency'); ?></label>
                                    <input class="form-control" type="text" name="cur_text" required value="<?php echo e($general->cur_text); ?>">
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Currency Symbol'); ?></label>
                                    <input class="form-control" type="text" name="cur_sym" required value="<?php echo e($general->cur_sym); ?>">
                                </div>
                            </div>
                            <div class="form-group col-md-4 col-sm-6">
                                <label> <?php echo app('translator')->get('Timezone'); ?></label>
                                <select class="select2-basic" name="timezone">
                                    <?php $__currentLoopData = $timezones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $timezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="'<?php echo e(@$timezone); ?>'"><?php echo e(__($timezone)); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="form-group col-md-4 col-sm-6">
                                <label> <?php echo app('translator')->get('Site Base Color'); ?></label>
                                <div class="input-group">
                                    <span class="input-group-text p-0 border-0">
                                        <input type='text' class="form-control colorPicker" value="<?php echo e($general->base_color); ?>" />
                                    </span>
                                    <input type="text" class="form-control colorCode" name="base_color" value="<?php echo e($general->base_color); ?>" />
                                </div>
                            </div>

                            <div class="form-group col-md-4 col-sm-6">
                                <label> <?php echo app('translator')->get('Site Secondary Color'); ?></label>
                                <div class="input-group">
                                    <span class="input-group-text p-0 border-0">
                                        <input type='text' class="form-control colorPicker" value="<?php echo e($general->secondary_color); ?>" />
                                    </span>
                                    <input type="text" class="form-control colorCode" name="secondary_color" value="<?php echo e($general->secondary_color); ?>" />
                                </div>
                            </div>

                            <div class="col-md-4 col-sm-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Balance Transfer Fixed Charge'); ?></label>
                                    <div class="input-group">
                                        <input class="form-control bal-charge" type="text" name="f_charge" required value="<?php echo e(getAmount($general->f_charge)); ?>" <?php if(!$general->b_transfer): ?> readonly <?php endif; ?>>
                                        <div class="input-group-text"><?php echo e($general->cur_text); ?></div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Balance Transfer Percent Charge'); ?></label>
                                    <div class="input-group">
                                        <input class="form-control bal-charge" type="text" name="p_charge" required value="<?php echo e(getAmount($general->p_charge)); ?>" <?php if(!$general->b_transfer): ?> readonly <?php endif; ?>>
                                        <div class="input-group-text">%</div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Registration Bonus'); ?></label>
                                    <div class="input-group">
                                        <input class="form-control bal-charge" type="text" name="signup_bonus_amount" required value="<?php echo e(getAmount($general->signup_bonus_amount)); ?>" min="0" <?php if(!$general->signup_bonus_control): ?> readonly <?php endif; ?>>
                                        <div class="input-group-text"><?php echo e($general->cur_text); ?></div>
                                        <?php if(!$general->signup_bonus_control): ?>
                                            <small class="text--small text-muted"><i><i class="las la-info-circle"></i> <?php echo app('translator')->get('To give the registration bonus, please enable the module from the'); ?> <a href="<?php echo e(route('admin.setting.system.configuration')); ?>" class="text--small"><?php echo app('translator')->get('System Configuration'); ?></a></i></small>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Staking Min Amount'); ?></label>
                                    <div class="input-group">
                                        <input class="form-control bal-charge" type="number" name="staking_min_amount" required value="<?php echo e(getAmount($general->staking_min_amount)); ?>" step="any" min="0" <?php if(!$general->staking_option): ?> readonly <?php endif; ?>>
                                        <div class="input-group-text"><?php echo e($general->cur_text); ?></div>
                                        <?php if(!$general->staking_option): ?>
                                            <small class="text--small text-muted"><i><i class="las la-info-circle"></i> <?php echo app('translator')->get('To give the registration bonus, please enable the module from the'); ?> <a href="<?php echo e(route('admin.setting.system.configuration')); ?>" class="text--small"><?php echo app('translator')->get('System Configuration'); ?></a></i></small>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Staking Max Amount'); ?></label>
                                    <div class="input-group">
                                        <input class="form-control bal-charge" type="number" name="staking_max_amount" required value="<?php echo e(getAmount($general->staking_max_amount)); ?>" step="any" min="0" <?php if(!$general->staking_option): ?> readonly <?php endif; ?>>
                                        <div class="input-group-text"><?php echo e($general->cur_text); ?></div>
                                        <?php if(!$general->staking_option): ?>
                                            <small class="text--small text-muted"><i><i class="las la-info-circle"></i> <?php echo app('translator')->get('To give the registration bonus, please enable the module from the'); ?> <a href="<?php echo e(route('admin.setting.system.configuration')); ?>" class="text--small"><?php echo app('translator')->get('System Configuration'); ?></a></i></small>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .select2-container {
            z-index: 0 !important;
        }

        .border-line-area {
            position: relative;
            text-align: center;
            z-index: 1;
        }

        .border-line-area::before {
            position: absolute;
            content: '';
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #e5e5e5;
            z-index: -1;
        }

        .border-line-title {
            display: inline-block;
            padding: 3px 10px;
            background-color: #fff;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script-lib'); ?>
    <script src="<?php echo e(asset('assets/admin/js/spectrum.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('style-lib'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/admin/css/spectrum.css')); ?>">
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict";
            $('.colorPicker').spectrum({
                color: $(this).data('color'),
                change: function(color) {
                    $(this).parent().siblings('.colorCode').val(color.toHexString().replace(/^#?/, ''));
                }
            });

            $('.colorCode').on('input', function() {
                var clr = $(this).val();
                $(this).parents('.input-group').find('.colorPicker').spectrum({
                    color: clr,
                });
            });

            $('select[name=timezone]').val("'<?php echo e(config('app.timezone')); ?>'").select2();
            $('.select2-basic').select2({
                dropdownParent: $('.card-body')
            });

            $('[name=b_transfer]').change(function() {
                if ($(this).is(":checked")) {
                    $('.bal-charge').removeAttr('readonly');
                } else {
                    $('.bal-charge').attr('readonly', true);
                }
            }).change();
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/mrorko/Sites/hyiplab-js/core/resources/views/admin/setting/general.blade.php ENDPATH**/ ?>