<?php

namespace Database\Seeders;

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

class TeamSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'name' => json_encode(['en' => 'John Doe', 'ar' => 'جون دو', 'fr' => 'John Doe']),
                'job_title' => json_encode(['en' => 'CEO & Founder', 'ar' => 'الرئيس التنفيذي والمؤسس', 'fr' => 'PDG & Fondateur']),
                'img' => null,
                'status' => 1,
                'show_in_home' => 1,
                'order' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => json_encode(['en' => 'Jane Smith', 'ar' => 'جين سميث', 'fr' => 'Jane Smith']),
                'job_title' => json_encode(['en' => 'CTO', 'ar' => 'مدير التكنولوجيا', 'fr' => 'Directeur Technique']),
                'img' => null,
                'status' => 1,
                'show_in_home' => 1,
                'order' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => json_encode(['en' => 'Mike Johnson', 'ar' => 'مايك جونسون', 'fr' => 'Mike Johnson']),
                'job_title' => json_encode(['en' => 'Marketing Director', 'ar' => 'مدير التسويق', 'fr' => 'Directeur Marketing']),
                'img' => null,
                'status' => 1,
                'show_in_home' => 1,
                'order' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => json_encode(['en' => 'Sarah Williams', 'ar' => 'سارة ويليامز', 'fr' => 'Sarah Williams']),
                'job_title' => json_encode(['en' => 'Design Lead', 'ar' => 'رئيس التصميم', 'fr' => 'Chef de Design']),
                'img' => null,
                'status' => 1,
                'show_in_home' => 1,
                'order' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        foreach ($data as $item) {
            Team::create($item);
        }
    }
}

