<?php

namespace Database\Seeders;

use App\Models\GlobalSettings;
use App\Models\PayBillLog;
use Illuminate\Database\Seeder;

class GlobalSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            ['name' => 'father-name-required', 'status' => 'disable'],
            ['name' => 'mother-name-required', 'status' => 'disable'],
            ['name' => 'hide-due-otc', 'status' => 'enable'],
            ['name' => 'site-logo-show', 'status' => 'disable'],
            ['name' => 'ssl-commerz-show', 'status' => 'disable'],
            ['name' => 'ssl-commerz-live', 'status' => 'disable'],
            ['name' => 'bkash-show', 'status' => 'disable'],
            ['name' => 'new-user-create-sms', 'status' => 'disable'],
            ['name' => 'otc-auto-due', 'status' => 'enable'],
            ['name' => 'on-create-customer-auto-payment', 'status' => 'disable'],
            ['name' => 'reseller-recharge-paid-option', 'status' => 'disable'],
            ['name' => 'bill-payment-sms', 'status' => 'disable'],
            ['name' => 'auto-payment-sms-send', 'status' => 'disable'],
            ['name' => 'store', 'status' => 'disable'],
            ['name' => 'bill-payment-sms', 'status' => 'disable'],
            ['name' => 'token-create-sms', 'status' => 'disable'],
            ['name' => 'token-close-sms', 'status' => 'disable'],
            ['name' => 'area-dropdown', 'status' => 'enable'],
            ['name' => 'customer-sync', 'status' => 'enable'],
            ['name' => 'package-profile', 'status' => 'enable'],
            // ['name' => 'expire-customer-notify', 'status' => 'disable'],
            ['name' => 'profilePicture', 'status' => 'disable'],
            ['name' => 'help', 'status' => 'disable'],
            ['name' => 'notification', 'status' => 'disable'],
            ['name' => 'parmanent-discount', 'status' => 'enable'],
            ['name' => 'telegram-notify', 'status' => 'disable'],
            ['name' => 'blank-column', 'status' => 'disable'],
            ['name' => 'show-traffice', 'status' => 'enable'],
            ['name' => 'resseller-name-in-package', 'status' => 'disable'],
            ['name' => 'national_id', 'status' => 'disable'],
            ['name' => 'contact_no', 'status' => 'disable'],
            ['name' => 'area', 'status' => 'disable'],
            ['name' => 'mikrotik-connection-type-show', 'status' => 'disable'],
            ['name' => 'package-commission', 'status' => 'disable'],
            ['name' => 'sub-package-commission', 'status' => 'disable'],
            ['name' => 'delete-radius-online-customer', 'status' => 'disable'],
            ['name' => 'print-invoice', 'status' => 'disable'],
            ['name' => 'bkash-tokenized', 'status' => 'disable'],
            ['name' => 'bkash-checkout', 'status' => 'disable'],
            ['name' => 'monthlyBillGenerate', 'status' => 'enable'],
            ['name' => 'dob', 'status' => 'disable'],
            ['name' => 'payment_month_show_in_remark', 'status' => 'disable'],
            ['name' => 'cid_access_for_pending_customer', 'status' => 'disable'],
            ['name' => 'close_token_after_customer_online', 'status' => 'disable'],
            ['name' => 'email-setting', 'status' => 'disable'],
            ['name' => 'singleInvoice', 'status' => 'disable'],
            ['name' => 'reseller_bill_collection', 'status' => 'disable'],
            ['name' => 'largeFontInBillsheet', 'status' => 'disable'],
            ['name' => 'static-ip-address', 'status' => 'disable'],
            ['name' => 'client-mac-binding', 'status' => 'disable'],
            ['name' => 'ignore-mikrotik-check', 'status' => 'disable'],
            ['name' => 'uddokta-pay-show', 'status' => 'disable'],
            ['name' => 'cable-meter-required', 'status' => 'disable'],
            ['name' => 'olt-pon', 'status' => 'disable'],
            ['name' => 'package-name-show-in-customer-dashboard', 'status' => 'enable'],
            ['name' => 'local-user-first-approve', 'status' => 'disable'],
            ['name' => 'cable_meter_required', 'status' => 'disable'],
            ['name' => 'cable_cat5_cat6_required', 'status' => 'disable'],
            ['name' => 'onu_serial_required', 'status' => 'disable'],
            ['name' => 'olt_no_require', 'status' => 'disable'],
            ['name' => 'olt_port_number_required', 'status' => 'disable'],
            ['name' => 'pon_module_required', 'status' => 'disable'],
            ['name' => 'dore_picture_required', 'status' => 'disable'],
            ['name' => 'building_photo_required', 'status' => 'disable'],
            ['name' => 'customer_profile_picture', 'status' => 'disable'],
            ['name' => 'customer_agrement_required', 'status' => 'disable'],
            ['name' => 'customer_package_name_show', 'status' => 'disable'],
            ['name' => 'cable_id_required', 'status' => 'disable'],
            ['name' => 'show-dshboard-graph', 'status' => 'enable'],
            ['name' => 'new_customer_billing_report', 'status' => 'enable'],
            ['name' => 'february_add_2_days', 'status' => 'disable'],
            ['name' => 'expire_billing_change_today_from_billing_date', 'status' => 'disable'],
            ['name' => 'auto_deactive_expire_customer', 'status' => 'disable'],
            ['name' => 'dailyBillGenerate', 'status' => 'disable'],
            ['name' => 'auto-payment-print', 'status' => 'disable'],
            ['name' => 'upay-payment', 'status' => 'disable'],
            ['name' => 'showClientUpDownInfo', 'status' => 'disable'],
            ['name' => 'reseller-online-recharge', 'status' => 'disable'],
            ['name' => 'upay-reseller-recharge', 'status' => 'disable'],
            ['name' => 'bkash-reseller-recharge', 'status' => 'disable'],
            ['name' => 'reseller-recharge-duplicate-protect', 'status' => 'enable'],
            ['name' => 'static-ip-check', 'status' => 'disable'],
            ['name' => 'pop-online-recharge', 'status' => 'disable'],
            ['name' => 'upay-pop-recharge', 'status' => 'disable'],
            ['name' => 'bkash-pop-recharge', 'status' => 'disable'],
            ['name' => 'close-or-deactive-without-mikrotik', 'status' => 'disable'],
            ['name' => 'auto-bill-generate-on-payment', 'status' => 'disable'],
            ['name' => 'all-client-dataTable', 'status' => 'disable'],
            ['name' => 'show-message-to-expire-customer', 'status' => 'disable'],
            ['name' => 'source_name', 'status' => 'disable'],
            ['name' => 'change-payment-date', 'status' => 'disable'],
            ['name' => 'nagad-checkout-client-payment', 'status' => 'disable'],
            ['name' => 'nagad-reseller-recharge', 'status' => 'disable'],
            ['name' => 'online_payment_auto_recharge', 'status' => 'disable'],
            ['name' => 'nagad-pop-recharge', 'status' => 'disable'],
            ['name' => 'online-offline-using-api', 'status' => 'disable'],
            ['name' => 'package-change-price-show', 'status' => 'enable'],
            ['name' => 'account-history-userName-search', 'status' => 'disable'],
            ['name' => 'customer-login-by-cid-mobileNumber', 'status' => 'disable'],
            ['name' => 'radius-upload-download', 'status' => 'disable'],
            ['name' => 'due-history-in-payment', 'status' => 'disable'],
            ['name' => 'money_receipt_no_required', 'status' => 'disable'],
            ['name' => 'Bandwidth-section', 'status' => 'disable'],
            ['name' => 'radius_customer_bandwidth_limit', 'status' => 'disable'],
            ['name' => 'only_local_bandwidth_check', 'status' => 'disable'],
            ['name' => 'static_ip_manage', 'status' => 'disable'],
            ['name' => 'disable_if_bandwidth_limit_over', 'status' => 'disable'],
            ['name' => 'package_limite_quantity', 'status' => 'disable'],
            ['name' => 'mobile_digit_change_on_btrc_export', 'status' => 'disable'],
            ['name' => 'all_information_with_token_close', 'status' => 'disable'],
            ['name' => 'box', 'status' => 'disable'],
            ['name' => 'auto_deactive_check', 'status' => 'disable'],
            ['name' => 'package_price_show_at_client_add', 'status' => 'disable'],
            ['name' => 'otc_payment_with_generale_payment', 'status' => 'disable'],
            ['name' => 'api_bandwidth_usage', 'status' => 'disable'],
            ['name' => 'livespeed-client-portal', 'status' => 'disable'],
            ['name' => 'Bank', 'status' => 'disable'],
            ['name' => 'connect_second_data_base', 'status' => 'disable'],
            ['name' => 'nagad_pgw_implement_sync', 'status' => 'disable'],
            ['name' => 'payroll', 'status' => 'disable'],
            ['name' => 'reseller-client-dynamic-recharge', 'status' => 'disable'],
            ['name' => 'store_up_down_in_client_table', 'status' => 'disable'],
            ['name' => 'surjo-pay-show', 'status' => 'disable'],
            ['name' => 'deactive-custome-datatable', 'status' => 'disable'],
            ['name' => 'Division', 'status' => 'disable'],
            ['name' => 'District', 'status' => 'disable'],
            ['name' => 'Upazila', 'status' => 'disable'],
            ['name' => 'CRM', 'status' => 'disable'],
            ['name' => 'package_rate_in_client_search_excel', 'status' => 'disable'],
            ['name' => 'customer_code', 'status' => 'disable'],
            ['name' => 'login_customer_code_and_password', 'status' => 'disable'],
            ['name' => 'recharge_expire_customer_today', 'status' => 'disable'],
            ['name' => 'check_manager_balance', 'status' => 'enable'],
            ['name' => 'change_payment_amount_client_portal', 'status' => 'disable'],
            ['name' => 'prepaid-bill-by-client-username', 'status' => 'disable'],
            ['name' => 'prepaid-bill-by-client-code', 'status' => 'disable'],
            ['name' => 'all_pay_bill_auto_recharge', 'status' => 'disable'],
            ['name' => 'disable_limit_over_user', 'status' => 'disable'],
            ['name' => 'schedule_package', 'status' => 'disable'],
            ['name' => 'changeOrderInToken', 'status' => 'disable'],
            ['name' => 'deactive_all_expire_customer', 'status' => 'disable'],
            ['name' => 'ping_optical_info_required', 'status' => 'disable'],
            ['name' => 'remote_autoreboot_info_required', 'status' => 'disable'],
            ['name' => 'btrc_report_field_required', 'status' => 'disable'],
            ['name' => 'd2d_recharge_for_reseller', 'status' => 'disable'],
            ['name' => 'token_source', 'status' => 'disable'],
            ['name' => 'only-last-invoice-print', 'status' => 'disable'],
            ['name' => 'manage-map', 'status' => 'disable'],
            ['name' => 'customerPortalReactive', 'status' => 'disable'],
            ['name' => 'onu_router_info', 'status' => 'disable'],
            ['name' => 'free_client', 'status' => 'disable'],
            ['name' => 'd2d_extend_ExpireDate_By_Month', 'status' => 'disable'],
            ['name' => 'Thana', 'status' => 'disable'],
            ['name' => 'local_client_and_reseller_client_bill', 'status' => 'disable'],
            ['name' => 'customResellerSmsGatewaySetup', 'status' => 'disable'],
            ['name' => 'RadiusExpiration', 'status' => 'disable'],
            ['name' => 'ResellerClientOnlineRecharge', 'status' => 'disable'],
            ['name' => 'setClientPaymentAmountToClient', 'status' => 'disable'],
            ['name' => 'setPackagePriceAsDueAmountForPayBill', 'status' => 'disable'],
            ['name' => 'reseller-image', 'status' => 'disable'],
            ['name' => 'disconnect-with-api', 'status' => 'disable'],
            ['name' => 'reseller-can-recharge-from-commission', 'status' => 'disable'],
            ['name' => 'client_import_amount_report', 'status' => 'disable'],
            ['name' => 'countPaymentDateAsOneDayForExpireDate', 'status' => 'disable'],
            ['name' => 'getResellerAreaOnSelectPop', 'status' => 'disable'],
            ['name' => 'hidePopOnCreateArea', 'status' => 'disable'],
            ['name' => 'onu_information_laser', 'status' => 'disable'],
            ['name' => 'save_other_to_own_time_client', 'status' => 'disable'],
            ['name' => 'client_name_in_online_list', 'status' => 'disable'],
            ['name' => 'round_expire_date', 'status' => 'disable'],
            ['name' => 'payment-bill-by-bill', 'status' => 'disable'],
            ['name' => 'singlePageBillInvoice', 'status' => 'disable'],
            ['name' => 'blockPaymentDeActiveNoDue', 'status' => 'disable'],
            ['name' => 'pay-with-eps', 'status' => 'disable'],
            ['name' => 'bulling_name', 'status' => 'disable'],
            ['name' => 'cable_meter_from', 'status' => 'disable'],
            ['name' => 'cable_meter_to', 'status' => 'disable'],
            ['name' => 'extendFromToDayOwnCustomer', 'status' => 'disable'],
            ['name' => 'testing', 'status' => 'disable'],
            ['name' => 'expire_before_expire_date', 'status' => 'disable'],
            ['name' => 'file_up_for_own_other', 'status' => 'disable'],
            ['name' => 'reseller-client-billing', 'status' => 'disable'],
            ['name' => 'import_excel_requred', 'status' => 'disable'],
            ['name' => 'number_validate', 'status' => 'disable'],
            ['name' => 'show-dashboard-customer-summary', 'status' => 'disable'],

        ];

        foreach ($data as $list) {
            if (GlobalSettings::where('name', $list['name'])->count() < 1) {
                GlobalSettings::create([
                    'name'   => $list['name'],
                    'status' => $list['status']
                ]);
            }
        }

        GlobalSettings::where('name', 'expire-customer-notify')->delete();
    }
}
