
<div class="tab-pane mt-3 fade active show " id="general" role="tabpanel" aria-labelledby="general-tab">
    <div class="row">
        <div class="col-12 col-md-6">
            <form action="{{ getAdminPanelUrl() }}/settings/main" method="post">
                {{ csrf_field() }}
                <input type="hidden" name="page" value="financial">
                <input type="hidden" name="name" value="{{ \App\Models\Setting::$registrationPackagesGeneralName }}">

                <div class="form-group custom-switches-stacked">
                    <label class="custom-switch pl-0 d-flex align-items-center">
                        <input type="hidden" name="value[status]" value="0">
                        <input type="checkbox" name="value[status]" id="generalStatusSwitch" value="1" {{ (!empty($pageGeneralSettings) and !empty($pageGeneralSettings['status']) and $pageGeneralSettings['status']) ? 'checked="checked"' : '' }} class="custom-switch-input"/>
                        <span class="custom-switch-indicator"></span>
                        <label class="custom-switch-description mb-0 cursor-pointer" for="generalStatusSwitch">{{ trans('update.registration_packages_general_status') }}</label>
                    </label>
                    <div class="text-gray-500 text-small">{{ trans('update.registration_packages_general_status_hint') }}</div>
                </div>

                <div class="form-group custom-switches-stacked">
                    <label class="custom-switch pl-0 d-flex align-items-center">
                        <input type="hidden" name="value[show_packages_during_registration]" value="0">
                        <input type="checkbox" name="value[show_packages_during_registration]" id="showPackagesDuringRegistrationSwitch" value="1" {{ (!empty($pageGeneralSettings) and !empty($pageGeneralSettings['show_packages_during_registration']) and $pageGeneralSettings['show_packages_during_registration']) ? 'checked="checked"' : '' }} class="custom-switch-input"/>
                        <span class="custom-switch-indicator"></span>
                        <label class="custom-switch-description mb-0 cursor-pointer" for="showPackagesDuringRegistrationSwitch">{{ trans('update.show_packages_during_registration') }}</label>
                    </label>
                    <div class="text-gray-500 text-small">{{ trans('update.show_packages_during_registration_hint') }}</div>
                </div>

                <div class="form-group custom-switches-stacked">
                    <label class="custom-switch pl-0 d-flex align-items-center">
                        <input type="hidden" name="value[force_user_to_select_a_package]" value="0">
                        <input type="checkbox" name="value[force_user_to_select_a_package]" id="forceUserSelectPackageSwitch" value="1" {{ (!empty($pageGeneralSettings) and !empty($pageGeneralSettings['force_user_to_select_a_package']) and $pageGeneralSettings['force_user_to_select_a_package']) ? 'checked="checked"' : '' }} {{ (empty($pageGeneralSettings) or empty($pageGeneralSettings['show_packages_during_registration']) or !$pageGeneralSettings['show_packages_during_registration']) ? 'disabled' : '' }} class="custom-switch-input"/>
                        <span class="custom-switch-indicator"></span>
                        <label class="custom-switch-description mb-0 cursor-pointer" for="forceUserSelectPackageSwitch">{{ trans('update.force_user_to_select_a_package') }}</label>
                    </label>
                    <div class="text-gray-500 text-small">{{ trans('update.force_user_to_select_a_package_hint') }}</div>
                </div>

                <div class="form-group custom-switches-stacked">
                    <label class="custom-switch pl-0 d-flex align-items-center">
                        <input type="hidden" name="value[enable_home_section]" value="0">
                        <input type="checkbox" name="value[enable_home_section]" id="enableHomeSectionSwitch" value="1" {{ (!empty($pageGeneralSettings) and !empty($pageGeneralSettings['enable_home_section']) and $pageGeneralSettings['enable_home_section']) ? 'checked="checked"' : '' }} class="custom-switch-input"/>
                        <span class="custom-switch-indicator"></span>
                        <label class="custom-switch-description mb-0 cursor-pointer" for="enableHomeSectionSwitch">{{ trans('update.enable_home_section') }}</label>
                    </label>
                    <div class="text-gray-500 text-small">{{ trans('update.enable_home_section_hint') }}</div>
                </div>

                <div class="form-group">
                    <label class="input-label">{{ trans("update.right_float_image") }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <button type="button" class="input-group-text admin-file-manager" data-input="image_right_float_image" data-preview="holder">
                                <i class="fa fa-chevron-up"></i>
                            </button>
                        </div>
                        <input type="text" name="value[right_float_image]" id="image_right_float_image" value="{{ (!empty($pageGeneralSettings) and !empty($pageGeneralSettings["right_float_image"])) ? $pageGeneralSettings["right_float_image"] : "" }}" class="form-control"/>
                    </div>
                </div>

                <div class="text-right">
                <button type="submit" class="btn btn-primary">{{ trans('admin/main.save_change') }}</button>
                </div>

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