<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SiteContentSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_title_line_1'], ['value' => 'Best Online']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_title_line_2'], ['value' => 'Education Expertise']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_description'], ['value' => 'Master in-demand skills with our comprehensive online courses. Learn from world-class experts and transform your career today.']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_stats_success'], ['value' => '98.5%']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_stats_students'], ['value' => '15k+']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'hero_image_url'], ['value' => 'https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80&w=800']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'features_subtitle'], ['value' => 'OUR ADVANTAGES']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'features_title'], ['value' => 'Benefits About Online Learning Expertise']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'footer_about'], ['value' => 'Empowering learners worldwide through high-quality, accessible online education. Join our community of 15k+ students today.']);
        
        // Sessions
        \App\Models\SiteContent::updateOrCreate(['key' => 'sessions_title'], ['value' => 'Training Sessions']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'sessions_subtitle'], ['value' => 'We offer flexible timing options to suit your personal and professional schedule.']);
        
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_morning_time'], ['value' => '9:00 AM - 12:00 PM']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_morning_desc'], ['value' => 'Perfect for early birds looking to start their day with intensive learning.']);
        
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_afternoon_time'], ['value' => '1:00 PM - 4:00 PM']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_afternoon_desc'], ['value' => 'Ideal for students and professionals with flexible daytime schedules.']);
        
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_evening_time'], ['value' => '5:00 PM - 8:00 PM']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_evening_desc'], ['value' => 'Designed for working professionals to upgrade skills after office hours.']);
        
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_weekend_time'], ['value' => 'Saturdays']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'session_weekend_desc'], ['value' => 'Flexible weekend options for those with busy weekday commitments.']);

        // Registration Section
        \App\Models\SiteContent::updateOrCreate(['key' => 'register_header'], ['value' => "We're Committed to your Success."]);
        \App\Models\SiteContent::updateOrCreate(['key' => 'register_desc'], ['value' => "Move from feeling ill-equipped and anxious about imminent catastrophe to outsmarting the bad actors and protecting your organization with confidence."]);
        \App\Models\SiteContent::updateOrCreate(['key' => 'register_form_title'], ['value' => 'Register for a Course']);
        \App\Models\SiteContent::updateOrCreate(['key' => 'register_form_subtitle'], ['value' => "Fill out the form below and we'll get back to you shortly."]);
        
        // Super Admin
        \App\Models\User::updateOrCreate(
            ['email' => 'admin@academia.com'],
            [
                'name' => 'Super Admin',
                'password' => \Hash::make('password'),
                'email_verified_at' => now(),
            ]
        );
    }
}
