<?php

namespace Database\Seeders;

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

class EuUkContentSeeder extends Seeder
{
    public function run()
    {
        // Hero Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_hero'],
            [
                'title' => 'EU/UK Financial Aid Support',
                'content' => 'Get expert guidance and support for securing financial aid for your studies in the UK and EU. Our experienced team helps you navigate funding options and application processes.',
                'data' => [
                    'stats' => [
                        ['number' => '5000+', 'label' => 'Students Helped'],
                        ['number' => '£50M+', 'label' => 'Funding Secured'],
                        ['number' => '95%', 'label' => 'Success Rate']
                    ]
                ]
            ]
        );

        // Overview Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_overview'],
            [
                'title' => 'Financial Aid Options Available',
                'content' => 'We offer comprehensive support to help you navigate the complex world of educational financing. Our expert team has helped thousands of students secure funding for their studies in the UK and EU.',
                'data' => [
                    'options' => [
                        [
                            'title' => 'Tuition Fee Loans',
                            'description' => 'Cover your full tuition fees with government-backed loans available for UK and EU students.',
                            'icon' => 'fas fa-pound-sign'
                        ],
                        [
                            'title' => 'Maintenance Loans',
                            'description' => 'Support your living expenses with maintenance loans based on your household income.',
                            'icon' => 'fas fa-home'
                        ],
                        [
                            'title' => 'Scholarships',
                            'description' => 'Merit-based scholarships for outstanding academic performance and achievements.',
                            'icon' => 'fas fa-trophy'
                        ],
                        [
                            'title' => 'Grants & Bursaries',
                            'description' => 'Need-based financial support that doesn\'t need to be repaid.',
                            'icon' => 'fas fa-gift'
                        ]
                    ]
                ]
            ]
        );

        // Eligibility Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_eligibility'],
            [
                'title' => 'Eligibility Requirements',
                'content' => '<p>Understanding eligibility criteria is crucial for a successful application. Here are the key requirements:</p>',
                'data' => [
                    'requirements' => [
                        [
                            'title' => 'Residency Status',
                            'description' => 'Must be a UK or EU resident for at least 3 years before the start of your course.',
                            'icon' => 'fas fa-check-circle'
                        ],
                        [
                            'title' => 'Academic Qualifications',
                            'description' => 'Hold appropriate qualifications for your chosen course level.',
                            'icon' => 'fas fa-check-circle'
                        ],
                        [
                            'title' => 'Age Requirements',
                            'description' => 'Generally must be under 60 at the start of your course for most funding options.',
                            'icon' => 'fas fa-check-circle'
                        ],
                        [
                            'title' => 'Course Eligibility',
                            'description' => 'Your course must be eligible for student finance and meet specific criteria.',
                            'icon' => 'fas fa-check-circle'
                        ],
                        [
                            'title' => 'Previous Study',
                            'description' => 'Restrictions may apply if you have previously received student finance.',
                            'icon' => 'fas fa-check-circle'
                        ],
                        [
                            'title' => 'Financial Assessment',
                            'description' => 'Some funding options are means-tested based on household income.',
                            'icon' => 'fas fa-check-circle'
                        ]
                    ]
                ]
            ]
        );

        // Process Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_process'],
            [
                'title' => 'How We Help You Apply',
                'content' => '<p>Our streamlined process ensures you get the maximum funding available for your studies:</p>',
                'data' => [
                    'steps' => [
                        [
                            'title' => 'Initial Consultation',
                            'description' => 'Free consultation to assess your funding needs and eligibility.'
                        ],
                        [
                            'title' => 'Document Preparation',
                            'description' => 'We help you gather and prepare all required documentation.'
                        ],
                        [
                            'title' => 'Application Submission',
                            'description' => 'Expert assistance with completing and submitting your applications.'
                        ],
                        [
                            'title' => 'Follow-up Support',
                            'description' => 'Ongoing support throughout the application process until approval.'
                        ]
                    ]
                ]
            ]
        );

        // Contact Form Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_contact_form'],
            [
                'title' => 'Get Started Today',
                'content' => '<p>Ready to explore your funding options? Contact our experts for personalized guidance.</p>',
                'data' => [
                    'form_fields' => [
                        [
                            'name' => 'name',
                            'label' => 'Full Name',
                            'type' => 'text',
                            'required' => true,
                            'placeholder' => 'Enter your full name'
                        ],
                        [
                            'name' => 'email',
                            'label' => 'Email Address',
                            'type' => 'email',
                            'required' => true,
                            'placeholder' => 'Enter your email address'
                        ],
                        [
                            'name' => 'phone',
                            'label' => 'Phone Number',
                            'type' => 'tel',
                            'required' => true,
                            'placeholder' => 'Enter your phone number'
                        ],
                        [
                            'name' => 'country',
                            'label' => 'Country of Interest',
                            'type' => 'select',
                            'required' => true,
                            'options' => ['United Kingdom', 'Ireland', 'Netherlands', 'Germany', 'France', 'Other EU Country']
                        ],
                        [
                            'name' => 'study_level',
                            'label' => 'Study Level',
                            'type' => 'select',
                            'required' => true,
                            'options' => ['Undergraduate', 'Postgraduate', 'PhD', 'Foundation']
                        ],
                        [
                            'name' => 'message',
                            'label' => 'Message',
                            'type' => 'textarea',
                            'required' => false,
                            'placeholder' => 'Tell us about your study plans and funding needs...'
                        ]
                    ],
                    'submit_button' => [
                        'text' => 'Get Free Consultation',
                        'class' => 'btn btn-primary btn-lg'
                    ]
                ]
            ]
        );

        // Contact Information Section
        ContentSection::updateOrCreate(
            ['section_key' => 'eu_uk_contact_info'],
            [
                'title' => 'Contact Information',
                'content' => '<p>Get in touch with our EU/UK funding specialists.</p>',
                'data' => [
                    'contact_details' => [
                        [
                            'type' => 'email',
                            'icon' => 'bi-envelope-fill',
                            'label' => 'Email',
                            'value' => 'eu-funding@lecl.com.bd',
                            'link' => 'mailto:eu-funding@lecl.com.bd'
                        ],
                        [
                            'type' => 'phone',
                            'icon' => 'bi-telephone-fill',
                            'label' => 'Phone',
                            'value' => '+880 1234-567890',
                            'link' => 'tel:+8801234567890'
                        ],
                        [
                            'type' => 'hours',
                            'icon' => 'bi-clock-fill',
                            'label' => 'Office Hours',
                            'value' => 'Mon-Fri: 9:00 AM - 6:00 PM (GMT+6)',
                            'link' => null
                        ]
                    ]
                ]
            ]
        );
    }
}