<?php

namespace Database\Seeders;

use App\Modules\PLATFORM\Settings\Models\Religion;
use Illuminate\Database\Seeder;

class ReligionSeeder extends Seeder
{
    public function run(): void
    {
        $religions = [
            ['name' => 'Buddhism', 'code' => 'buddhism'],
            ['name' => 'Christianity', 'code' => 'christianity'],
            ['name' => 'Islam', 'code' => 'islam'],
            ['name' => 'Hinduism', 'code' => 'hinduism'],
            ['name' => 'Other', 'code' => 'other'],
        ];

        foreach ($religions as $religion) {
            Religion::updateOrCreate(
                ['code' => $religion['code']],
                $religion
            );
        }
    }
}

