<?php

namespace Modules\ClinicCore\Database\Seeders;

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

class AppointmentTypesSeeder extends Seeder
{
    public function run()
    {
        $types = [
            ['name' => 'General Consultation', 'color' => '#2980b9', 'icon' => 'fa-stethoscope',  'sort_order' => 1],
            ['name' => 'Vaccination',           'color' => '#27ae60', 'icon' => 'fa-syringe',       'sort_order' => 2],
            ['name' => 'Surgery',               'color' => '#c0392b', 'icon' => 'fa-scalpel',       'sort_order' => 3],
            ['name' => 'Grooming',              'color' => '#8e44ad', 'icon' => 'fa-cut',           'sort_order' => 4],
            ['name' => 'Dental',                'color' => '#16a085', 'icon' => 'fa-tooth',         'sort_order' => 5],
            ['name' => 'Clinic',           'color' => '#d35400', 'icon' => 'fa-band-aid',      'sort_order' => 6],
            ['name' => 'X-Ray / Imaging',       'color' => '#2c3e50', 'icon' => 'fa-x-ray',        'sort_order' => 7],
            ['name' => 'Lab / Blood Work',      'color' => '#922b21', 'icon' => 'fa-vial',          'sort_order' => 8],
            ['name' => 'Follow-Up',             'color' => '#3498db', 'icon' => 'fa-redo',          'sort_order' => 9],
            ['name' => 'Emergency',             'color' => '#e67e22', 'icon' => 'fa-ambulance',     'sort_order' => 10],
            ['name' => 'Wellness / Checkup',    'color' => '#1abc9c', 'icon' => 'fa-heart',         'sort_order' => 11],
            ['name' => 'Ophthalmology',         'color' => '#6c3483', 'icon' => 'fa-eye',           'sort_order' => 12],
            ['name' => 'Orthopedics',           'color' => '#7f8c8d', 'icon' => 'fa-bone',          'sort_order' => 13],
            ['name' => 'Microchipping',         'color' => '#2980b9', 'icon' => 'fa-microchip',     'sort_order' => 14],
            ['name' => 'Spay / Neuter',         'color' => '#e74c3c', 'icon' => 'fa-cut',           'sort_order' => 15],
        ];

        foreach ($types as $type) {
            ClcAppointmentType::firstOrCreate(
                ['name' => $type['name'], 'business_id' => null],
                array_merge($type, ['status' => 'active'])
            );
        }
    }
}
