<?php

namespace Database\Seeders;

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

class PageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Page::updateOrCreate(
            ['slug' => 'terms-and-conditions'],
            [
                'title' => 'Terms & Conditions',
                'content' => "Welcome to Swagvio. By accessing or using our website, you agree to comply with and be bound by these Terms & Conditions.\n\n1. About Us\n\nSwagvio is an online platform that allows users to post and view classified advertisements. We act only as a platform provider and are not responsible for user-generated content.\n\n2. Eligibility\n\nThis website is strictly for adults (18+). By using Swagvio, you confirm that you are at least 18 years old."
            ]
        );

        Page::updateOrCreate(
            ['slug' => 'privacy-policy'],
            [
                'title' => 'Privacy Policy',
                'content' => "Welcome to our Privacy Policy. Here at Swagvio, we take your privacy seriously. Here is what you need to know about what we collect and store..."
            ]
        );

        Page::updateOrCreate(
            ['slug' => 'refund-and-cancellation-policy'],
            [
                'title' => 'Refund & Cancellation Policy',
                'content' => "Welcome to our Refund Policy. All purchases on Swagvio are typically final, however under certain circumstances we may offer refunds..."
            ]
        );
    }
}
