<?php

namespace Database\Seeders;

use App\Models\Setting;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Setting::truncate();
        $settings = [
            ['key'=>'site_name', 'value'=> 'Demo Online Banking'],
            ['key'=>'site_phone', 'value'=> '08107106657'],
            ['key'=>'site_email', 'value'=> 'abramcatalyst@gmail.com'],
            ['key'=>'site_address', 'value'=> 'United Kingdom'],
            ['key'=>'site_url', 'value'=> 'https://catalyst.bank'],
            ['key'=>'site_desc', 'value'=> 'Best online Banking'],
            ['key'=>'site_footer', 'value'=> '&copy; 2022'],
            ['key'=>'enable_login_auth', 'value'=> 1],
            ['key'=>'enable_transfer_codes', 'value'=> 1],
            ['key'=>'enable_deposits', 'value'=> 1],
            ['key'=>'bank_deposit', 'value'=> 1],
            ['key'=>'crypto_deposit', 'value'=> 1],
            ['key'=>'enable_withdrawals', 'value'=> 1],
            ['key'=>'crypto_withdrawal', 'value'=> 1],
            ['key'=>'bank_withdrawal', 'value'=> 1],
            ['key'=>'wire_withdrawal', 'value'=> 1],
            ['key'=>'limited_user_message', 'value'=> ' You can not make any transaction. Please contact support for help.'],
            ['key'=>'global_min_transfer_amount', 'value'=> 50],
            ['key'=>'global_max_transfer_amount', 'value'=> 50000],
            ['key'=>'global_max_transfer_count', 'value'=> 3],
            ['key'=>'global_min_withdrawal', 'value'=> 50],
            ['key'=>'global_max_withdrawal', 'value'=> 50000],
            ['key'=>'global_max_loan_request', 'value'=> 3],
            ['key'=>'global_max_loan_amount', 'value'=> 500000],
            ['key'=>'card_price', 'value'=> 100],
            ['key'=>'imf_email_address', 'value'=> 'email@imf.com'],
            ['key'=>'imf_min_transfer', 'value'=> 40000000],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'key4', 'value'=> ''],
            ['key'=>'key1', 'value'=> ''],
            ['key'=>'btc_wallet_address', 'value'=> 'bcWRfyuyYTYU687896YYGYGJy9kjkhgh5JHGYTHHG'],
            ['key'=>'bank_name', 'value'=> 'United Bank for Africa'],
            ['key'=>'bank_address', 'value'=> 'No 23 Zulu Uk, United Kingdom'],
            ['key'=>'bank_account_number', 'value'=> '2080810836'],
            ['key'=>'bank_account_name', 'value'=> 'Onuche Abraham'],
            ['key'=>'bank_swift_code', 'value'=> '2324-3423-44323'],
            ['key'=>'bank_iban_code', 'value'=> '44420-AA-773434'],
            ['key'=>'mail_host', 'value'=> ''],
            ['key'=>'mail_port', 'value'=> ''],
            ['key'=>'mail_username', 'value'=> ''],
            ['key'=>'mail_password', 'value'=> ''],
            ['key'=>'mail_encryption', 'value'=> 'ssl'],
            ['key'=>'mail_from_address', 'value'=> ''],
            ['key'=>'mail_from_name', 'value'=> 'Catalyst Online Banking'],

        ];

        foreach ($settings as $key => $value) {
            Setting::create($value);
        }
    }
}
