<?php

namespace Database\Seeders;

use App\Models\Service;
use Illuminate\Database\Seeder;
class ServiceSeeder extends Seeder
{
    public function run(): void
    {
        $services = [
            'Digital Growth & Performance Marketing',
            'SEO, GEO & AI Strategy',
            'AI Optimisation for Businesses',
            'Branding & Creative Design',
            'Social Media & Paid Advertising',
            'Web & Mobile Product Development',
        ];

        foreach ($services as $index => $name) {
            Service::updateOrCreate(
                ['name' => $name],
                [
                    'is_active'  => true,
                    'sort_order' => $index,
                ]
            );
        }
    }
}
