<?php

namespace Database\Seeders;

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

class WayToPayForCompanySeed extends Seeder
{
    public function run(): void
    {
        $this->runDataDefault();
        if (env('PROJECT_MODE', 'prod') === 'dev') {
            $this->runDataFake();
        }
    }

    public function runDataDefault()
    {
        $detail = [
            [
                'idway_to_pay' => 3,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 4,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 5,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 6,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 7,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 8,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 9,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 10,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 11,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 12,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 13,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 14,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 15,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ],
            [
                'idway_to_pay' => 16,
                'idtools' => null,
                'cuotas' => 0,
                'idcuotas' => null,
                'idcompany' => 1,
            ]
        ];

        WayToPayForCompany::insert($detail);
    }

    public function runDataFake() {
    }
}
