<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Football', 'slug' => 'football', 'description' => 'Latest football news and updates', 'image' => 'football.png'],
            ['name' => 'Basketball', 'slug' => 'basketball', 'description' => 'Basketball news and highlights', 'image' => 'basketball.png'],
            ['name' => 'Tennis', 'slug' => 'tennis', 'description' => 'Tennis tournaments and player news', 'image' => 'tennis.png'],
            ['name' => 'Formula 1', 'slug' => 'formula-1', 'description' => 'F1 racing news and results', 'image' => 'f1.png'],
            ['name' => 'Boxing', 'slug' => 'boxing', 'description' => 'Boxing matches and fighter updates', 'image' => 'boxing.png'],
            ['name' => 'Golf', 'slug' => 'golf', 'description' => 'Golf tournaments and player news', 'image' => 'golf.png'],
        ];

        foreach ($categories as $category) {
            Category::create($category);
        }
    }
}