<?php

namespace Database\Seeders;

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

class PageSeeder extends Seeder
{
    public function run(): void
    {
        $pages = [
            [
                'title' => 'About Us',
                'slug' => 'about',
                'content' => 'Welcome to our sports news website. We provide the latest updates, news, and analysis from the world of sports.',
                'template' => 'page',
                'meta_title' => 'About Us - Sports News Website',
                'meta_description' => 'Learn more about our sports news website and our mission to provide quality sports coverage.',
            ],
            [
                'title' => 'Contact Us',
                'slug' => 'contact',
                'content' => 'Get in touch with us for any inquiries, feedback, or sports news tips.',
                'template' => 'contact',
                'meta_title' => 'Contact Us - Sports News Website',
                'meta_description' => 'Contact our sports news team for inquiries and feedback.',
            ],
            [
                'title' => 'Privacy Policy',
                'slug' => 'privacy',
                'content' => 'This is our privacy policy page with information about how we handle user data.',
                'template' => 'page',
                'meta_title' => 'Privacy Policy - Sports News Website',
                'meta_description' => 'Read our privacy policy to understand how we protect your data.',
            ],
            [
                'title' => 'DMCA',
                'slug' => 'dmca',
                'content' => 'DMCA notice and takedown policy for our website.',
                'template' => 'page',
                'meta_title' => 'DMCA - Sports News Website',
                'meta_description' => 'DMCA policy and procedures for content removal requests.',
            ],
        ];

        foreach ($pages as $page) {
            Page::create($page);
        }
    }
}