<?php if (isset($component)) { $__componentOriginal91fdd17964e43374ae18c674f95cdaa3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3 = $attributes; } ?>
<?php $component = App\View\Components\AdminLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AdminLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php $__env->startSection('title', $page . ' | ' . get_setting('site_name')); ?>
  <div class="mt-4 grid grid-cols-12 gap-4 sm:mt-5 sm:gap-5 lg:mt-6 lg:gap-6">
    <div class="col-span-12">
      <div class="card px-4 pb-4 sm:px-5">
        <div class="space-y-4">
            <h2 class="text-2xl font-semibold text-slate-600 dark:text-navy-100 mt-4 mb-4">
                <?php echo e($page); ?>

            </h2>
            <?php if(session('success')): ?>
              <div class="alert flex items-center overflow-hidden rounded-lg border border-success text-success">
                <div class="px-4 py-3 sm:px-5">
                    <strong><?php echo e(session('success')); ?></strong>
                </div>
              </div>
            <?php endif; ?>
            <?php if(session('error')): ?>
              <div class="alert flex items-center overflow-hidden rounded-lg border border-error text-error">
                <div class="px-4 py-3 sm:px-5">
                    <strong><?php echo e(session('error')); ?></strong>
                </div>
              </div>
            <?php endif; ?>
        </div>
        <form action="/admin/settings/update" method="POST" class="mt-4" enctype="multipart/form-data">
          <?php echo csrf_field(); ?>
          <div class="space-y-4">
            <div> 
              <label class="block text-sm font-medium py-3">Site Name:</label>
              <input id="site_name" name="site_name" type="text" value="<?php echo e(get_setting('site_name')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div> 
              <label class="block text-sm font-medium py-3">Site Description:</label>
              <textarea id="site_description" name="site_description" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent"><?php echo e(get_setting('site_description')); ?></textarea>
            </div>
            <div>
              <label class="block text-sm font-medium py-3">Maintenance Mode:</label>
              <div class="flex items-center space-x-3">
                <span class="text-sm">Off</span>
                <label class="inline-flex items-center space-x-2">
                  <input type="hidden" name="maintenance_status" value="off" />
                  <input
                    id="maintenance_status"
                    name="maintenance_status"
                    type="checkbox"
                    value="on"
                    <?php if(get_setting('maintenance_status') == 'on'): echo 'checked'; endif; ?>
                    class="form-switch h-5 w-10 rounded-full bg-slate-300 before:rounded-full before:bg-slate-50 checked:bg-primary checked:before:bg-white dark:bg-navy-900 dark:before:bg-navy-300 dark:checked:bg-accent dark:checked:before:bg-white"
                  />
                </label>
                <span class="text-sm">On</span>
              </div>
            </div>
            
            <div class="grid grid-cols-2 gap-4 items-center">
                <!-- Logo Section -->
                <div>
                    <label class="block text-sm font-medium py-3" for="logo">Logo: <?php if(get_setting('logo')): ?><a href="/admin/remove/logo" class="btn space-x-2 bg-error font-medium text-white hover:bg-error-focus focus:bg-error-focus active:bg-error-focus/90 dark:bg-error dark:hover:bg-error-focus dark:focus:bg-error-focus dark:active:bg-error/90">Delete</a><?php endif; ?></label>
                    <div class="filepond fp-bordered">
                        <input
                            type="file"
                            id="logo"
                            name="logo"
                            x-init="
                                $el._x_filepond = FilePond.create($el, {
                                    server: {
                                        url: '/admin/settings/upload',
                                        process: {
                                            url: '/logo',
                                            method: 'POST',
                                            headers: {
                                                'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>'
                                            }
                                        },
                                        revert: '/admin/settings/revert',
                                    },
                                    files: [
                                        <?php if(get_setting('logo')): ?>
                                        {
                                            source: '<?php echo e(asset(get_setting('logo'))); ?>',
                                            options: {
                                                type: 'local'
                                            }
                                        }
                                        <?php endif; ?>
                                    ]
                                })"
                        />
                    </div>
                </div>
            
                <!-- Favicon Section -->
                <div>
                    <label class="block text-sm font-medium py-3" for="favicon">Favicon: <?php if(get_setting('favicon')): ?><a href="/admin/remove/favicon" class="btn space-x-2 bg-error font-medium text-white hover:bg-error-focus focus:bg-error-focus active:bg-error-focus/90 dark:bg-error dark:hover:bg-error-focus dark:focus:bg-error-focus dark:active:bg-error/90">Delete</a><?php endif; ?></label>
                    <div class="filepond fp-bordered">
                        <input
                            type="file"
                            id="favicon"
                            name="favicon"
                            x-init="
                                $el._x_filepond = FilePond.create($el, {
                                    server: {
                                        url: '/admin/settings/upload',
                                        process: {
                                            url: '/favicon',
                                            method: 'POST',
                                            headers: {
                                                'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>'
                                            }
                                        },
                                        revert: '/admin/settings/revert',
                                    },
                                    files: [
                                        <?php if(get_setting('favicon')): ?>
                                        {
                                            source: '<?php echo e(asset(get_setting('favicon'))); ?>',
                                            options: {
                                                type: 'local'
                                            }
                                        }
                                        <?php endif; ?>
                                    ]
                                })"
                        />
                    </div>
                </div>
            </div>
            <div> 
              <label class="block text-sm font-medium py-3">Currency Name:</label>
              <input id="currency_name" name="currency_name" type="text" value="<?php echo e(get_setting('currency_name')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div>
                <label class="block text-sm font-medium py-3" for="symbol">Currency Logo (Optional): <?php if(get_setting('symbol')): ?><a href="/admin/remove/symbol" class="btn space-x-2 bg-error font-medium text-white hover:bg-error-focus focus:bg-error-focus active:bg-error-focus/90 dark:bg-error dark:hover:bg-error-focus dark:focus:bg-error-focus dark:active:bg-error/90">Delete</a><?php endif; ?></label>
                <div class="filepond fp-bordered">
                    <input
                        type="file"
                        id="symbol"
                        name="symbol"
                        x-init="
                            $el._x_filepond = FilePond.create($el, {
                                server: {
                                    url: '/admin/settings/upload',
                                    process: {
                                        url: '/symbol',
                                        method: 'POST',
                                        headers: {
                                            'X-CSRF-TOKEN': '<?php echo e(csrf_token()); ?>'
                                        }
                                    },
                                    revert: '/admin/settings/revert',
                                },
                                files: [
                                    <?php if(get_setting('symbol')): ?>
                                    {
                                        source: '<?php echo e(asset(get_setting('symbol'))); ?>',
                                        options: {
                                            type: 'local'
                                        }
                                    }
                                    <?php endif; ?>
                                ]
                            })"
                    />
                </div>
            </div> 

            <div> 
              <label class="block text-sm font-medium py-3">Currency Rate:</label>
              <input id="currency_rate" name="currency_rate" type="number" step="0.000000001" value="<?php echo e(get_setting('currency_rate')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div> 
              <label class="block text-sm font-medium py-3">Currency Rounds:</label>
              <input id="currency_rounds" name="currency_rounds" type="number" step="1" value="<?php echo e(get_setting('currency_rounds')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div> 
              <label class="block text-sm font-medium py-3">Referral Commission:</label>
              <input id="referral" name="referral" type="number" step="1" value="<?php echo e(get_setting('referral')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div>
              <label class="block text-sm font-medium">IP Lookup Service:</label>
              <select id="lookup_service" name="lookup_service" class="form-select mt-1.5 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent">
                <option value="ip-api" <?php if(get_setting('lookup_service') == 'ip-api'): echo 'selected'; endif; ?>>IP API (free)</option>
                <option value="proxycheck" <?php if(get_setting('lookup_service') == 'proxycheck'): echo 'selected'; endif; ?>>Proxycheck.io</option>
              </select>
            </div>
            <div> 
              <label class="block text-sm font-medium py-3">Proxycheck.io API:</label>
              <input id="proxycheck_api" name="proxycheck_api" type="text" value="<?php echo e(get_setting('proxycheck_api')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <div>
              <label class="block text-sm font-medium py-3">Auto Banned Multi Accounts (Admins will not banned):</label>
              <div class="flex items-center space-x-3">
                <span class="text-sm">Off</span>
                <label class="inline-flex items-center space-x-2">
                  <input type="hidden" name="auto_banned" value="off" />
                  <input
                    id="auto_banned"
                    name="auto_banned"
                    type="checkbox"
                    value="on"
                    <?php if(get_setting('auto_banned') == 'on'): echo 'checked'; endif; ?>
                    class="form-switch h-5 w-10 rounded-full bg-slate-300 before:rounded-full before:bg-slate-50 checked:bg-primary checked:before:bg-white dark:bg-navy-900 dark:before:bg-navy-300 dark:checked:bg-accent dark:checked:before:bg-white"
                  />
                </label>
                <span class="text-sm">On</span>
              </div>
            </div>
            <div>
                <label class="block text-sm font-medium py-3">Mail Host:</label>
                <input id="mailhost" name="mailhost" type="text" value="<?php echo e(get_setting('mailhost')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
        
            <div>
                <label class="block text-sm font-medium py-3">Mail Port:</label>
                <input id="mailport" name="mailport" type="number" value="<?php echo e(get_setting('mailport')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            
            <div>
              <label class="block text-sm font-medium">Encryption:</label>
              <select id="mailencryption" name="mailencryption" class="form-select mt-1.5 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent">
                <option value="ssl" <?php if(get_setting('mailencryption') == 'ssl'): echo 'selected'; endif; ?>>SSL</option>
                <option value="tls" <?php if(get_setting('mailencryption') == 'tls'): echo 'selected'; endif; ?>>TLS</option>
              </select>
            </div>
            
            <div>
                <label class="block text-sm font-medium py-3">Mail Username:</label>
                <input id="mailusername" name="mailusername" type="text" value="<?php echo e(get_setting('mailusername')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
        
            <div>
                <label class="block text-sm font-medium py-3">Mail Password:</label>
                <input id="mailpassword" name="mailpassword" type="password" value="<?php echo e(get_setting('mailpassword')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
        
            <div>
                <label class="block text-sm font-medium py-3">Mail From Address:</label>
                <input id="mailfrom_address" name="mailfrom_address" type="email" value="<?php echo e(get_setting('mailfrom_address')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            
            <div>
                <label class="block text-sm font-medium py-3">Contact Email:</label>
                <input id="contact_email" name="contact_email" type="email" value="<?php echo e(get_setting('contact_email')); ?>" class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent" />
            </div>
            <button type="submit" class="btn space-x-2 bg-primary font-medium text-white hover:bg-primary-focus focus:bg-primary-focus active:bg-primary-focus/90 dark:bg-accent dark:hover:bg-accent-focus dark:focus:bg-accent-focus dark:active:bg-accent/90">Save</button>
          </div>
        </form>

      </div>
    </div>
  </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $attributes = $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $component = $__componentOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?><?php /**PATH /home/bitcoscript/public_html/resources/views/admin/settings/settings.blade.php ENDPATH**/ ?>