<?php

namespace Database\Seeders;

use App\Models\System\Settings\Payments\PaymentType;
use Illuminate\Database\Seeder;

class PaymentTypeTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        collect([
            [
                'id' => 1,
                'code' => 'cash',
                'name' => ['en' => 'Cash', 'tk' => 'Nagt', 'ru' => 'Näliçni'],
                'tax' => 0,
                'is_enabled' => true,
                'options' => null,
            ],
            [
                'id' => 2,
                'code' => 'atm',
                'name' => ['en' => 'ATM', 'tk' => 'Terminal', 'ru' => 'ATM'],
                'tax' => 0,
                'is_enabled' => true,
                'options' => null,
            ],
        ])->each(fn ($data) => PaymentType::create($data));
    }
}
