<?php

namespace Modules\ClinicCore\Database\Seeders;

use Illuminate\Database\Seeder;
use Modules\ClinicCore\Entities\ClcVaccineType;

class VaccineTypesSeeder extends Seeder
{
    public function run()
    {
        // Treatment / procedure types (the cloned "vaccine" engine drives
        // recurring dermatology treatment courses with due dates & reminders).
        $treatments = [
            // Chemical peels
            ['name' => 'Superficial Chemical Peel (Glycolic)',  'category' => 'chemical_peel',  'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Salicylic Acid Peel',                   'category' => 'chemical_peel',  'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'TCA Peel (Medium Depth)',               'category' => 'chemical_peel',  'species_target' => ['human'], 'valid_for_months' => 3],

            // Laser & light
            ['name' => 'Laser Hair Removal Session',            'category' => 'laser',          'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Q-Switch Laser (Pigmentation)',         'category' => 'laser',          'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Fractional CO2 Laser Resurfacing',      'category' => 'laser',          'species_target' => ['human'], 'valid_for_months' => 3],
            ['name' => 'IPL Photofacial',                       'category' => 'laser',          'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Phototherapy (Narrowband UVB)',         'category' => 'phototherapy',   'species_target' => ['human'], 'valid_for_months' => 0],

            // Injectables
            ['name' => 'Botulinum Toxin (Botox)',               'category' => 'injectable',     'species_target' => ['human'], 'valid_for_months' => 4],
            ['name' => 'Clinicl Filler (Hyaluronic Acid)',       'category' => 'injectable',     'species_target' => ['human'], 'valid_for_months' => 9],
            ['name' => 'Intralesional Corticosteroid',          'category' => 'injectable',     'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Mesotherapy Session',                   'category' => 'injectable',     'species_target' => ['human'], 'valid_for_months' => 1],

            // Aesthetic procedures
            ['name' => 'Microneedling (Collagen Induction)',    'category' => 'procedure',      'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'PRP (Platelet-Rich Plasma)',            'category' => 'procedure',      'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Hydrafacial',                           'category' => 'procedure',      'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Cryotherapy (Lesion Freezing)',         'category' => 'procedure',      'species_target' => ['human'], 'valid_for_months' => 1],
            ['name' => 'Electrocautery',                        'category' => 'procedure',      'species_target' => ['human'], 'valid_for_months' => 0],

            // Diagnostic / minor surgery
            ['name' => 'Skin Biopsy (Punch)',                   'category' => 'diagnostic',     'species_target' => ['human'], 'valid_for_months' => 0],
            ['name' => 'Shave / Excisional Biopsy',             'category' => 'diagnostic',     'species_target' => ['human'], 'valid_for_months' => 0],
            ['name' => 'Patch Test (Allergy)',                  'category' => 'diagnostic',     'species_target' => ['human'], 'valid_for_months' => 0],
        ];

        foreach ($treatments as $v) {
            ClcVaccineType::firstOrCreate(
                ['name' => $v['name'], 'business_id' => null],
                array_merge($v, ['status' => 'active', 'business_id' => null])
            );
        }
    }
}
