<?php

namespace Modules\ClinicCore\Database\Seeders;

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

class AppointmentReasonsSeeder extends Seeder
{
    public function run()
    {
        $reasons = [
            ['name' => 'Routine Check-up',           'sort_order' => 1],
            ['name' => 'Vaccination Due',             'sort_order' => 2],
            ['name' => 'Sick Visit',                  'sort_order' => 3],
            ['name' => 'Follow-Up Visit',             'sort_order' => 4],
            ['name' => 'Pre-Surgery Consultation',    'sort_order' => 5],
            ['name' => 'Post-Surgery Follow-Up',      'sort_order' => 6],
            ['name' => 'Parasite Prevention',         'sort_order' => 7],
            ['name' => 'Dental Cleaning',             'sort_order' => 8],
            ['name' => 'Wound / Injury',              'sort_order' => 9],
            ['name' => 'Nutrition Consultation',      'sort_order' => 10],
            ['name' => 'Behavioral Concern',          'sort_order' => 11],
            ['name' => 'Eye / Ear Problem',           'sort_order' => 12],
            ['name' => 'Skin / Coat Problem',         'sort_order' => 13],
            ['name' => 'Vomiting / Diarrhea',         'sort_order' => 14],
            ['name' => 'Lethargy / Not Eating',       'sort_order' => 15],
            ['name' => 'Pregnancy / Reproductive',    'sort_order' => 16],
            ['name' => 'Spay / Neuter Consultation',  'sort_order' => 17],
            ['name' => 'Microchip Registration',      'sort_order' => 18],
            ['name' => 'Certificate / Documentation', 'sort_order' => 19],
            ['name' => 'Emergency',                   'sort_order' => 20],
        ];

        foreach ($reasons as $reason) {
            ClcAppointmentReason::firstOrCreate(
                ['name' => $reason['name'], 'business_id' => null],
                array_merge($reason, ['status' => 'active'])
            );
        }
    }
}
