

<?php $__env->startSection('setting_content'); ?>
    <form method="POST" class="profile-settings style-lg" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <div class="row c-gx-4 gy-4">
            <div class="col-xl-3 col-sm-6">
                <div class="form--group">
                    <label class="form--label style-two"><?php echo app('translator')->get('Site Name'); ?></label>
                    <input type="text" name="site_name" class="form--control md-style" value="<?php echo e(gs('site_name')); ?>"
                        required />
                </div>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?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 form--control md-style colorPicker"
                            value="<?php echo e(gs('base_color')); ?>">
                    </span>
                    <input type="text" class="form-control form--control md-style colorCode" name="base_color"
                        value="<?php echo e(gs('base_color')); ?>">
                </div>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Timezone'); ?></label>
                <select class="select2 form--control md-style" name="timezone" required>
                    <?php $__currentLoopData = $timezones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $timezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($key); ?>" <?php if($key == $currentTimezone): echo 'selected'; endif; ?>><?php echo e(__($timezone)); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Record to Display Per Page'); ?></label>
                <select class="select2 form--control md-style" name="paginate_number" data-minimum-results-for-search="-1"
                    required>
                    <option value="20" <?php if(gs('paginate_number') == 20): echo 'selected'; endif; ?>><?php echo app('translator')->get('20 items per page'); ?></option>
                    <option value="50" <?php if(gs('paginate_number') == 50): echo 'selected'; endif; ?>><?php echo app('translator')->get('50 items per page'); ?></option>
                    <option value="100" <?php if(gs('paginate_number') == 100): echo 'selected'; endif; ?>><?php echo app('translator')->get('100 items per page'); ?></option>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Email Notification'); ?></label>
                <select class="select2 form--control md-style" name="en" data-minimum-results-for-search="-1" required>
                    <option value="1" <?php if(gs('en') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('en') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('SMS Notification'); ?></label>
                <select class="select2 form--control md-style" name="sn" data-minimum-results-for-search="-1" required>
                    <option value="1" <?php if(gs('sn') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('sn') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Email Verification'); ?></label>
                <select class="select2 form--control md-style" name="ev" data-minimum-results-for-search="-1" required>
                    <option value="1" <?php if(gs('ev') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('ev') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Mobile Verification'); ?></label>
                <select class="select2 form--control md-style" name="sv" data-minimum-results-for-search="-1" required>
                    <option value="1" <?php if(gs('sv') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('sv') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>

            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two">
                    <?php echo app('translator')->get('Ticket Number Format'); ?>
                    <button type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasTicketFormat">
                        <i class="fas fa-info-circle" aria-label="Info"></i>
                    </button>
                </label>
                <input type="text" class="form--control md-style" name="ticket_number_format"
                    value="<?php echo e(old('ticket_number_format', company('ticket_number_format'))); ?>" required />
            </div>

            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Priority for Email Ticket'); ?></label>
                <select class="select2 form--control md-style" name="default_priority" data-minimum-results-for-search="-1"
                    required>
                    <option value=""><?php echo app('translator')->get('Select One'); ?></option>
                    <?php $__currentLoopData = $priorities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $priority): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($priority->id); ?>" <?php if($priority->id == gs('default_priority')): echo 'selected'; endif; ?>><?php echo e(__($priority->name)); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-xl-3 col-sm-6">
                <div class="form--group">
                    <label class="form--label style-two"><?php echo app('translator')->get('Ticket Auto Close'); ?></label>
                    <div class="input-group">
                        <input type="text" name="auto_close" class="form-control form--control md-style"
                            value="<?php echo e(gs('auto_close')); ?>" required />
                        <span class="input-group-text"><?php echo app('translator')->get('Days'); ?></span>
                    </div>
                </div>
            </div>

            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Force SSL'); ?></label>
                <select class="select2 form--control md-style" name="force_ssl" data-minimum-results-for-search="-1"
                    required>
                    <option value="1" <?php if(gs('force_ssl') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('force_ssl') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>

            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Multi Language'); ?></label>
                <select class="select2 form--control md-style" name="multi_language" data-minimum-results-for-search="-1"
                    required>
                    <option value="1" <?php if(gs('multi_language') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('multi_language') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>

            <div class="col-xl-3 col-sm-6">
                <label class="form--label style-two"> <?php echo app('translator')->get('Agree Policy On Sign Up'); ?></label>
                <select class="select2 form--control md-style" name="agree" data-minimum-results-for-search="-1"
                    required>
                    <option value="1" <?php if(gs('agree') == 1): echo 'selected'; endif; ?>><?php echo app('translator')->get('Enable'); ?></option>
                    <option value="0" <?php if(gs('agree') == 0): echo 'selected'; endif; ?>><?php echo app('translator')->get('Disable'); ?></option>
                </select>
            </div>

        </div>


        <div class="profile-settings-submit">
            <button class="btn btn--base btn--md w-100"><?php echo app('translator')->get('Submit'); ?></button>
        </div>
    </form>

    <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasTicketFormat">
        <div class="offcanvas-header">
            <h6 class="offcanvas-title">🏷️ <?php echo app('translator')->get('Ticket Number Format'); ?></h6>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
        </div>
        <div class="offcanvas-body">
            <p class="mb-3 fs-14">
                <?php echo app('translator')->get('Customize how your support ticket numbers are generated using format tokens. You can combine letters, numbers, and custom text. Use the following tokens:'); ?>
            </p>

            <div class="mb-3">
                <ul class="ticket-format-list mb-3">
                    <li class="mb-2 flex-align gap-3 fs-14">
                        <span class="ticket-format-token">{N}</span>
                        <span class="ticket-format-token-text">— <?php echo app('translator')->get('Random digit'); ?> (0–9)</span>
                    </li>
                    <li class="mb-2 flex-align gap-3 fs-14">
                        <span class="ticket-format-token">{A}</span>
                        <span class="ticket-format-token-text">— <?php echo app('translator')->get('Random uppercase letter'); ?> (A–Z)</span>
                    </li>
                    <li class="mb-2 flex-align gap-3 fs-14">
                        <span class="ticket-format-token">{a}</span>
                        <span class="ticket-format-token-text">— <?php echo app('translator')->get('Random lowercase letter'); ?> (a–z)</span>
                    </li>
                </ul>

                <div class="mb-3">
                    <p class="mb-2 text--dark fw-medium fs-14"><?php echo app('translator')->get('Example'); ?>:</p>
                    <p class="mb-2">
                        <span class="fs-14">
                            {N}{N}{N}{N} - {A}{N}{A}{a} -{a}
                        </span>
                    </p>
                    <p class="fs-14 flex-align gap-2">
                        <?php echo app('translator')->get('Might generate'); ?>: <span class="text--dark fw-medium">4732 - G4Hk -m</span>
                    </p>
                </div>

                <div class="mb-3">
                    <p class="mb-3 text--dark fw-medium fs-14"><?php echo app('translator')->get('Tips'); ?>:</p>
                    <ul class="ticket-format-list">
                        <li class="mb-2">
                            <p class="fs-14">
                                <?php echo app('translator')->get('Use hyphens'); ?> - <?php echo app('translator')->get('or underscores'); ?>
                                _ <?php echo app('translator')->get('to separate parts.'); ?>
                            </p>
                        </li>
                        <li class="mb-2">
                            <p class="fs-14">
                                <?php echo app('translator')->get('Avoid long formats that may be hard to read.'); ?>
                            </p>
                        </li>
                        <li class="mb-2">
                            <p class="fs-14">
                                <?php echo app('translator')->get('Use fixed prefixes to help identify ticket origin or type.'); ?>
                                <?php echo app('translator')->get('Example'); ?>: <span class="text--dark fw-medium fs-14">SUP-{N}{N}{N}{A}</span>
                            </p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?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('style'); ?>
    <style>

    </style>
<?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,
                });
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.general.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\projects\custom_viserdesk\Files\core\resources\views/admin/general/basic.blade.php ENDPATH**/ ?>