<?php

namespace Database\Seeders;

use App\Models\Company;
use Illuminate\Database\Seeder;

class CompanySeeder extends Seeder
{
    public function run(): void
    {
        $companies = [
            'Türk Telekom', 'Vodafone', 'Turkcell', 'D-Smart', 'TürkNet', 'Millenicom', 'KabloNet',
        ];

        foreach ($companies as $i => $name) {
            Company::firstOrCreate(
                ['name' => $name],
                ['status' => 'active', 'sort_order' => $i + 1]
            );
        }
    }
}
