<?php

namespace Database\Seeders;

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

class TaxNameSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $taxNames = [
            [
                'code' => '1',
                'name' => 'PPN',
                'description' => 'Pajak Pertambahan Nilai',
            ],
            [
                'code' => '2',
                'name' => 'PPH 23',
                'description' => 'Pajak Penghasilan Pasal 23',
            ],
            [
                'code' => '3',
                'name' => 'PPH 22',
                'description' => 'Pajak Penghasilan Pasal 22',
            ],
            [
                'code' => '4',
                'name' => 'PPH PASAL 4(2)',
                'description' => 'Pajak Penghasilan Pasal 4 Ayat 2',
            ],
            [
                'code' => '5',
                'name' => 'PPH 21',
                'description' => 'Pajak Penghasilan Pasal 21',
            ],
            [
                'code' => '6',
                'name' => 'PPH 25',
                'description' => 'Pajak Penghasilan Pasal 25',
            ],
            [
                'code' => '7',
                'name' => 'PBJT',
                'description' => 'Pajak Barang dan Jasa Tertentu',
            ],
        ];

        foreach ($taxNames as $tax) {
            TaxName::firstOrCreate(
                ['code' => $tax['code']],
                $tax
            );
        }
    }
}
