<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-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(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Backend Manage')); ?> <?php $__env->endSlot(); ?>
    <!-- BREADCRUMB -->
    <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['title' => 'Backend Settings','pageTo' => 'Backend']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Backend Settings','page-to' => 'Backend']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
    <div class="flex flex-col lg:flex-row gap-x-4">
        <!-- TAB BUTTONS -->
        <div class="lg:w-[320px] shrink-0 card">
            <div class="flex items-center lg:flex-col gap-2 flex-wrap">
                <button
                    class="tablinks btn b-outline btn-primary-outline border-primary-200 justify-start !grow shrink-0 lg:w-full text-sm !text-gray-500 dark:!text-white hover:!text-primary hover:!bg-primary-200 dark:hover:!bg-dark-icon [&.active]:bg-primary-200 dark:[&.active]:bg-dark-icon [&.active]:border-transparent [&.active]:!text-primary dk-theme-card-square ac-transition active"
                    onclick="openStep(event, 'generalSetting')">
                    <i class="ri-settings-line text-inherit"></i>
                    <?php echo e(translate('General Setting')); ?>

                </button>
                <button
                    class="tablinks btn b-outline btn-primary-outline border-primary-200 justify-start !grow shrink-0 lg:w-full text-sm !text-gray-500 dark:!text-white hover:!text-primary hover:!bg-primary-200 dark:hover:!bg-dark-icon [&.active]:bg-primary-200 dark:[&.active]:bg-dark-icon [&.active]:border-transparent [&.active]:!text-primary dk-theme-card-square ac-transition"
                    onclick="openStep(event, 'logo')">
                    <i class="ri-dv-line text-inherit"></i>
                    <?php echo e(translate('Logo')); ?>

                </button>
                <button
                    class="tablinks btn b-outline btn-primary-outline border-primary-200 justify-start !grow shrink-0 lg:w-full text-sm !text-gray-500 dark:!text-white hover:!text-primary hover:!bg-primary-200 dark:hover:!bg-dark-icon [&.active]:bg-primary-200 dark:[&.active]:bg-dark-icon [&.active]:border-transparent [&.active]:!text-primary dk-theme-card-square ac-transition"
                    onclick="openStep(event, 'smtp-setting')">
                    <i class="ri-mail-settings-line text-inherit"></i>
                    <?php echo e(translate('SMTP Setting')); ?>

                </button>

                <button
                    class="tablinks btn b-outline btn-primary-outline border-primary-200 justify-start !grow shrink-0 lg:w-full text-sm !text-gray-500 dark:!text-white hover:!text-primary hover:!bg-primary-200 dark:hover:!bg-dark-icon [&.active]:bg-primary-200 dark:[&.active]:bg-dark-icon [&.active]:border-transparent [&.active]:!text-primary dk-theme-card-square ac-transition"
                    onclick="openStep(event, 'openai-setting')">
                    <i class="ri-sparkling-2-line text-inherit"></i>
                    <?php echo e(translate('Ai Setting')); ?>

                </button>

                <button
                    class="tablinks btn b-outline btn-primary-outline border-primary-200 justify-start !grow shrink-0 lg:w-full text-sm !text-gray-500 dark:!text-white hover:!text-primary hover:!bg-primary-200 dark:hover:!bg-dark-icon [&.active]:bg-primary-200 dark:[&.active]:bg-dark-icon [&.active]:border-transparent [&.active]:!text-primary dk-theme-card-square ac-transition"
                    onclick="openStep(event, 'system-information')">
                    <i class="ri-information-2-line text-inherit"></i>
                    <?php echo e(translate('System Information')); ?>

                </button>
            </div>
        </div>

        <!-- TAB CONTENTS -->
        <div class="grow">
            <!-- START GENERAL SETTINGS CONTENTS -->
            <div id="generalSetting" class="tabcontent card block">

                <div class="mb-10">
                    <a href="<?php echo e(route('cache.clear')); ?>" class="btn b-solid btn-warning-solid"
                        title="<?php echo e(translate('Be careful, it may affect performance')); ?>.">
                        <?php echo e(translate('Clear Cache')); ?></a>
                    <a href="<?php echo e(route('cache.optimize')); ?>" class="btn b-solid btn-primary-solid"
                        title="<?php echo e(translate('Best for production performance')); ?>."><?php echo e(translate('Optimize Cache')); ?></a>
                    <a href="<?php echo e(route('storage.link')); ?>"
                        class="btn b-solid btn-secondary-solid"><?php echo e(translate('Storage Link')); ?></a>
                </div>
                <?php
                    $backendSetting = get_theme_option(key: 'backend_general') ?? [];
                    $currency = $backendSetting['currency'] ?? 'USD-$';
                    $currencySymbol = get_currency_symbol($currency);
                ?>
                <form enctype="multipart/form-data" class="add_setting" method="POST"
                    action="<?php echo e(route('theme.setting')); ?>" data-key="backend_general">
                    <?php echo csrf_field(); ?>
                    <h6 class="leading-none text-xl font-semibold text-heading"> <?php echo e(translate('General Setting')); ?>

                    </h6>
                    <div class="mt-7">
                        <div class="leading-none">
                            <label for="currency" class="form-label"><?php echo e(translate('Currency')); ?></label>
                            <select data-select id="currency" name="currency" class="singleSelect">
                                <option selected disabled> <?php echo e(translate('Select Currency')); ?> </option>
                                <?php $__currentLoopData = all_currency(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php
                                        $codeSymbol = $currency->code . '-' . $currency->symbol;
                                    ?>
                                    <option value="<?php echo e($currency->code . '-' . $currency->symbol); ?>"
                                        <?php echo e(isset($backendSetting['currency']) && $backendSetting['currency'] == $codeSymbol ? 'selected' : ''); ?>>
                                        <?php echo e($currency->symbol); ?> - <?php echo e($currency->code); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Platform free')); ?>

                                (<?php echo e($currencySymbol); ?>)</label>
                            <input type="number" name="platform_fee"
                                placeholder="<?php echo e(translate('Enter Platform Free')); ?>" class="form-input" step="0.01"
                                value="<?php echo e($backendSetting['platform_fee'] ?? ''); ?>">
                        </div>

                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Application Name')); ?> </label>
                            <input type="text" name="app_name"
                                placeholder="<?php echo e(translate('Enter Your Application Name')); ?>" class="form-input"
                                value="<?php echo e($backendSetting['app_name'] ?? ''); ?>">
                        </div>
                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Contact Email')); ?> </label>
                            <input type="text" name="contact_email"
                                placeholder="<?php echo e(translate('Enter Your Contact Email')); ?>" class="form-input"
                                value="<?php echo e($backendSetting['contact_email'] ?? ''); ?>">
                        </div>
                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Contact Email')); ?> </label>
                            <input type="text" name="contact_email"
                                placeholder="<?php echo e(translate('Enter Your Contact Email')); ?>" class="form-input"
                                value="<?php echo e($backendSetting['contact_email'] ?? ''); ?>">
                        </div>
                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Time Zone')); ?> </label>
                            <select class="singleSelect form-input" id="time_zone" name="time_zone">
                                <option selected disabled><?php echo e(translate('Select Time Zone')); ?></option>
                                <?php $__currentLoopData = getTimezone(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $getTimezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($getTimezone['value']); ?>"
                                        <?php echo e(isset($backendSetting, $backendSetting['time_zone']) && $backendSetting['time_zone'] == $getTimezone['value'] ? 'selected' : ''); ?>>
                                        <?php echo e($getTimezone['label']); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </select>
                        </div>
                        <?php
                            $backendGeneral = get_theme_option(key: 'backend_general') ?? null;
                        ?>
                        <div class="leading-none mt-6">
                            <label class="form-label"> <?php echo e(translate('Date Format')); ?> </label>
                            <select class="form-input singleSelect" name="date_format" id="date_format"
                                required="required">
                                <option selected disabled><?php echo e('Select date format'); ?> </option>
                                <option value="M j, Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'M j, Y' ? 'selected' : ''); ?>>
                                    Oct 30, 2023</option>
                                <option value="Y-m-d"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'Y-m-d' ? 'selected' : ''); ?>>
                                    2023-10-30</option>
                                <option value="d-m-Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'd-m-Y' ? 'selected' : ''); ?>>
                                    30-10-2023</option>
                                <option value="d/m/Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'd/m/Y' ? 'selected' : ''); ?>>
                                    30/10/2023 </option>
                                <option value="m/d/Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'm/d/Y' ? 'selected' : ''); ?>>
                                    10/30/2023 </option>
                                <option value="m.d.Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'm.d.Y' ? 'selected' : ''); ?>>
                                    10.30.2023 </option>
                                <option value="j, n, Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'j, n, Y' ? 'selected' : ''); ?>>
                                    30, 10, 2023 </option>
                                <option value="F j, Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'F j, Y' ? 'selected' : ''); ?>>
                                    October 30, 2023 </option>
                                <option value="M j, Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'M j, Y' ? 'selected' : ''); ?>>
                                    Oct 30, 2023</option>
                                <option value="j M, Y"
                                    <?php echo e(old('date_format', $backendGeneral['date_format'] ?? null) == 'j M, Y' ? 'selected' : ''); ?>>
                                    30 Oct, 2023</option>
                            </select>
                        </div>
                    </div>




                    <div class="flex justify-end mt-10">
                        <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square">
                            <?php echo e(translate('Save')); ?>

                        </button>
                    </div>
                </form>
            </div>
            <!-- START LOGO CONTENTS -->
            <div id="logo" class="tabcontent card hidden">

                <?php
                    $backendLogo = get_theme_option(key: 'backend_logo') ?? null;
                ?>
                <form enctype="multipart/form-data" class="add_setting" method="POST"
                    action="<?php echo e(route('theme.setting')); ?>" data-key="backend_logo">
                    <?php echo csrf_field(); ?>
                    <div class="grid grid-cols-3 gap-x-4 gap-y-6 mt-7">
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label">
                                <?php echo e(translate('Logo')); ?>(<?php echo e(translate('100')); ?>x<?php echo e(translate('35')); ?>)</label>
                            <label for="imgage"
                                class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                <input type="file" class="dropzone theme-setting-image" hidden id ="imgage">
                                <input type="hidden" name="logo" id="oldFile"
                                    value="<?php echo e($backendLogo['logo'] ?? null); ?>">
                                <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                    <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>" alt="file-icon"
                                        class="size-8 lg:size-auto">
                                    <div class="text-gray-500 dark:text-dark-text mt-2"><?php echo e(translate('Choose file')); ?>

                                    </div>
                                </span>
                            </label>
                            <div class="preview-zone dropzone-preview">
                                <div class="box box-solid">
                                    <div class="box-body flex items-center gap-2 flex-wrap">
                                        <?php if(isset(get_theme_option(key: 'backend_logo')['logo'])): ?>
                                            <?php if(fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['logo']) == true && $backendLogo['logo'] !== ''): ?>
                                                <div class="img-thumb-wrapper">
                                                    <button class="remove"> <i
                                                            class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" class="img-thumb !size-auto"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['logo'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label">
                                <?php echo e(translate('Favicon')); ?>(<?php echo e(translate('16')); ?>x<?php echo e(translate('16')); ?>)</label>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label for="imgageFav"
                                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                    <input type="file" class="dropzone theme-setting-image" hidden id="imgageFav">
                                    <input type="hidden" name="favicon" id="oldFile"
                                        value="<?php echo e($backendLogo['favicon'] ?? null); ?>">
                                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>"
                                            alt="file-icon" class="size-8 lg:size-auto">
                                        <div class="text-gray-500 dark:text-dark-text mt-2">
                                            <?php echo e(translate('Choose file')); ?>

                                        </div>
                                    </span>
                                </label>
                                <div class="preview-zone dropzone-preview">
                                    <div class="box box-solid">
                                        <div class="box-body flex items-center gap-2 flex-wrap">

                                            <?php if(isset($backendLogo['favicon']) &&
                                                    fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['favicon']) == true &&
                                                    $backendLogo['favicon'] !== ''): ?>
                                                <div class="img-thumb-wrapper"> <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="50" height="50"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['favicon'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="col-span-full xl:col-auto leading-none">
                            <label
                                class="form-label"><?php echo e(translate('Icon Logo')); ?>(<?php echo e(translate('40')); ?>x<?php echo e(translate('40')); ?>)</label>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label for="icon_logo"
                                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                    <input type="file" class="dropzone theme-setting-image" hidden id="icon_logo">
                                    <input type="hidden" name="icon_logo" id="oldFile"
                                        value="<?php echo e($backendLogo['icon_logo'] ?? null); ?>">
                                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>"
                                            alt="file-icon" class="size-8 lg:size-auto">
                                        <div class="text-gray-500 dark:text-dark-text mt-2">
                                            <?php echo e(translate('Choose file')); ?>

                                        </div>
                                    </span>
                                </label>
                                <div class="preview-zone dropzone-preview">
                                    <div class="box box-solid">
                                        <div class="box-body flex items-center gap-2 flex-wrap">
                                            <?php if(isset($backendLogo['icon_logo']) &&
                                                    fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['icon_logo']) == true &&
                                                    $backendLogo['icon_logo'] !== ''): ?>
                                                <div class="img-thumb-wrapper"> <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="100" height="100"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['icon_logo'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="col-span-full xl:col-auto leading-none">
                            <label
                                class="form-label"><?php echo e(translate('Dark Mood Logo')); ?>(<?php echo e(translate('100')); ?>x<?php echo e(translate('35')); ?>)</label>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label for="dark_logo"
                                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                    <input type="file" class="dropzone theme-setting-image" hidden id="dark_logo">
                                    <input type="hidden" name="dark_logo" id="oldFile"
                                        value="<?php echo e($backendLogo['dark_logo'] ?? null); ?>">
                                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>"
                                            alt="file-icon" class="size-8 lg:size-auto">
                                        <div class="text-gray-500 dark:text-dark-text mt-2">
                                            <?php echo e(translate('Choose file')); ?>

                                        </div>
                                    </span>
                                </label>
                                <div class="preview-zone dropzone-preview">
                                    <div class="box box-solid">
                                        <div class="box-body flex items-center gap-2 flex-wrap">
                                            <?php if(isset($backendLogo['dark_logo']) &&
                                                    fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['dark_logo']) == true &&
                                                    $backendLogo['dark_logo'] !== ''): ?>
                                                <div class="img-thumb-wrapper"> <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="100" height="100"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['dark_logo'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="col-span-full xl:col-auto leading-none">
                            <label
                                class="form-label"><?php echo e(translate('Dark Icon Logo')); ?>(<?php echo e(translate('40')); ?>x<?php echo e(translate('40')); ?>)</label>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label for="dark_icon_logo"
                                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                    <input type="file" class="dropzone theme-setting-image" hidden
                                        id="dark_icon_logo">
                                    <input type="hidden" name="dark_icon_logo" id="oldFile"
                                        value="<?php echo e($backendLogo['dark_icon_logo'] ?? null); ?>">
                                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>"
                                            alt="file-icon" class="size-8 lg:size-auto">
                                        <div class="text-gray-500 dark:text-dark-text mt-2">
                                            <?php echo e(translate('Choose file')); ?>

                                        </div>
                                    </span>
                                </label>
                                <div class="preview-zone dropzone-preview">
                                    <div class="box box-solid">
                                        <div class="box-body flex items-center gap-2 flex-wrap">
                                            <?php if(isset($backendLogo['dark_icon_logo']) &&
                                                    fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['dark_icon_logo']) == true &&
                                                    $backendLogo['dark_icon_logo'] !== ''): ?>
                                                <div class="img-thumb-wrapper"> <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="100" height="100"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['dark_icon_logo'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"><?php echo e(translate('Invoice Logo')); ?></label>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label for="invoice_logo"
                                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                                    <input type="file" class="dropzone theme-setting-image" hidden
                                        id="invoice_logo">
                                    <input type="hidden" name="invoice_logo" id="oldFile"
                                        value="<?php echo e($backendLogo['invoice_logo'] ?? null); ?>">
                                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>"
                                            alt="file-icon" class="size-8 lg:size-auto">
                                        <div class="text-gray-500 dark:text-dark-text mt-2">
                                            <?php echo e(translate('Choose file')); ?>

                                        </div>
                                    </span>
                                </label>
                                <div class="preview-zone dropzone-preview">
                                    <div class="box box-solid">
                                        <div class="box-body flex items-center gap-2 flex-wrap">
                                            <?php if(isset($backendLogo['invoice_logo']) &&
                                                    fileExists($folder = 'lms/theme-options', $fileName = $backendLogo['invoice_logo']) == true &&
                                                    $backendLogo['invoice_logo'] !== ''): ?>
                                                <div class="img-thumb-wrapper"> <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="100" height="100"
                                                        src="<?php echo e(asset('storage/lms/theme-options/' . $backendLogo['invoice_logo'])); ?>" />
                                                </div>
                                            <?php else: ?>
                                                <div class="img-thumb-wrapper max-w-[120px] max-h-[120px]">
                                                    <button class="remove text-danger">
                                                        <i class="ri-close-line text-inherit text-[13px]"></i>
                                                    </button>
                                                    <img id="preview_img" width="auto" height="auto">
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                    </div>
                    <div class="flex justify-end mt-10">
                        <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square">
                            <?php echo e(translate('Save')); ?>

                        </button>
                    </div>
                </form>
            </div>
            <!-- START SMPT SETTINGS CONTENTS -->
            <div id="smtp-setting" class="tabcontent card hidden">
                <h6 class="leading-none text-xl font-semibold text-heading">
                    <?php echo e(translate('SMPT Settings')); ?>

                </h6>
                <form enctype="multipart/form-data" class="add_setting" method="POST"
                    action="<?php echo e(route('theme.setting')); ?>" data-key="mail_setting">
                    <?php echo csrf_field(); ?>

                    <?php
                        $mail = get_theme_option(key: 'mail_setting');
                    ?>
                    <div class="grid grid-cols-2 gap-x-4 gap-y-6 mt-7">
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"><?php echo e(translate('Driver')); ?></label>
                            <select name="mail_driver" class="form-input dark:bg-dark-card-two">
                                <option><?php echo e(translate('Select Option')); ?></option>
                                <option value="smtp"
                                    <?php echo e(isset($mail['mail_driver']) && $mail['mail_driver'] == 'smtp' ? 'selected' : ''); ?>>
                                    <?php echo e(translate('smtp')); ?></option>
                                <option
                                    value="sendmail"<?php echo e(isset($mail['mail_driver']) && $mail['mail_driver'] == 'sendmail' ? 'selected' : ''); ?>>
                                    <?php echo e(translate('sendmail')); ?></option>
                            </select>
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"> <?php echo e(translate('Mail Host')); ?> </label>
                            <input type="text" id="meta_title" class="form-input"
                                value="<?php echo e($mail['mail_host'] ?? ''); ?>" name="mail_host"
                                placeholder="<?php echo e(translate('Host')); ?>">
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"> <?php echo e(translate('Mail Port')); ?> </label>
                            <input type="text" class="form-input" name="mail_port"
                                value="<?php echo e($mail['mail_port'] ?? ''); ?>" placeholder="<?php echo e(translate('Port')); ?>" />
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"> <?php echo e(translate('From Address')); ?> </label>
                            <input type="text" class="form-input" value="<?php echo e($mail['mail_from_address'] ?? ''); ?>"
                                name="mail_from_address" placeholder="<?php echo e(translate('From Address')); ?>" />
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"> <?php echo e(translate('Mail User Name')); ?> </label>
                            <input type="text" class="form-input" value="<?php echo e($mail['mail_username'] ?? ''); ?>"
                                name="mail_username" placeholder="<?php echo e(translate('User Name')); ?>" />
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"> <?php echo e(translate('Mail Encryption')); ?> </label>
                            <select name="mail_encryption" class="form-input dark:bg-dark-card-two">
                                <option><?php echo e(translate('Select Option')); ?></option>
                                <option value="tls"
                                    <?php echo e(isset($mail['mail_encryption']) && $mail['mail_encryption'] == 'tls' ? 'selected' : ''); ?>>
                                    <?php echo e(translate('TLS')); ?></option>
                                <option
                                    value="ssl"<?php echo e(isset($mail['mail_encryption']) && $mail['mail_encryption'] == 'SSL' ? 'selected' : ''); ?>>
                                    <?php echo e(translate('SSL')); ?></option>
                            </select>
                        </div>
                        <div class="col-span-full xl:col-auto leading-none">
                            <label class="form-label"><?php echo e(translate('Password')); ?> </label>
                            <input type="text" class="form-input" value="<?php echo e($mail['password'] ?? null); ?>"
                                name="password" placeholder="<?php echo e(translate('Password')); ?>" />
                        </div>
                    </div>
                    <div class="flex justify-end mt-10">
                        <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square">
                            <?php echo e(translate('Save')); ?>

                        </button>
                    </div>
                </form>
            </div>

            <div id="openai-setting" class="tabcontent hidden">
                <div class="card">
                    <h6 class="leading-none text-xl font-semibold text-heading">
                        <?php echo e(translate('ChatGPT setting')); ?>

                    </h6>
                    <form enctype="multipart/form-data" class="add_setting" method="POST"
                        action="<?php echo e(route('theme.setting')); ?>" data-key="ai_setting">
                        <?php echo csrf_field(); ?>
                        <?php
                            $openAi = get_theme_option(key: 'ai_setting') ?? [];
                        ?>
                        <div class="grid grid-cols-2 gap-x-4 gap-y-6 mt-7">
                            <div class="col-span-full xl:col-auto leading-none">
                                <label class="form-label"><?php echo e(translate('Select ChatGPT Model')); ?></label>
                                <select name="ai_modal" class="form-input dark:bg-dark-card-two singleSelect">
                                    <option><?php echo e(translate('Select model')); ?></option>
                                    <option value="gpt-4o"
                                        <?php echo e(isset($openAi['ai_modal']) && $openAi['ai_modal'] == 'gpt-4o' ? 'selected' : ''); ?>>
                                        gpt-4o
                                    </option>
                                    <option value="gpt-4o-mini"
                                        <?php echo e(isset($openAi['ai_modal']) && $openAi['ai_modal'] == 'gpt-4o-mini' ? 'selected' : ''); ?>>
                                        gpt-4o-mini </option>
                                    <option value="gpt-3.5-turbo-0125"
                                        <?php echo e(isset($openAi['ai_modal']) && $openAi['ai_modal'] == 'gpt-3.5-turbo-0125' ? 'selected' : ''); ?>>
                                        gpt-3.5-turbo-0125
                                    </option>
                                </select>
                            </div>
                            <div class="col-span-full xl:col-auto leading-none">
                                <label class="form-label"> <?php echo e(translate('ChatGPT Secret Key')); ?> </label>
                                <input type="text" class="form-input" value="<?php echo e($openAi['secret_key'] ?? ''); ?>"
                                    name="secret_key" placeholder="<?php echo e(translate('Secret Key')); ?>">
                            </div>
                        </div>
                        <div class="flex justify-end mt-10">
                            <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square">
                                <?php echo e(translate('Save')); ?>

                            </button>
                        </div>
                    </form>
                </div>
            </div>
            <!-- START SYSTEM INFORMATION CONTENTS -->
            <div id="system-information" class="tabcontent card hidden">
                <h6 class="leading-none text-xl font-semibold text-heading"><?php echo e(translate('System Information')); ?>

                </h6>
                <div class="overflow-x-auto mt-7">
                    <table
                        class="table-auto border-collapse dk-border-one w-full whitespace-nowrap text-left text-gray-500 dark:text-dark-text text-sm leading-none">
                        <tbody class="divide-y divide-gray-200 dark:divide-dark-border-three">
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('PHP Version')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(phpversion()); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Laravel Version')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(app()->version()); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Server  Software')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(translate('LiteSpeed')); ?></td>
                            </tr>
                            <tr>

                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Server IP Address')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e($_SERVER['REMOTE_ADDR']); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Server Protocol')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e($_SERVER['SERVER_PROTOCOL']); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('HTTP Host')); ?>

                                </td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(env('DB_HOST')); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Database Port')); ?></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(env('DB_PORT')); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('App Environment')); ?></strong></td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(Config::get('app.env')); ?></td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('App Debug')); ?>

                                </td>
                                <td class="px-5 py-3 dk-border-one">
                                    <?php echo e(Config::get('app.debug') == 1 ? translate('True') : translate('False')); ?>

                                </td>
                            </tr>
                            <tr>
                                <td class="px-3 py-3 dk-border-one text-heading dark:text-white font-semibold w-10">
                                    <?php echo e(translate('Timezone')); ?>

                                </td>
                                <td class="px-5 py-3 dk-border-one"><?php echo e(Config::get('app.timezone')); ?></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\backend-setting\index.blade.php ENDPATH**/ ?>