<?php

namespace Database\Seeders;

use App\Models\PaymentSystemModel;
use Illuminate\Database\Seeder;

class PaymentSystemModelSeeder extends Seeder
{
    public function run()
    {
        $syste1 = PaymentSystemModel::create([
            'title' => [
                'uz' => 'To\'lov tizimlari',
                'ru' => 'Платежные системы',
            ],
            'slug' => 'payment_systems',
        ]);

        $syste2 = PaymentSystemModel::create([
            'title' => [
                'uz' => 'Naqt to\'lov',
                'ru' => 'Наличные платежи',
            ],
            'slug' => 'cash',
        ]);

        $syste3 = PaymentSystemModel::create([
            'title' => [
                'uz' => 'Pul ko\'chirmasi',
                'ru' => 'Денежный перевод',
            ],
            'slug' => 'money_transfer',
        ]);

        $syste1->items()->createMany([
            [
                'title' => [
                    'uz' => 'Click',
                    'ru' => 'Click',
                ],
                'logo' => 'click.png',
                'slug' => 'click',
            ],
            [
                'title' => [
                    'uz' => 'Payme',
                    'ru' => 'Payme',
                ],
                'logo' => 'payme.png',
                'slug' => 'payme',
            ],
            [
                'title' => [
                    'uz' => 'Paynet',
                    'ru' => 'Paynet',
                ],
                'logo' => 'paynet.png',
                'slug' => 'paynet',
            ],
            [
                'title' => [
                    'uz' => 'Uzcard',
                    'ru' => 'Uzcard',
                ],
                'logo' => 'uzcard.png',
                'slug' => 'uzcard',
            ],
        ]);

        $syste2->items()->createMany([
            [
                'title' => [
                    'uz' => 'Naqt to\'lov',
                    'ru' => 'Наличные платежи',
                ],
                'logo' => 'cash.png',
                'slug' => 'cash',
            ],
        ]);

        $syste3->items()->createMany([
            [
                'title' => [
                    'uz' => 'Orient Finans Bank',
                    'ru' => 'Orient Finans Bank',
                ],
                'logo' => 'orient.png',
                'slug' => 'orient',
            ],
            [
                'title' => [
                    'uz' => 'Xalq Bank',
                    'ru' => 'Xalq Bank',
                ],
                'logo' => 'xalq.png',
                'slug' => 'xalq',
            ],
            [
                'title' => [
                    'uz' => 'Hamkorbank',
                    'ru' => 'Hamkorbank',
                ],
                'logo' => 'hamkor.png',
                'slug' => 'hamkor',
            ],
        ]);
    }
}
