<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        DB::table('system_settings')->updateOrInsert(
            ['key' => 'homepage_about_title'],
            ['value' => 'Built for Nigerian microfinance teams that collect, lend, and grow every day.'],
        );

        DB::table('system_settings')->updateOrInsert(
            ['key' => 'homepage_about_body'],
            ['value' => 'NewKipp Microfinance Solution brings your members, savings, loans, investments, repayments, withdrawals, bill payments, receipts, reports, and staff work into one clean system. Whether you run from one office or many branches, your team can serve members faster, track money clearly, and give members a modern self-service portal.'],
        );
    }

    public function down(): void
    {
        DB::table('system_settings')->where('key', 'homepage_about_title')->update([
            'value' => 'Built for lenders, cooperatives, savings groups, and community finance teams.',
        ]);

        DB::table('system_settings')->where('key', 'homepage_about_body')->update([
            'value' => 'NewKipp Microfinance Solution helps Nigerian platform owners host multiple microfinance companies in one installation while keeping each tenant data, staff, branding, reports, bill payments, and billing isolated.',
        ]);
    }
};
