<?php

namespace Database\Seeders;

use App\Models\TicketStage;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TicketStageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        TicketStage::truncate();

        // Array of ticket stage names
        $stages = [
            'Marketing Qualified',
            'Sales Qualified Lead',
            'Campaign Assesment',
            'Introductory Meeting',
            'Needs Analysis',
            'Attempted to Ticket',
            'Interested',
            'Closed Won',
            'Closed Lost',
        ];

        // Loop through each stage and create a TicketStage entry
        foreach ($stages as $stage) {
            TicketStage::create([
                'name' => $stage
            ]);
        }
    }
}
