<?php

namespace Database\Seeders;

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

class SocialLinkSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $links = [
            [
                'platform'  => 'twitter',
                'url'       => 'https://twitter.com/askeriplatform',
                'icon'      => 'fa-twitter',
                'order'     => 1,
                'is_active' => true,
            ],
            [
                'platform'  => 'facebook',
                'url'       => 'https://facebook.com/askeriplatform',
                'icon'      => 'fa-facebook',
                'order'     => 2,
                'is_active' => true,
            ],
            [
                'platform'  => 'instagram',
                'url'       => 'https://instagram.com/askeriplatform',
                'icon'      => 'fa-instagram',
                'order'     => 3,
                'is_active' => true,
            ],
            [
                'platform'  => 'youtube',
                'url'       => 'https://youtube.com/@askeriplatform',
                'icon'      => 'fa-youtube',
                'order'     => 4,
                'is_active' => true,
            ],
            [
                'platform'  => 'telegram',
                'url'       => 'https://t.me/askeriplatform',
                'icon'      => 'fa-telegram',
                'order'     => 5,
                'is_active' => true,
            ],
            [
                'platform'  => 'discord',
                'url'       => 'https://discord.gg/askeriplatform',
                'icon'      => 'fa-discord',
                'order'     => 6,
                'is_active' => true,
            ],
        ];

        foreach ($links as $link) {
            SocialLink::create($link);
        }
    }
}
