<?php

namespace Database\Seeders;

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

class BonusSeeder extends Seeder
{
    public function run(): void
    {
        Bonus::updateOrCreate(
            ['name' => 'Eid Bonus'],
            [
                'eligibility_type' => ['all'],
                'amount_type' => 'percentage',
                'amount' => 50, // 50% of basic
            ]
        );
    }
}
