<?php

namespace Modules\VetClinic\Database\Seeders;

use Illuminate\Database\Seeder;
use Modules\VetClinic\Entities\VcMedicineCategory;

class MedicineCategoriesSeeder extends Seeder
{
    public function run()
    {
        $categories = [
            'Antibiotics',
            'Antiparasitic',
            'Vaccines',
            'Analgesics',
            'Anti-inflammatory',
            'Vitamins & Supplements',
            'Dermatology',
            'Ophthalmology',
            'Dental',
            'Cardiac',
            'Hormonal',
            'Gastrointestinal',
            'Respiratory',
            'Anesthetics',
            'Antifungal',
        ];

        foreach ($categories as $name) {
            VcMedicineCategory::firstOrCreate(
                ['name' => $name, 'business_id' => null],
                ['status' => 'active']
            );
        }
    }
}
