<?php

namespace Database\Seeders;

use App\Models\Order\Loan\LoanType;
use Illuminate\Database\Seeder;

class LoanTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $datas = [
            [
                'name' => [
                    'tk' => 'Ýaş çatynjalara',
                    'ru' => 'Кредит “Молодожёнам”',
                ],
                'tax' => 1,
                'maturity' => 30,
                'notes' => '',
                'active' => true,
            ], [
                'name' => [
                    'tk' => 'Üpjünçiligine zamunlyk bolan sarp ediş karzy',
                    'ru' => 'Потребительский кредит под поручительство',
                ],
                'tax' => 1,
                'maturity' => 30,
                'notes' => '',
                'active' => true,
            ], [
                'name' => [
                    'tk' => 'Kiçi göwrümli karzlar',
                    'ru' => 'Микро кредиты',
                ],
                'tax' => 1,
                'maturity' => 30,
                'notes' => '',
                'active' => true,
            ], [
                'name' => [
                    'tk' => 'Üpjünçiligine girew emlägi bolan sarp ediş karzy',
                    'ru' => 'Потребительский кредит под залог имущества',
                ],
                'tax' => 1,
                'maturity' => 30,
                'notes' => '',
                'active' => true,
            ], [
                'name' => [
                    'tk' => 'Talyp karzy',
                    'ru' => 'Кредит “Студенческий”',
                ],
                'tax' => 1,
                'maturity' => 30,
                'notes' => '',
                'active' => true,
            ],
        ];

        foreach ($datas as $data) {
            LoanType::create($data);
        }
    }
}
