<?php

namespace Database\Seeders;

use App\Enums\DifficultyLevelEnums;
use App\Models\QuestionLevel;
use App\Models\Quiz;
use App\Models\QuizQuestion;
use Illuminate\Database\Seeder;

class QuizSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $this->command->info('Creating Quiz...');
        $categories = \App\Models\QuizCategory::get();
        $levels = \App\Models\Level::all();
        $this->createQuizWithMeaningFull($categories, $levels);
    }

    public function questionSets()
    {
        return [
            [
                'category_id' => 1,
                'quiz' => [
                    [
                        'title' => 'World Capitals',
                        'description' => 'Test your knowledge of world capitals with this comprehensive quiz.
    Challenge yourself to identify the capital cities of every country across the continents.
    Learn interesting facts about each city, including its culture, geography, and historical significance.
    This quiz is perfect for travelers, geography enthusiasts, and students wanting to improve their global awareness.
    Each question will help you remember not just the names, but also unique aspects of these cities.',
                    ],
                    [
                        'title' => 'Famous Personalities',
                        'description' => 'Identify important figures from history and modern times in this engaging quiz.
    From legendary leaders and revolutionaries to influential artists, scientists, and innovators, this quiz covers a wide range of personalities.
    Learn about their contributions, achievements, and the impact they had on the world.
    Enhance your understanding of historical timelines and cultural milestones.
    This quiz is designed to both test and expand your knowledge of remarkable individuals.',
                    ],
                    [
                        'title' => 'Inventions & Discoveries',
                        'description' => 'Dive into the fascinating world of inventions and discoveries with this quiz.
    Explore groundbreaking innovations that have changed the course of history.
    Learn about the brilliant minds behind these inventions and the challenges they overcame.
    Understand how these discoveries shaped science, technology, and everyday life.
    This quiz will test your knowledge and also give you insight into the stories behind major breakthroughs.',
                    ],
                    [
                        'title' => 'Current Affairs',
                        'description' => 'Check your awareness about recent events happening around the world with this quiz.
    Stay updated on global news, politics, science, sports, and cultural happenings.
    Each question challenges you to remember important developments and their implications.
    Enhance your understanding of how current events influence societies and economies.
    This quiz is ideal for anyone wanting to stay informed and knowledgeable about the modern world.',
                    ],
                    [
                        'title' => 'Mixed General Knowledge',
                        'description' => 'A fun and challenging quiz that covers a variety of topics from different fields.
    Test your memory and knowledge on history, science, literature, sports, geography, and more.
    Each question is designed to keep you thinking and learning something new.
    Improve your overall general knowledge while enjoying an unpredictable mix of questions.
    Perfect for quizzes, competitions, or simply challenging yourself with random trivia.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Which of the following are programming languages?',
                        'question_explanation' => 'Several of these are widely used programming languages.',
                        'hints' => 'They are used to write software applications.',
                        'answer_explanation' => 'Python, JavaScript, and PHP are programming languages, while HTML is a markup language and CSS is a style sheet language.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Python', 'value' => 'A'],
                            ['label' => 'JavaScript', 'value' => 'B'],
                            ['label' => 'HTML', 'value' => 'C'],
                            ['label' => 'CSS', 'value' => 'D'],
                            ['label' => 'PHP', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B', 'E'],
                    ],
                    [
                        'question_text' => 'The Great Wall of China can be seen from space.',
                        'question_explanation' => 'This is a myth. It cannot be seen from space with the naked eye.',
                        'hints' => 'It is a myth.',
                        'answer_explanation' => 'False, the Great Wall is not visible from space without aid.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => '____ wrote the play "Romeo and Juliet" and ____ wrote "Pride and Prejudice".',
                        'question_explanation' => 'William Shakespeare wrote "Romeo and Juliet" and Jane Austen wrote "Pride and Prejudice".',
                        'hints' => 'They are both famous English authors.',
                        'answer_explanation' => 'The correct answers are William Shakespeare for the first blank and Jane Austen for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'William Shakespeare', 'value' => 'A'],
                            ['label' => 'Jane Austen', 'value' => 'B'],
                            ['label' => 'Charles Dickens', 'value' => 'C'],
                            ['label' => 'Mark Twain', 'value' => 'D'],
                            ['label' => 'George Orwell', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which continent is the Sahara Desert located in?',
                        'question_explanation' => 'The Sahara Desert is located in Africa.',
                        'hints' => 'It is the second-largest continent.',
                        'answer_explanation' => 'Correct answer is Africa.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Asia', 'value' => 'A'],
                            ['label' => 'Africa', 'value' => 'B'],
                            ['label' => 'Australia', 'value' => 'C'],
                            ['label' => 'South America', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Which of the following planets are known as gas giants?',
                        'question_explanation' => 'Gas giants are large planets primarily composed of hydrogen and helium.',
                        'hints' => 'They are located in the outer part of the solar system.',
                        'answer_explanation' => 'Jupiter and Saturn are classified as gas giants.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Mercury', 'value' => 'A'],
                            ['label' => 'Venus', 'value' => 'B'],
                            ['label' => 'Jupiter', 'value' => 'C'],
                            ['label' => 'Saturn', 'value' => 'D'],
                            ['label' => 'Mars', 'value' => 'E'],
                        ],
                        'correct_answers' => ['C', 'D'],
                    ],
                    [
                        'question_text' => 'Mount Everest is the tallest mountain in the world.',
                        'question_explanation' => 'This is true.',
                        'hints' => 'It is located in Nepal.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which ocean is the largest on Earth?',
                        'question_explanation' => 'The Pacific Ocean is the largest.',
                        'hints' => 'Covers one-third of the Earth.',
                        'answer_explanation' => 'Correct answer is Pacific Ocean.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Atlantic Ocean', 'value' => 'A'],
                            ['label' => 'Indian Ocean', 'value' => 'B'],
                            ['label' => 'Pacific Ocean', 'value' => 'C'],
                            ['label' => 'Arctic Ocean', 'value' => 'D'],
                        ],
                        'correct_answers' => ['C'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The currency of Japan is ____ and the currency of the USA is ____.',
                        'question_explanation' => 'Japan uses the Yen and the USA uses the Dollar.',
                        'hints' => 'Japan starts with Y and USA currency is very common.',
                        'answer_explanation' => 'The correct answers are Yen for Japan and Dollar for USA.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Yen', 'value' => 'A'],
                            ['label' => 'Dollar', 'value' => 'B'],
                            ['label' => 'Euro', 'value' => 'C'],
                            ['label' => 'Pound', 'value' => 'D'],
                            ['label' => 'Rupee', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                ],
            ],
            [
                'category_id' => 2,
                'quiz' => [
                    [
                        'title' => 'Physics Basics',
                        'description' => 'Explore the fundamental concepts of physics in this quiz.
    Learn about motion, forces, energy, and the laws that govern the universe.
    Understand how objects interact, the principles of mechanics, and the basics of thermodynamics.
    This quiz also introduces concepts like electricity, magnetism, and waves in a simple manner.
    Perfect for students, enthusiasts, or anyone curious about how the physical world works.
    Challenge yourself and strengthen your foundation in physics with every question.',
                    ],
                    [
                        'title' => 'Chemistry Essentials',
                        'description' => 'Dive into the fascinating world of chemistry with this quiz.
    Understand atoms, molecules, chemical reactions, and the periodic table.
    Learn about acids, bases, compounds, and the properties of elements.
    Explore the science behind everyday substances and materials around you.
    This quiz is ideal for students, budding chemists, or anyone interested in how matter behaves.
    Test your knowledge and discover the chemistry that shapes our world.',
                    ],
                    [
                        'title' => 'Biology Facts',
                        'description' => 'Test your knowledge about living organisms with this engaging biology quiz.
    Explore topics like cells, genetics, ecosystems, and human anatomy.
    Learn about the diversity of life, evolutionary processes, and the interconnection of species.
    Understand how organisms survive, reproduce, and adapt to their environments.
    Perfect for students, nature enthusiasts, or anyone curious about life sciences.
    Each question is designed to strengthen your understanding of the living world.',
                    ],
                    [
                        'title' => 'Space & Astronomy',
                        'description' => 'Journey into the cosmos with this exciting space and astronomy quiz.
    Learn about planets, stars, galaxies, black holes, and the vast universe beyond Earth.
    Discover the science of celestial phenomena and the history of space exploration.
    Explore topics like the solar system, constellations, and the mysteries of dark matter.
    Ideal for astronomy enthusiasts, students, or anyone fascinated by outer space.
    Each question will expand your knowledge about the wonders of the universe.',
                    ],
                    [
                        'title' => 'Earth Science',
                        'description' => 'Explore the dynamic systems of our planet with this Earth science quiz.
    Learn about geology, weather, oceans, climate, and natural phenomena like earthquakes and volcanoes.
    Understand how Earth’s layers, rocks, and minerals interact to shape the planet’s surface.
    Discover the science behind environmental processes, ecosystems, and natural resources.
    Perfect for students, environmental enthusiasts, or anyone curious about our planet.
    Each question provides insights into the forces and processes that sustain life on Earth.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Which of the following are chemical compounds?',
                        'question_explanation' => 'Compounds are substances made from two or more elements chemically bonded together.',
                        'hints' => 'Look for substances that contain more than one type of element.',
                        'answer_explanation' => 'H₂O (water), CO₂ (carbon dioxide), and NaCl (table salt) are compounds, while O₂ is an element and He is a noble gas element.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => 'H₂O', 'value' => 'A'],
                            ['label' => 'O₂', 'value' => 'B'],
                            ['label' => 'CO₂', 'value' => 'C'],
                            ['label' => 'NaCl', 'value' => 'D'],
                            ['label' => 'He', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'C', 'D'],
                    ],
                    [
                        'question_text' => 'The Earth revolves around the Sun.',
                        'question_explanation' => 'True. The Earth completes one revolution around the Sun in 365 days.',
                        'hints' => 'It takes about a year.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blank: The following scientists contributed significantly to the theory of relativity: ____ and ____.',
                        'question_explanation' => 'Albert Einstein is the main scientist associated with the theory of relativity, and sometimes his collaborators or alternate names are mentioned.',
                        'hints' => 'The first blank is the main physicist, the second blank can be another name or initial for him.',
                        'answer_explanation' => 'The correct answers include Albert Einstein, Einstein, or A. Einstein for the first blank, and optional alternative references for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Albert Einstein', 'value' => 'A'],
                            ['label' => 'A. Einstein', 'value' => 'B'],
                            ['label' => 'Isaac Newton', 'value' => 'C'],
                            ['label' => 'Galileo Galilei', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which gas is most abundant in Earth’s atmosphere?',
                        'question_explanation' => 'Nitrogen makes up about 78% of the Earth’s atmosphere.',
                        'hints' => 'It makes up most of the air.',
                        'answer_explanation' => 'Correct answer is Nitrogen.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Oxygen', 'value' => 'A'],
                            ['label' => 'Carbon Dioxide', 'value' => 'B'],
                            ['label' => 'Nitrogen', 'value' => 'C'],
                            ['label' => 'Hydrogen', 'value' => 'D'],
                        ],
                        'correct_answers' => ['C'],
                    ],
                    [
                        'question_text' => 'Which of the following forces act on objects on Earth?',
                        'question_explanation' => 'Several forces, like gravity and friction, act on objects on Earth.',
                        'hints' => 'Think about forces that pull, resist, or push objects.',
                        'answer_explanation' => 'Gravity pulls objects down, and friction resists motion. Magnetism and electrostatic forces also act in certain contexts, but the primary forces on everyday objects are gravity and friction.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Magnetism', 'value' => 'A'],
                            ['label' => 'Gravity', 'value' => 'B'],
                            ['label' => 'Friction', 'value' => 'C'],
                            ['label' => 'Inertia', 'value' => 'D'],
                            ['label' => 'Electrostatic Force', 'value' => 'E'],
                        ],
                        'correct_answers' => ['B', 'C'],
                    ],
                    [
                        'question_text' => 'Humans have 46 chromosomes.',
                        'question_explanation' => 'Correct. Humans typically have 23 pairs of chromosomes, totaling 46.',
                        'hints' => 'It is less than 50.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which part of the cell contains genetic material?',
                        'question_explanation' => 'The nucleus contains DNA, which is the genetic material.',
                        'hints' => 'It is the brain of the cell.',
                        'answer_explanation' => 'Correct answer is Nucleus.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Cytoplasm', 'value' => 'A'],
                            ['label' => 'Nucleus', 'value' => 'B'],
                            ['label' => 'Mitochondria', 'value' => 'C'],
                            ['label' => 'Cell Wall', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The powerhouse of the cell is ____ and the site of protein synthesis is ____.',
                        'question_explanation' => 'The mitochondria produces energy for the cell, while ribosomes are responsible for protein synthesis.',
                        'hints' => 'The first starts with M, the second starts with R.',
                        'answer_explanation' => 'The correct answers are Mitochondria for the first blank and Ribosome for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Mitochondria', 'value' => 'A'],
                            ['label' => 'Nucleus', 'value' => 'B'],
                            ['label' => 'Ribosome', 'value' => 'C'],
                            ['label' => 'Endoplasmic Reticulum', 'value' => 'D'],
                            ['label' => 'Golgi Apparatus', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'C'],
                    ],
                ],
            ],
            [
                'category_id' => 3,
                'quiz' => [
                    [
                        'title' => 'Ancient Civilizations',
                        'description' => 'Explore the fascinating world of early human civilizations in this quiz.
    Learn about Mesopotamia, Egypt, the Indus Valley, China, and Mesoamerica.
    Discover how these societies developed agriculture, writing, trade, and governance.
    Understand the cultural, technological, and architectural achievements that shaped human history.
    Perfect for history enthusiasts, students, or anyone curious about the origins of civilization.
    Each question challenges your knowledge and helps you appreciate the legacy of ancient societies.',
                    ],
                    [
                        'title' => 'World Wars',
                        'description' => 'Test your knowledge of World War I and II with this detailed quiz.
    Learn about the causes, key battles, and major events that defined the 20th century.
    Discover the leaders, strategies, and turning points that changed the course of history.
    Understand the global impact of these wars on politics, society, and economies.
    Perfect for students, history buffs, or anyone interested in military history.
    Each question will challenge your understanding of these monumental conflicts.',
                    ],
                    [
                        'title' => 'Famous Leaders',
                        'description' => 'Identify historical leaders, rulers, and influential figures from across the world.
    Learn about their achievements, leadership styles, and impact on nations and societies.
    Explore political, military, and cultural leaders from different eras and continents.
    Understand how these figures shaped history through their decisions and actions.
    Perfect for students, history enthusiasts, or anyone interested in leadership and legacy.
    Each question will help you recognize the personalities behind major historical events.',
                    ],
                    [
                        'title' => 'Historic Events',
                        'description' => 'Test your knowledge of key events that shaped world history.
    Explore revolutions, treaties, discoveries, and milestones across different periods.
    Understand the social, political, and economic consequences of these events.
    Learn how individual actions and collective movements influenced history.
    Perfect for students, educators, or anyone passionate about historical knowledge.
    Each question helps you connect important events and understand their lasting impact.',
                    ],
                    [
                        'title' => 'Cultural History',
                        'description' => 'Discover the rich cultural milestones of human history in this quiz.
    Learn about art, music, literature, religion, and traditions across civilizations.
    Explore how culture shaped societies and influenced politics, technology, and daily life.
    Understand the evolution of human expression and creativity through the ages.
    Perfect for students, history lovers, or anyone interested in the heritage of humanity.
    Each question provides insight into the cultural fabric that has defined our world.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: The first Emperor of Rome was ____ and his original name was ____.',
                        'question_explanation' => 'Augustus, also known as Octavian, became the first emperor of Rome after Julius Caesar’s assassination.',
                        'hints' => 'The first blank is his title, the second blank is his birth name.',
                        'answer_explanation' => 'The correct answers are Augustus for the first blank and Octavian for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Julius Caesar', 'value' => 'A'],
                            ['label' => 'Nero', 'value' => 'B'],
                            ['label' => 'Octavian', 'value' => 'C'],
                            ['label' => 'Caligula', 'value' => 'D'],
                            ['label' => 'Augustus', 'value' => 'E'],

                        ],
                        'correct_answers' => ['C', 'E'],
                    ],
                    [
                        'question_text' => 'The American Civil War ended in 1865.',
                        'question_explanation' => 'Correct. The Civil War ended in 1865 with the Union victory.',
                        'hints' => 'It was during the 19th century.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: World War II began in ____ and ended in ____.',
                        'question_explanation' => 'World War II started in 1939 and ended in 1945 after six years of conflict.',
                        'hints' => 'It began in the late 1930s and ended in the mid-1940s.',
                        'answer_explanation' => 'The correct answers are 1939 for the beginning and 1945 for the end of World War II.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => '1939', 'value' => 'A'],
                            ['label' => '1941', 'value' => 'B'],
                            ['label' => '1945', 'value' => 'C'],
                            ['label' => '1937', 'value' => 'D'],
                            ['label' => '1940', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'C'],
                    ],
                    [
                        'question_text' => 'Who discovered America in 1492?',
                        'question_explanation' => 'Christopher Columbus reached the Americas in 1492.',
                        'hints' => 'He sailed under the Spanish flag.',
                        'answer_explanation' => 'Correct answer is Christopher Columbus.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Leif Erikson', 'value' => 'A'],
                            ['label' => 'Christopher Columbus', 'value' => 'B'],
                            ['label' => 'Amerigo Vespucci', 'value' => 'C'],
                            ['label' => 'Ferdinand Magellan', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'The Great Fire of London occurred in 1666.',
                        'question_explanation' => 'The fire destroyed large parts of London in 1666.',
                        'hints' => 'Mid 17th century disaster.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: ____ was known as the Maid of Orléans and she played a key role in the ____ during the 15th century.',
                        'question_explanation' => 'Joan of Arc, known as the Maid of Orléans, led the French army during the Hundred Years’ War.',
                        'hints' => 'The first blank is the name of the historical figure, the second blank is the conflict she was involved in.',
                        'answer_explanation' => 'The correct answers are Joan of Arc for the first blank and Hundred Years’ War for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Joan of Arc', 'value' => 'A'],
                            ['label' => 'Marie Curie', 'value' => 'B'],
                            ['label' => 'Napoleon Bonaparte', 'value' => 'C'],
                            ['label' => 'Hundred Years’ War', 'value' => 'D'],
                            ['label' => 'French Revolution', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'Which empire was ruled by Genghis Khan?',
                        'question_explanation' => 'Genghis Khan founded and ruled the Mongol Empire.',
                        'hints' => 'It was one of the largest empires in history.',
                        'answer_explanation' => 'Correct answer is Mongol Empire.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Ottoman Empire', 'value' => 'A'],
                            ['label' => 'Mongol Empire', 'value' => 'B'],
                            ['label' => 'Roman Empire', 'value' => 'C'],
                            ['label' => 'Persian Empire', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'The Renaissance began in Italy.',
                        'question_explanation' => 'Correct. The Renaissance started in Italy in the 14th century.',
                        'hints' => 'Think of Florence and Venice.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],
            [
                'category_id' => 4,
                'quiz' => [
                    [
                        'title' => 'World Geography',
                        'description' => 'Test your knowledge about countries, capitals, and continents in this comprehensive geography quiz.
    Learn interesting facts about different nations, their cultures, and unique landmarks.
    Explore the continents, understand their climates, populations, and geographic features.
    Perfect for students, travelers, and geography enthusiasts who want to expand their world knowledge.
    Each question will challenge your memory and teach you fascinating tidbits about the world.
    Enhance your global awareness and become more confident in identifying countries and capitals.',
                    ],
                    [
                        'title' => 'Rivers and Lakes',
                        'description' => 'Identify major rivers and lakes across the world with this engaging quiz.
    Learn about the longest rivers, the largest lakes, and their importance to ecosystems and human civilizations.
    Discover interesting facts about water bodies, including their origins, flows, and surrounding geography.
    Perfect for students, nature enthusiasts, and anyone curious about the world’s freshwater systems.
    Each question will help you understand how rivers and lakes shape landscapes and support life.
    Challenge yourself to recognize famous water bodies from every continent.',
                    ],
                    [
                        'title' => 'Mountains and Deserts',
                        'description' => 'Test your knowledge about the tallest mountains and largest deserts around the world.
    Learn about mountain ranges, peaks, and the unique ecosystems that exist in high altitudes.
    Explore deserts, their climate, wildlife, and how humans adapt to these extreme environments.
    Perfect for adventurers, geography students, and nature lovers who enjoy learning about landscapes.
    Each question provides insight into the natural wonders of the Earth and their global significance.
    Strengthen your understanding of the world’s most iconic geographic features.',
                    ],
                    [
                        'title' => 'Climate and Weather',
                        'description' => 'Learn about climates, weather patterns, and natural phenomena in this informative quiz.
    Understand different climate zones, seasonal variations, and meteorological terms.
    Discover extreme weather events, their causes, and their impact on humans and the environment.
    Perfect for students, weather enthusiasts, and anyone interested in Earth sciences.
    Each question helps you grasp the dynamics of our planet’s atmosphere and weather systems.
    Expand your knowledge about how climate influences life across the globe.',
                    ],
                    [
                        'title' => 'Countries and Borders',
                        'description' => 'Test your knowledge about countries, their neighbors, and geopolitical facts with this quiz.
    Learn about borders, territories, and historical changes in nations’ boundaries.
    Discover interesting facts about neighboring countries, conflicts, and alliances.
    Perfect for geography students, travelers, and anyone curious about global politics.
    Each question challenges your understanding of international relations and geographic positioning.
    Enhance your awareness of how countries interact and coexist on the world map.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'What is the largest continent on Earth?',
                        'question_explanation' => 'Asia is the largest continent by area and population.',
                        'hints' => 'It contains China, India, and Russia.',
                        'answer_explanation' => 'Correct answer is Asia.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Africa', 'value' => 'A'],
                            ['label' => 'Asia', 'value' => 'B'],
                            ['label' => 'Europe', 'value' => 'C'],
                            ['label' => 'North America', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'The Nile is the longest river in the world.',
                        'question_explanation' => 'The Nile River stretches over 6,600 km through northeastern Africa.',
                        'hints' => 'It flows through Egypt and Sudan.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The highest mountain in the world is ____ and it is located in the ____.',
                        'question_explanation' => 'Mount Everest is the tallest mountain on Earth, located in the Himalayas.',
                        'hints' => 'The first blank is the mountain name, the second blank is the mountain range.',
                        'answer_explanation' => 'The correct answers are Mount Everest for the first blank and Himalayas for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Mount Everest', 'value' => 'A'],
                            ['label' => 'K2', 'value' => 'B'],
                            ['label' => 'Kangchenjunga', 'value' => 'C'],
                            ['label' => 'Himalayas', 'value' => 'D'],
                            ['label' => 'Andes', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'Which ocean is the largest on Earth?',
                        'question_explanation' => 'The Pacific Ocean covers more than 30% of the Earth’s surface.',
                        'hints' => 'It is between Asia/Australia and the Americas.',
                        'answer_explanation' => 'Correct answer is Pacific Ocean.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Atlantic Ocean', 'value' => 'A'],
                            ['label' => 'Pacific Ocean', 'value' => 'B'],
                            ['label' => 'Indian Ocean', 'value' => 'C'],
                            ['label' => 'Arctic Ocean', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Sahara is the largest desert in the world.',
                        'question_explanation' => 'The Sahara in Africa is the largest hot desert by area.',
                        'hints' => 'It is located in Northern Africa.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which country has the largest population?',
                        'question_explanation' => 'China has the largest population in the world, over 1.4 billion people.',
                        'hints' => 'It is in East Asia.',
                        'answer_explanation' => 'Correct answer is China.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'India', 'value' => 'A'],
                            ['label' => 'United States', 'value' => 'B'],
                            ['label' => 'China', 'value' => 'C'],
                            ['label' => 'Brazil', 'value' => 'D'],
                        ],
                        'correct_answers' => ['C'],
                    ],
                    [
                        'question_text' => 'Mount Kilimanjaro is located in Kenya.',
                        'question_explanation' => 'Mount Kilimanjaro is located in Tanzania, not Kenya.',
                        'hints' => 'It is in East Africa.',
                        'answer_explanation' => 'Correct answer is False.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The capital of Australia is ____ and the largest city is ____.',
                        'question_explanation' => 'Canberra is the capital of Australia, while Sydney is the largest city by population.',
                        'hints' => 'The first blank is the capital, the second blank is the largest city.',
                        'answer_explanation' => 'The correct answers are Canberra for the first blank and Sydney for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Canberra', 'value' => 'A'],
                            ['label' => 'Sydney', 'value' => 'B'],
                            ['label' => 'Melbourne', 'value' => 'C'],
                            ['label' => 'Brisbane', 'value' => 'D'],
                            ['label' => 'Perth', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                ],
            ],
            [
                'category_id' => 5,
                'quiz' => [
                    [
                        'title' => 'Basic Arithmetic',
                        'description' => 'Test your understanding of fundamental arithmetic operations including addition, subtraction, multiplication, and division.
    Learn to solve problems quickly and accurately, which forms the foundation for all higher-level mathematics.
    Explore real-life applications of arithmetic in everyday situations like shopping, budgeting, and measurements.
    Perfect for students, beginners, or anyone wanting to strengthen their numerical skills.
    Each question helps improve your calculation speed, accuracy, and confidence in handling numbers.
    Sharpen your mental math abilities while enjoying this practical and essential quiz.',
                    ],
                    [
                        'title' => 'Algebra',
                        'description' => 'Challenge yourself with questions on algebraic expressions, equations, and inequalities.
    Learn to manipulate variables, solve for unknowns, and understand patterns in mathematical relationships.
    Explore linear, quadratic, and simple polynomial equations to build problem-solving skills.
    Perfect for students, math enthusiasts, or anyone preparing for exams or competitions.
    Each question strengthens your ability to think logically and approach problems step by step.
    Master the fundamentals of algebra while enhancing your analytical thinking.',
                    ],
                    [
                        'title' => 'Geometry',
                        'description' => 'Dive into the world of shapes, angles, lines, and spatial reasoning with this quiz.
    Learn about properties of triangles, circles, polygons, and three-dimensional figures.
    Understand concepts like congruence, similarity, area, volume, and coordinate geometry.
    Perfect for students, competitive exam aspirants, and anyone wanting to improve spatial understanding.
    Each question helps you visualize problems and develop logical approaches to solve them.
    Enhance your geometric intuition while enjoying practical and interesting problems.',
                    ],
                    [
                        'title' => 'Trigonometry',
                        'description' => 'Explore the relationships between angles and sides of triangles through this quiz.
    Learn about sine, cosine, tangent, and their applications in real-world problems.
    Discover how trigonometric identities and functions are used in physics, engineering, and navigation.
    Perfect for high school students, math enthusiasts, or anyone interested in advanced mathematics.
    Each question strengthens your understanding of angles, circles, and periodic functions.
    Improve problem-solving skills while mastering the fundamentals of trigonometry.',
                    ],
                    [
                        'title' => 'Statistics & Probability',
                        'description' => 'Test your knowledge of data analysis, probability, and statistical concepts with this quiz.
    Learn to interpret data, calculate averages, understand distributions, and predict outcomes.
    Explore probability, permutations, combinations, and real-life applications like risk assessment and predictions.
    Perfect for students, data enthusiasts, or anyone preparing for exams involving statistics.
    Each question enhances your analytical thinking and ability to make informed decisions based on data.
    Gain confidence in understanding numbers, patterns, and probabilities through practical examples.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Which of the following numbers are prime?',
                        'question_explanation' => 'Prime numbers are numbers greater than 1 that have no divisors other than 1 and themselves.',
                        'hints' => 'Think about divisibility.',
                        'answer_explanation' => 'The correct answers are 2, 3, and 5 because they are all prime numbers.',
                        'question_type' => \App\Enums\QuestionTypeEnum::MULTIPLE_CHOICE->value,
                        'options' => [
                            ['label' => '2', 'value' => 'A'],
                            ['label' => '3', 'value' => 'B'],
                            ['label' => '4', 'value' => 'C'],
                            ['label' => '5', 'value' => 'D'],
                            ['label' => '6', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B', 'D'],
                    ],
                    [
                        'question_text' => 'The sum of angles in a triangle is 180 degrees.',
                        'question_explanation' => 'Every triangle has angles that add up to 180°.',
                        'hints' => 'Think basic geometry.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Solve for x and y in the following system: 2x + 5 = 15 and y - 3 = 2.',
                        'question_explanation' => 'For the first equation: 2x + 5 = 15 → x = 5. For the second equation: y - 3 = 2 → y = 5.',
                        'hints' => 'Solve each equation separately.',
                        'answer_explanation' => 'The correct answers are x = 5 and y = 5.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => '5', 'value' => 'A'],
                            ['label' => '10', 'value' => 'B'],
                            ['label' => '7', 'value' => 'C'],
                            ['label' => '2', 'value' => 'D'],
                            ['label' => '8', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'What is the area of a rectangle with length 5 and width 3?',
                        'question_explanation' => 'Area = length × width = 5 × 3 = 15.',
                        'hints' => 'Multiply length and width.',
                        'answer_explanation' => 'Correct answer is 15.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => '15', 'value' => 'A'],
                            ['label' => '8', 'value' => 'B'],
                            ['label' => '10', 'value' => 'C'],
                            ['label' => '12', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Sin(90°) equals 1.',
                        'question_explanation' => 'The sine of 90 degrees is 1.',
                        'hints' => 'Think trigonometry unit circle.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which of the following is a prime number?',
                        'question_explanation' => 'A prime number has only two divisors: 1 and itself.',
                        'hints' => 'Check divisibility.',
                        'answer_explanation' => 'Correct answer is 17.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => '15', 'value' => 'A'],
                            ['label' => '16', 'value' => 'B'],
                            ['label' => '17', 'value' => 'C'],
                            ['label' => '18', 'value' => 'D'],
                        ],
                        'correct_answers' => ['C'],
                    ],
                    [
                        'question_text' => 'The sum of first 10 natural numbers is 55.',
                        'question_explanation' => 'Sum = n(n+1)/2 = 10*11/2 = 55.',
                        'hints' => 'Use the formula for sum of n natural numbers.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The value of π (pi) is approximately ____ and the value of e is approximately ____.',
                        'question_explanation' => 'Pi (π) is approximately 3.14159 and Euler’s number (e) is approximately 2.718.',
                        'hints' => 'The first blank starts with 3.14, the second starts with 2.7.',
                        'answer_explanation' => 'The correct answers are 3.15 for π and 2.71 for e as alternative acceptable approximations.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => '3.14', 'value' => 'A'],
                            ['label' => '2.72', 'value' => 'B'],
                            ['label' => '3.15', 'value' => 'C'],
                            ['label' => '2.71', 'value' => 'D'],
                            ['label' => '3.13', 'value' => 'E'],
                        ],
                        'correct_answers' => ['C', 'D'],
                    ],
                ],
            ],
            [
                'category_id' => 6,
                'quiz' => [
                    [
                        'title' => 'Classic Novels',
                        'description' => 'Test your knowledge of famous classic novels and the authors who wrote them.
    Explore timeless works that have shaped literature across centuries, from adventure and romance to tragedy and satire.
    Learn about storylines, characters, historical context, and the impact these novels had on society.
    Perfect for students, book lovers, and literature enthusiasts wanting to deepen their understanding of classics.
    Each question challenges you to recall important details and appreciate the art of storytelling.
    Enhance your literary knowledge while revisiting some of the most influential books ever written.',
                    ],
                    [
                        'title' => 'Poetry',
                        'description' => 'Dive into the world of poets and famous poems with this engaging quiz.
    Explore different poetic forms, styles, and movements from ancient to modern times.
    Learn about the lives of renowned poets and the cultural or historical significance of their works.
    Perfect for students, literature enthusiasts, and anyone who enjoys the beauty of verse.
    Each question helps you recognize literary techniques, famous lines, and memorable poems.
    Improve your appreciation for rhythm, imagery, and the power of poetic expression.',
                    ],
                    [
                        'title' => 'Modern Literature',
                        'description' => 'Test your knowledge of contemporary writers and modern literary works.
    Explore novels, short stories, and essays that reflect current themes, social issues, and cultural trends.
    Learn about popular authors, literary awards, and influential works shaping today’s literary landscape.
    Perfect for students, book clubs, and anyone interested in modern narratives and storytelling.
    Each question strengthens your understanding of contemporary literature and its impact on readers.
    Discover new authors and deepen your appreciation for modern literary creativity.',
                    ],
                    [
                        'title' => 'Shakespeare',
                        'description' => 'Explore the plays, sonnets, and life of William Shakespeare in this quiz.
    Learn about his famous tragedies, comedies, and histories that have left a lasting legacy.
    Discover the themes, characters, and literary techniques used in his works.
    Perfect for students, theatre enthusiasts, and anyone interested in English literature.
    Each question helps you understand the cultural and historical context of Shakespearean literature.
    Enhance your knowledge of one of the greatest writers in literary history.',
                    ],
                    [
                        'title' => 'Literary Terms',
                        'description' => 'Identify literary devices, genres, and writing techniques in this engaging quiz.
    Learn about metaphors, similes, allegory, symbolism, and other key literary concepts.
    Explore different genres, narrative styles, and the tools writers use to create impactful stories.
    Perfect for students, educators, and literature enthusiasts looking to strengthen their literary vocabulary.
    Each question challenges you to recognize and understand the craft behind written works.
    Improve your analytical skills and appreciation for literature through practical examples.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: The novel "Pride and Prejudice" was written by ____ in the ____ century.',
                        'question_explanation' => 'Jane Austen, an early 19th-century English novelist, wrote "Pride and Prejudice".',
                        'hints' => 'The first blank is the author, the second blank is the century number.',
                        'answer_explanation' => 'The correct answers are Jane Austen for the author and 19th for the century.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Jane Austen', 'value' => 'A'],
                            ['label' => 'Charlotte Bronte', 'value' => 'B'],
                            ['label' => 'Emily Bronte', 'value' => 'C'],
                            ['label' => '18th', 'value' => 'D'],
                            ['label' => '19th', 'value' => 'E'],
                        ],
                        'correct_answers' => ['E', 'A'],
                    ],
                    [
                        'question_text' => 'Shakespeare wrote the play "Hamlet".',
                        'question_explanation' => 'This is correct; "Hamlet" is one of Shakespeare’s most famous tragedies.',
                        'hints' => 'It is a tragedy play.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which poet wrote "The Raven"?',
                        'question_explanation' => 'Edgar Allan Poe is the author of "The Raven".',
                        'hints' => 'He is an American poet known for gothic works.',
                        'answer_explanation' => 'Correct answer is Edgar Allan Poe.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Edgar Allan Poe', 'value' => 'A'],
                            ['label' => 'William Wordsworth', 'value' => 'B'],
                            ['label' => 'John Keats', 'value' => 'C'],
                            ['label' => 'Robert Frost', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'The novel "1984" was written by George Orwell.',
                        'question_explanation' => 'Correct; George Orwell wrote the dystopian novel "1984".',
                        'hints' => 'Think of dystopian literature.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: "The Great Gatsby" was written by ____ in the ____ decade.',
                        'question_explanation' => 'F. Scott Fitzgerald, an American author, wrote "The Great Gatsby" in the 1920s.',
                        'hints' => 'The first blank is the author, the second blank is the decade it was written.',
                        'answer_explanation' => 'The correct answers are F. Scott Fitzgerald for the author and 1920s for the decade.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'F. Scott Fitzgerald', 'value' => 'A'],
                            ['label' => 'Ernest Hemingway', 'value' => 'B'],
                            ['label' => 'John Steinbeck', 'value' => 'C'],
                            ['label' => '1910s', 'value' => 'D'],
                            ['label' => '1920s', 'value' => 'E'],
                        ],
                        'correct_answers' => ['E', 'A'],
                    ],
                    [
                        'question_text' => 'The term "metaphor" is a literary device.',
                        'question_explanation' => 'A metaphor is a figure of speech that describes something by comparing it to something else.',
                        'hints' => 'It is a type of figurative language.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which play features the character Othello?',
                        'question_explanation' => 'Othello is a tragedy by William Shakespeare.',
                        'hints' => 'Think of Shakespeare’s works.',
                        'answer_explanation' => 'Correct answer is Othello.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Macbeth', 'value' => 'A'],
                            ['label' => 'Othello', 'value' => 'B'],
                            ['label' => 'Hamlet', 'value' => 'C'],
                            ['label' => 'King Lear', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The author of "Moby-Dick" is ____ and the novel was published in the ____ century.',
                        'question_explanation' => '"Moby-Dick" was written by Herman Melville and published in the 19th century.',
                        'hints' => 'The first blank is the author, the second blank is the century of publication.',
                        'answer_explanation' => 'The correct answers are Herman Melville for the author and 19th for the century.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Herman Melville', 'value' => 'A'],
                            ['label' => 'Nathaniel Hawthorne', 'value' => 'B'],
                            ['label' => 'Mark Twain', 'value' => 'C'],
                            ['label' => '18th', 'value' => 'D'],
                            ['label' => '19th', 'value' => 'E'],
                        ],
                        'correct_answers' => ['E', 'A'],
                    ],
                ],
            ],
            [
                'category_id' => 7,
                'quiz' => [
                    [
                        'title' => 'Football',
                        'description' => 'Test your knowledge about football players, teams, and tournaments from around the world.
    Learn about famous clubs, legendary players, and historic matches that shaped the sport.
    Explore domestic leagues, international competitions, and key football events.
    Perfect for fans, students of sports, and anyone passionate about the beautiful game.
    Each question challenges you to recall statistics, records, and memorable moments in football history.
    Enhance your understanding of tactics, players, and the evolution of the sport across continents.',
                    ],
                    [
                        'title' => 'Olympics',
                        'description' => 'Test your knowledge of the Olympic Games, both Summer and Winter editions.
    Learn about iconic athletes, historic performances, and medal-winning moments.
    Discover the origins of the Olympics, different sporting disciplines, and remarkable records.
    Perfect for sports enthusiasts, students, and anyone interested in the spirit of global competition.
    Each question helps you appreciate the achievements, traditions, and values of the Olympic Games.
    Challenge yourself to remember athletes, host cities, and historic Olympic milestones.',
                    ],
                    [
                        'title' => 'Cricket',
                        'description' => 'Dive into the world of cricket with questions on players, teams, and international matches.
    Learn about cricket rules, formats like Test, ODI, and T20, and famous tournaments such as the World Cup.
    Explore legendary cricketers, historic matches, and memorable records in the sport.
    Perfect for cricket fans, students, and anyone passionate about the game.
    Each question challenges your knowledge of players, scores, and cricket history.
    Enhance your understanding of cricket strategies, teams, and iconic performances.',
                    ],
                    [
                        'title' => 'Tennis',
                        'description' => 'Test your knowledge of tennis tournaments, top players, and historic matches.
    Learn about Grand Slam events, ATP and WTA rankings, and record-breaking performances.
    Discover legendary tennis players and their achievements on different surfaces.
    Perfect for tennis enthusiasts, students, and sports fans wanting to expand their knowledge.
    Each question helps you recall important matches, milestones, and career highlights.
    Improve your understanding of tennis history, famous rivalries, and notable tournaments.',
                    ],
                    [
                        'title' => 'Basketball',
                        'description' => 'Explore the world of basketball with questions about the NBA, players, and history.
    Learn about famous teams, legendary players, and iconic matches in basketball history.
    Discover rules, playing techniques, and major tournaments around the globe.
    Perfect for basketball fans, students, and anyone interested in the sport.
    Each question challenges your knowledge of players’ stats, team records, and memorable moments.
    Enhance your understanding of basketball’s evolution and its cultural impact worldwide.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Which country won the FIFA World Cup in 2018?',
                        'question_explanation' => 'France won the 2018 FIFA World Cup held in Russia.',
                        'hints' => 'Think European champions.',
                        'answer_explanation' => 'Correct answer is France.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Germany', 'value' => 'A'],
                            ['label' => 'Brazil', 'value' => 'B'],
                            ['label' => 'France', 'value' => 'C'],
                            ['label' => 'Argentina', 'value' => 'D'],
                        ],
                        'correct_answers' => ['C'],
                    ],
                    [
                        'question_text' => 'Basketball was invented by James Naismith.',
                        'question_explanation' => 'James Naismith invented basketball in 1891.',
                        'hints' => 'Think Canadian-American physical educator.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The player who holds the record for most Grand Slam titles is ____ and he represents ____.',
                        'question_explanation' => 'Novak Djokovic holds the record for most men’s Grand Slam titles and he is from Serbia.',
                        'hints' => 'The first blank is the player’s name, the second blank is his country.',
                        'answer_explanation' => 'The correct answers are Novak Djokovic for the player and Serbia for the country.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Novak Djokovic', 'value' => 'A'],
                            ['label' => 'Roger Federer', 'value' => 'B'],
                            ['label' => 'Rafael Nadal', 'value' => 'C'],
                            ['label' => 'Serbia', 'value' => 'D'],
                            ['label' => 'Switzerland', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'How many players are there in a cricket team on the field?',
                        'question_explanation' => 'Each cricket team has 11 players on the field during a match.',
                        'hints' => 'Think standard international cricket rules.',
                        'answer_explanation' => 'Correct answer is 11.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => '10', 'value' => 'A'],
                            ['label' => '11', 'value' => 'B'],
                            ['label' => '12', 'value' => 'C'],
                            ['label' => '9', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'The Olympic Games are held every 4 years.',
                        'question_explanation' => 'Olympic Games occur every four years, alternating Summer and Winter Games every 2 years.',
                        'hints' => 'Think about the Olympic cycle.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which country won the ICC Cricket World Cup in 2019?',
                        'question_explanation' => 'England won the 2019 ICC Cricket World Cup.',
                        'hints' => 'It was a famous final match against New Zealand.',
                        'answer_explanation' => 'Correct answer is England.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'India', 'value' => 'A'],
                            ['label' => 'England', 'value' => 'B'],
                            ['label' => 'Australia', 'value' => 'C'],
                            ['label' => 'New Zealand', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Michael Jordan played for the Chicago Bulls.',
                        'question_explanation' => 'Michael Jordan, widely regarded as the greatest basketball player, played most of his career with the Chicago Bulls.',
                        'hints' => 'Think NBA legend.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The major league basketball in the USA is called ____ and the major league football is called ____.',
                        'question_explanation' => 'The NBA is the professional basketball league, while the NFL is the professional American football league in the USA.',
                        'hints' => 'The first blank is a three-letter acronym for basketball, the second blank is a three-letter acronym for football.',
                        'answer_explanation' => 'The correct answers are NBA for basketball and NFL for football.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'NBA', 'value' => 'A'],
                            ['label' => 'NFL', 'value' => 'B'],
                            ['label' => 'MLB', 'value' => 'C'],
                            ['label' => 'NHL', 'value' => 'D'],
                            ['label' => 'WNBA', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                ],
            ],
            [
                'category_id' => 8,
                'quiz' => [
                    [
                        'title' => 'Classic Movies',
                        'description' => 'Test your knowledge of timeless classic movies and legendary actors who defined cinema history.
    Learn about iconic films, unforgettable performances, and the impact they had on the film industry.
    Explore different genres, from romance and drama to action and thriller classics.
    Perfect for movie buffs, students of film, and anyone passionate about cinema.
    Each question challenges you to recall actors, plots, and significant cinematic milestones.
    Enhance your understanding of film history while celebrating the greatest movies ever made.',
                    ],
                    [
                        'title' => 'Oscar Winners',
                        'description' => 'Dive into the world of Academy Awards with questions about Oscar-winning movies and actors.
    Learn about historic wins, record-breaking performances, and legendary directors.
    Explore Best Picture, Best Actor, Best Actress, and other key award categories.
    Perfect for film enthusiasts, students, and anyone interested in the prestige of the Oscars.
    Each question challenges your knowledge of award history, notable moments, and cinematic achievements.
    Celebrate the artists and movies that have shaped the legacy of global cinema.',
                    ],
                    [
                        'title' => 'Movie Quotes',
                        'description' => 'Identify famous movies from their iconic quotes in this engaging quiz.
    Learn about memorable lines, dialogues, and the context in which they were delivered.
    Discover the actors and directors behind these unforgettable cinematic moments.
    Perfect for movie lovers, trivia enthusiasts, and anyone who enjoys testing their film knowledge.
    Each question helps you connect quotes with movies and understand their cultural impact.
    Challenge yourself to recall classic lines and the films that made them famous.',
                    ],
                    [
                        'title' => 'Directors',
                        'description' => 'Test your knowledge about famous film directors and their body of work.
    Learn about influential filmmakers, their styles, and the movies that defined their careers.
    Explore different genres, techniques, and the impact of directors on cinematic history.
    Perfect for film students, enthusiasts, and anyone interested in the art of filmmaking.
    Each question helps you recognize directors’ signature styles and contributions to cinema.
    Enhance your appreciation for the creativity and vision behind the camera.',
                    ],
                    [
                        'title' => 'Animated Films',
                        'description' => 'Explore the world of animated movies, from classic cartoons to modern masterpieces.
    Learn about popular animation studios, iconic characters, and groundbreaking techniques.
    Discover the stories, themes, and artistry behind animated films across generations.
    Perfect for students, animation fans, and anyone who enjoys family-friendly or artistic movies.
    Each question challenges your knowledge of movies, characters, and the history of animation.
    Celebrate the creativity and imagination that bring animated worlds to life.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: The movie "Titanic" was directed by ____ and it was released in the year ____.',
                        'question_explanation' => '"Titanic" was directed by James Cameron and released in 1997.',
                        'hints' => 'The first blank is the director’s name, the second blank is the release year.',
                        'answer_explanation' => 'The correct answers are James Cameron for the director and 1997 for the year.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'James Cameron', 'value' => 'A'],
                            ['label' => 'Steven Spielberg', 'value' => 'B'],
                            ['label' => 'Christopher Nolan', 'value' => 'C'],
                            ['label' => '1997', 'value' => 'D'],
                            ['label' => '1999', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'The movie "The Godfather" was released in 1972.',
                        'question_explanation' => 'Correct, "The Godfather" was released in 1972 and directed by Francis Ford Coppola.',
                        'hints' => 'Classic mafia film.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which actor played Jack Sparrow in "Pirates of the Caribbean"?',
                        'question_explanation' => 'Johnny Depp portrayed Captain Jack Sparrow.',
                        'hints' => 'Famous Hollywood actor.',
                        'answer_explanation' => 'Correct answer is Johnny Depp.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Johnny Depp', 'value' => 'A'],
                            ['label' => 'Orlando Bloom', 'value' => 'B'],
                            ['label' => 'Leonardo DiCaprio', 'value' => 'C'],
                            ['label' => 'Brad Pitt', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'The movie "Avatar" was released before 2010.',
                        'question_explanation' => 'Correct, "Avatar" was released in 2009.',
                        'hints' => 'Think about blockbuster 3D film.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which movie features the quote "I\'ll be back"?',
                        'question_explanation' => 'The quote is from "The Terminator" starring Arnold Schwarzenegger.',
                        'hints' => 'Think sci-fi action film.',
                        'answer_explanation' => 'Correct answer is The Terminator.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'The Terminator', 'value' => 'A'],
                            ['label' => 'Predator', 'value' => 'B'],
                            ['label' => 'Commando', 'value' => 'C'],
                            ['label' => 'Total Recall', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Pixar created the movie "Finding Nemo".',
                        'question_explanation' => 'Pixar Animation Studios produced "Finding Nemo".',
                        'hints' => 'Think animated fish adventure.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The movie "Inception" was directed by ____ and released in the year ____.',
                        'question_explanation' => '"Inception" was directed by Christopher Nolan and released in 2010.',
                        'hints' => 'The first blank is the director, the second blank is the release year.',
                        'answer_explanation' => 'The correct answers are Christopher Nolan for the director and 2010 for the year.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Christopher Nolan', 'value' => 'A'],
                            ['label' => 'Quentin Tarantino', 'value' => 'B'],
                            ['label' => 'Steven Spielberg', 'value' => 'C'],
                            ['label' => '2010', 'value' => 'D'],
                            ['label' => '2012', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'Which animated movie features a superhero family with powers?',
                        'question_explanation' => 'The movie "The Incredibles" features a family of superheroes.',
                        'hints' => 'Pixar superhero family.',
                        'answer_explanation' => 'Correct answer is The Incredibles.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'The Incredible', 'value' => 'A'],
                            ['label' => 'Big Hero 6', 'value' => 'B'],
                            ['label' => 'Frozen', 'value' => 'C'],
                            ['label' => 'WALL-E', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],
            [
                'category_id' => 9,
                'quiz' => [
                    [
                        'title' => 'Classical Music',
                        'description' => 'Test your knowledge about classical music, including famous composers, symphonies, and historic compositions.
    Learn about the lives and works of masters like Beethoven, Mozart, and Bach.
    Explore different musical eras such as Baroque, Classical, and Romantic periods.
    Perfect for music students, enthusiasts, and anyone passionate about orchestral music.
    Each question challenges you to recognize compositions, understand musical forms, and appreciate classical artistry.
    Enhance your knowledge of the history and influence of classical music on modern genres.',
                    ],
                    [
                        'title' => 'Pop Music',
                        'description' => 'Dive into the world of pop music with questions about iconic artists and hit songs from various decades.
    Learn about chart-topping albums, memorable performances, and influential pop culture moments.
    Explore different pop sub-genres and the evolution of popular music over time.
    Perfect for music fans, students, and anyone who loves catchy tunes and memorable lyrics.
    Each question challenges you to recall artists, songs, and landmark pop music achievements.
    Strengthen your understanding of the global impact and trends of pop music.',
                    ],
                    [
                        'title' => 'Rock Music',
                        'description' => 'Test your knowledge of famous rock bands, legendary songs, and iconic performances.
    Learn about the evolution of rock from classic rock and punk to alternative and metal.
    Discover influential musicians, albums, and landmark concerts that shaped rock history.
    Perfect for rock enthusiasts, music students, and anyone interested in the genre’s legacy.
    Each question helps you recognize bands, lyrics, and the cultural impact of rock music.
    Enhance your appreciation for the creativity, energy, and storytelling in rock.',
                    ],
                    [
                        'title' => 'Music Theory',
                        'description' => 'Explore the fundamentals of music theory, including notes, scales, chords, and rhythm.
    Learn how music is structured, how harmonies are formed, and the principles behind composition.
    Understand concepts like key signatures, intervals, and time signatures.
    Perfect for students, aspiring musicians, and anyone looking to deepen their musical knowledge.
    Each question challenges you to apply theory to real musical examples and improve your analytical skills.
    Strengthen your ability to read, interpret, and create music with confidence.',
                    ],
                    [
                        'title' => 'Movie Soundtracks',
                        'description' => 'Identify movies based on their iconic soundtracks and memorable scores.
    Learn about famous composers, musical themes, and the role of music in enhancing film storytelling.
    Discover soundtracks that have become culturally significant and beloved by audiences.
    Perfect for film buffs, music enthusiasts, and anyone who loves cinematic music.
    Each question challenges you to connect melodies, scores, and scenes from movies.
    Enhance your appreciation of how music shapes the emotional impact of films.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: The Fifth Symphony was composed by ____ and it was completed in the year ____.',
                        'question_explanation' => 'Ludwig van Beethoven composed the Fifth Symphony, which was completed in 1808.',
                        'hints' => 'The first blank is the composer’s name, the second blank is the year.',
                        'answer_explanation' => 'The correct answers are Ludwig van Beethoven for the composer and 1808 for the year.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Ludwig van Beethoven', 'value' => 'A'],
                            ['label' => 'Johann Sebastian Bach', 'value' => 'B'],
                            ['label' => 'Wolfgang Amadeus Mozart', 'value' => 'C'],
                            ['label' => '1808', 'value' => 'D'],
                            ['label' => '1812', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'D'],
                    ],
                    [
                        'question_text' => 'The Beatles were a famous rock band from the UK.',
                        'question_explanation' => 'Correct; The Beatles originated in Liverpool, England.',
                        'hints' => 'Famous British band.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Who is known as the "King of Pop"?',
                        'question_explanation' => 'Michael Jackson is referred to as the King of Pop.',
                        'hints' => 'Famous American singer.',
                        'answer_explanation' => 'Correct answer is Michael Jackson.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Elvis Presley', 'value' => 'A'],
                            ['label' => 'Michael Jackson', 'value' => 'B'],
                            ['label' => 'Prince', 'value' => 'C'],
                            ['label' => 'Madonna', 'value' => 'D'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Mozart composed the opera "The Magic Flute".',
                        'question_explanation' => 'Correct, Wolfgang Amadeus Mozart composed "The Magic Flute".',
                        'hints' => 'Famous Austrian composer.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which band released the album "Dark Side of the Moon"?',
                        'question_explanation' => 'Pink Floyd released the iconic album "The Dark Side of the Moon".',
                        'hints' => 'English progressive rock band.',
                        'answer_explanation' => 'Correct answer is Pink Floyd.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Pink Floyd', 'value' => 'A'],
                            ['label' => 'Led Zeppelin', 'value' => 'B'],
                            ['label' => 'Queen', 'value' => 'C'],
                            ['label' => 'The Rolling Stones', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Beethoven was deaf when he composed some of his greatest works.',
                        'question_explanation' => 'True; Beethoven continued composing despite losing his hearing.',
                        'hints' => 'Think about his later symphonies.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The musical symbol for silence is called a ____ and a short pause in music is sometimes indicated by a ____.',
                        'question_explanation' => 'A rest is the musical symbol for silence, while a breve pause or fermata can indicate a short pause in music.',
                        'hints' => 'The first blank is for silence, the second blank is for a short pause.',
                        'answer_explanation' => 'The correct answers are Rest for silence and Pause for a short pause.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Rest', 'value' => 'A'],
                            ['label' => 'Pause', 'value' => 'B'],
                            ['label' => 'Fermata', 'value' => 'C'],
                            ['label' => 'Note', 'value' => 'D'],
                            ['label' => 'Chord', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which animated movie featured the song "Let It Go"?',
                        'question_explanation' => '"Frozen" featured the hit song "Let It Go".',
                        'hints' => 'Disney animated film.',
                        'answer_explanation' => 'Correct answer is Frozen.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Frozen', 'value' => 'A'],
                            ['label' => 'Moana', 'value' => 'B'],
                            ['label' => 'Tangled', 'value' => 'C'],
                            ['label' => 'Coco', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],
            [
                'category_id' => 10,
                'quiz' => [
                    [
                        'title' => 'Computers & Hardware',
                        'description' => 'Test your knowledge about computer components, processors, and hardware innovations.
    Learn about CPUs, GPUs, memory, storage devices, and other essential parts of a computer.
    Explore how hardware has evolved over the decades and the technology behind modern devices.
    Perfect for students, tech enthusiasts, and anyone curious about computer systems.
    Each question challenges you to identify components, understand their functions, and appreciate technological advances.
    Enhance your understanding of how hardware powers the digital world we rely on today.',
                    ],
                    [
                        'title' => 'Internet & Web',
                        'description' => 'Dive into the world of websites, browsers, and the internet with this quiz.
    Learn about web protocols, search engines, social media platforms, and the history of the internet.
    Explore how websites are structured, accessed, and optimized for users.
    Perfect for tech enthusiasts, students, and anyone interested in online technologies.
    Each question helps you understand internet infrastructure, trends, and online innovations.
    Strengthen your knowledge of how the web connects people and information worldwide.',
                    ],
                    [
                        'title' => 'Programming',
                        'description' => 'Test your knowledge of programming languages, algorithms, and coding concepts.
    Learn about popular languages like Python, JavaScript, C++, and their specific applications.
    Explore algorithms, data structures, and problem-solving techniques in programming.
    Perfect for students, developers, and anyone wanting to improve coding skills.
    Each question challenges your understanding of logic, syntax, and programming principles.
    Enhance your ability to write efficient, clean, and effective code across different platforms.',
                    ],
                    [
                        'title' => 'Artificial Intelligence',
                        'description' => 'Explore the world of artificial intelligence, machine learning, and robotics in this quiz.
    Learn about AI concepts, neural networks, algorithms, and real-world applications.
    Discover how AI is transforming industries like healthcare, finance, and transportation.
    Perfect for students, tech enthusiasts, and anyone interested in the future of technology.
    Each question helps you understand AI principles, practical implementations, and ethical considerations.
    Strengthen your knowledge of how machines learn, adapt, and solve complex problems.',
                    ],
                    [
                        'title' => 'Tech Companies',
                        'description' => 'Identify famous technology companies, their founders, and iconic products in this quiz.
    Learn about companies that have shaped the tech industry, from startups to global giants.
    Explore innovations, milestones, and the impact of these companies on everyday life.
    Perfect for tech enthusiasts, business students, and anyone interested in the corporate side of technology.
    Each question challenges you to recognize brands, products, and influential figures in tech history.
    Enhance your knowledge of the companies driving innovation in the modern digital era.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: Microsoft was co-founded by ____ and his partner ____.',
                        'question_explanation' => 'Microsoft was co-founded by Bill Gates and Paul Allen in 1975.',
                        'hints' => 'The first blank is the more famous billionaire philanthropist, the second blank is his co-founder.',
                        'answer_explanation' => 'The correct answers are Bill Gates and Paul Allen.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Bill Gates', 'value' => 'A'],
                            ['label' => 'Steve Jobs', 'value' => 'B'],
                            ['label' => 'Paul Allen', 'value' => 'C'],
                            ['label' => 'Larry Page', 'value' => 'D'],
                            ['label' => 'Mark Zuckerberg', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'C'],
                    ],
                    [
                        'question_text' => 'HTML stands for HyperText Markup Language.',
                        'question_explanation' => 'Correct, HTML is used to structure web content.',
                        'hints' => 'It is the standard language of the web.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which programming language is primarily used for Android app development?',
                        'question_explanation' => 'Java and Kotlin are the main languages used for Android apps.',
                        'hints' => 'Think Java Virtual Machine.',
                        'answer_explanation' => 'Correct answer is Java.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Java', 'value' => 'A'],
                            ['label' => 'Python', 'value' => 'B'],
                            ['label' => 'C++', 'value' => 'C'],
                            ['label' => 'Ruby', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Artificial Intelligence is only used in robots.',
                        'question_explanation' => 'Incorrect, AI is used in software, healthcare, finance, and many fields.',
                        'hints' => 'Think beyond robotics.',
                        'answer_explanation' => 'Correct answer is False.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['B'],
                    ],
                    [
                        'question_text' => 'Which company developed the iPhone?',
                        'question_explanation' => 'Apple Inc. developed the iPhone in 2007.',
                        'hints' => 'Think Cupertino company.',
                        'answer_explanation' => 'Correct answer is Apple.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Apple', 'value' => 'A'],
                            ['label' => 'Microsoft', 'value' => 'B'],
                            ['label' => 'Samsung', 'value' => 'C'],
                            ['label' => 'Google', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Python is a high-level programming language.',
                        'question_explanation' => 'Correct, Python is used for web development, data science, AI, and more.',
                        'hints' => 'Think readable and versatile.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The primary search engine developed by Google is called ____ and Microsoft developed a search engine called ____.',
                        'question_explanation' => 'Google developed Google Search, while Microsoft developed Bing as its search engine.',
                        'hints' => 'The first blank shares the company name, the second blank is Microsoft’s search engine.',
                        'answer_explanation' => 'The correct answers are Google Search for Google and Bing for Microsoft.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Google Search', 'value' => 'A'],
                            ['label' => 'Bing', 'value' => 'B'],
                            ['label' => 'Yahoo', 'value' => 'C'],
                            ['label' => 'DuckDuckGo', 'value' => 'D'],
                            ['label' => 'Ask.com', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which company created the Windows operating system?',
                        'question_explanation' => 'Microsoft developed the Windows OS.',
                        'hints' => 'Think about Redmond, Washington.',
                        'answer_explanation' => 'Correct answer is Microsoft.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Microsoft', 'value' => 'A'],
                            ['label' => 'Apple', 'value' => 'B'],
                            ['label' => 'IBM', 'value' => 'C'],
                            ['label' => 'Oracle', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],
            [
                'category_id' => 11,
                'quiz' => [
                    [
                        'title' => 'Python Basics',
                        'description' => 'Test your knowledge about Python syntax, variables, and fundamental programming concepts.
    Learn how to write simple programs, use data types, and control the flow with loops and conditionals.
    Explore functions, modules, and basic object-oriented programming in Python.
    Perfect for beginners, students, and anyone interested in learning coding with one of the most popular languages.
    Each question helps you strengthen problem-solving skills and logical thinking using Python.
    Enhance your ability to write efficient and readable code while mastering the basics of this versatile language.',
                    ],
                    [
                        'title' => 'Java Fundamentals',
                        'description' => 'Challenge yourself with questions on Java language, object-oriented programming, and core programming concepts.
    Learn about classes, objects, inheritance, interfaces, and exception handling.
    Explore key Java APIs, data types, and standard libraries for building applications.
    Perfect for students, aspiring developers, and anyone preparing for coding exams or interviews.
    Each question helps you understand programming logic, structure, and design principles in Java.
    Strengthen your skills to write robust and maintainable Java applications.',
                    ],
                    [
                        'title' => 'Web Development',
                        'description' => 'Test your knowledge of front-end web development, including HTML, CSS, and JavaScript.
    Learn how to structure web pages, style them beautifully, and add interactive functionality.
    Explore concepts like responsive design, DOM manipulation, and basic frameworks.
    Perfect for students, aspiring web developers, and anyone interested in building modern websites.
    Each question helps you understand practical web development techniques and best practices.
    Enhance your skills to create visually appealing and user-friendly web applications.',
                    ],
                    [
                        'title' => 'Data Structures',
                        'description' => 'Explore questions on essential data structures such as arrays, lists, stacks, queues, trees, and graphs.
    Learn how data is organized, stored, and accessed efficiently in computer programs.
    Understand the advantages, applications, and implementation of different data structures.
    Perfect for students, programmers, and anyone preparing for coding interviews or competitive programming.
    Each question strengthens your problem-solving ability and understanding of efficient data management.
    Mastering data structures is key to building optimized and high-performance software.',
                    ],
                    [
                        'title' => 'Algorithms',
                        'description' => 'Test your knowledge of algorithms, including sorting, searching, and problem-solving techniques.
    Learn how to design, analyze, and implement algorithms for computational tasks.
    Explore concepts such as recursion, complexity analysis, and optimization strategies.
    Perfect for students, developers, and anyone preparing for coding competitions or technical interviews.
    Each question challenges your logical thinking and ability to approach problems efficiently.
    Enhance your programming skills by understanding algorithm design and application in real-world scenarios.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'Fill in the blanks: In Python, a comment starts with ____ and in JavaScript, a single-line comment starts with ____.',
                        'question_explanation' => 'Python uses # for comments, while JavaScript uses // for single-line comments.',
                        'hints' => 'The first blank is Python’s comment symbol, the second blank is JavaScript’s single-line comment symbol.',
                        'answer_explanation' => 'The correct answers are # for Python and // for JavaScript.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => '#', 'value' => 'A'],
                            ['label' => '//', 'value' => 'B'],
                            ['label' => '/* */', 'value' => 'C'],
                            ['label' => '--', 'value' => 'D'],
                            ['label' => '<!-- -->', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Java is an object-oriented programming language.',
                        'question_explanation' => 'Correct, Java is fully object-oriented except for primitive types.',
                        'hints' => 'Think class and objects.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which language is primarily used for front-end web development?',
                        'question_explanation' => 'JavaScript is the main language for front-end development.',
                        'hints' => 'Runs in the browser.',
                        'answer_explanation' => 'Correct answer is JavaScript.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'JavaScript', 'value' => 'A'],
                            ['label' => 'Python', 'value' => 'B'],
                            ['label' => 'C++', 'value' => 'C'],
                            ['label' => 'PHP', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Arrays in most programming languages start with index 0.',
                        'question_explanation' => 'Correct, arrays are zero-indexed in languages like C, Java, and Python.',
                        'hints' => 'Think first element index.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which data structure uses FIFO (First In First Out) principle?',
                        'question_explanation' => 'A queue works on the FIFO principle.',
                        'hints' => 'Opposite of stack.',
                        'answer_explanation' => 'Correct answer is Queue.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Queue', 'value' => 'A'],
                            ['label' => 'Stack', 'value' => 'B'],
                            ['label' => 'Tree', 'value' => 'C'],
                            ['label' => 'Graph', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Recursion is a method where a function calls itself.',
                        'question_explanation' => 'Correct, recursion is self-referential function calls.',
                        'hints' => 'Think factorial or Fibonacci.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The method used to sort an array by repeatedly swapping adjacent elements is called ____ sort, while a faster divide-and-conquer sorting algorithm is called ____ sort.',
                        'question_explanation' => 'The simple swapping algorithm is called Bubble Sort, while the divide-and-conquer algorithm is Quick Sort.',
                        'hints' => 'The first blank repeatedly bubbles the largest element, the second blank uses divide-and-conquer.',
                        'answer_explanation' => 'The correct answers are Bubble Sort for the first blank and Quick Sort for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Bubble Sort', 'value' => 'A'],
                            ['label' => 'Quick Sort', 'value' => 'B'],
                            ['label' => 'Merge Sort', 'value' => 'C'],
                            ['label' => 'Selection Sort', 'value' => 'D'],
                            ['label' => 'Insertion Sort', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which programming language is known for its use in AI and data science?',
                        'question_explanation' => 'Python is widely used in AI and data science due to its libraries.',
                        'hints' => 'Think pandas, NumPy, and TensorFlow.',
                        'answer_explanation' => 'Correct answer is Python.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Python', 'value' => 'A'],
                            ['label' => 'C++', 'value' => 'B'],
                            ['label' => 'Java', 'value' => 'C'],
                            ['label' => 'R', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],
            [
                'category_id' => 11,
                'quiz' => [
                    [
                        'title' => 'Computer Components',
                        'description' => 'Test your knowledge about essential computer components such as CPUs, RAM, motherboards, and power supplies.
    Learn how each component functions and contributes to overall system performance.
    Explore the evolution of hardware and innovations that have transformed computing.
    Perfect for students, tech enthusiasts, and anyone interested in understanding computer systems.
    Each question challenges you to identify components, understand specifications, and their roles in a PC.
    Enhance your understanding of the inner workings of computers and how parts work together.',
                    ],
                    [
                        'title' => 'Storage Devices',
                        'description' => 'Dive into the world of storage devices including hard drives, SSDs, USB drives, and memory cards.
    Learn about storage capacities, speeds, types, and technologies behind modern data storage.
    Understand how storage impacts computing performance and data management.
    Perfect for students, IT enthusiasts, and anyone interested in hardware technology.
    Each question helps you recognize storage devices, their uses, and advantages.
    Strengthen your knowledge of how information is stored, accessed, and preserved digitally.',
                    ],
                    [
                        'title' => 'Networking Hardware',
                        'description' => 'Test your understanding of networking hardware such as routers, switches, hubs, and access points.
    Learn how devices connect computers, manage data traffic, and maintain network stability.
    Explore wired and wireless networking technologies and their applications in homes and businesses.
    Perfect for students, IT professionals, and anyone interested in networking technology.
    Each question challenges you to identify devices, understand their roles, and troubleshoot connectivity issues.
    Enhance your knowledge of network infrastructure and communication protocols.',
                    ],
                    [
                        'title' => 'Input & Output Devices',
                        'description' => 'Explore questions about input and output devices including keyboards, mice, monitors, and printers.
    Learn how these peripherals allow users to interact with computers and transfer information.
    Understand different types of devices, their functions, and technological advancements.
    Perfect for students, tech enthusiasts, and anyone curious about computer peripherals.
    Each question helps you recognize devices, their uses, and integration into computer systems.
    Strengthen your understanding of how humans interact with digital systems effectively.',
                    ],
                    [
                        'title' => 'Hardware Troubleshooting',
                        'description' => 'Test your knowledge of diagnosing and fixing common hardware issues in computers.
    Learn troubleshooting techniques for malfunctioning components, connectivity problems, and system errors.
    Explore methods to identify root causes and apply effective solutions.
    Perfect for IT students, technicians, and anyone interested in practical hardware problem-solving.
    Each question challenges you to think critically about hardware functionality and repair strategies.
    Enhance your ability to maintain and repair computers efficiently and confidently.',
                    ],

                ],
                'questions' => [
                    [
                        'question_text' => 'The CPU is known as the brain of the computer.',
                        'question_explanation' => 'Correct, the CPU performs all instructions and calculations.',
                        'hints' => 'It executes instructions.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which device is used to store data permanently?',
                        'question_explanation' => 'Hard drives and SSDs store data permanently.',
                        'hints' => 'Not RAM or cache.',
                        'answer_explanation' => 'Correct answer is Hard Drive.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Hard Drive', 'value' => 'A'],
                            ['label' => 'RAM', 'value' => 'B'],
                            ['label' => 'Cache', 'value' => 'C'],
                            ['label' => 'CPU', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: The main circuit board of a computer is called the ____, and the central processing unit installed on it is called the ____.',
                        'question_explanation' => 'The motherboard connects all hardware components, while the CPU handles computation and processing.',
                        'hints' => 'The first blank is the base for all components, the second blank is the “brain” of the computer.',
                        'answer_explanation' => 'The correct answers are Motherboard for the first blank and CPU for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Motherboard', 'value' => 'A'],
                            ['label' => 'CPU', 'value' => 'B'],
                            ['label' => 'RAM', 'value' => 'C'],
                            ['label' => 'GPU', 'value' => 'D'],
                            ['label' => 'Power Supply', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'RAM is a type of volatile memory.',
                        'question_explanation' => 'RAM loses data when the computer is turned off.',
                        'hints' => 'Think temporary memory.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Which device is used to connect computers to a network?',
                        'question_explanation' => 'A router is used to connect computers to a network.',
                        'hints' => 'It directs data packets.',
                        'answer_explanation' => 'Correct answer is Router.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Router', 'value' => 'A'],
                            ['label' => 'Printer', 'value' => 'B'],
                            ['label' => 'Monitor', 'value' => 'C'],
                            ['label' => 'Keyboard', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Solid State Drives are faster than traditional Hard Disk Drives.',
                        'question_explanation' => 'True, SSDs have faster read/write speeds.',
                        'hints' => 'Think no moving parts.',
                        'answer_explanation' => 'Correct answer is True.',
                        'question_type' => \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
                        'options' => [
                            ['label' => 'True', 'value' => 'A'],
                            ['label' => 'False', 'value' => 'B'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                    [
                        'question_text' => 'Fill in the blanks: A device that translates digital signals into analog signals is called a ____, while a device that routes data between networks is called a ____.',
                        'question_explanation' => 'A modem connects digital devices to analog communication lines, while a router directs data between networks.',
                        'hints' => 'The first blank is used for internet signal conversion, the second blank is for network data routing.',
                        'answer_explanation' => 'The correct answers are Modem for the first blank and Router for the second blank.',
                        'question_type' => \App\Enums\QuestionTypeEnum::FILL_IN_THE_BLANK->value,
                        'options' => [
                            ['label' => 'Modem', 'value' => 'A'],
                            ['label' => 'Router', 'value' => 'B'],
                            ['label' => 'Switch', 'value' => 'C'],
                            ['label' => 'Hub', 'value' => 'D'],
                            ['label' => 'Firewall', 'value' => 'E'],
                        ],
                        'correct_answers' => ['A', 'B'],
                    ],
                    [
                        'question_text' => 'Which input device is used to point and click on a computer screen?',
                        'question_explanation' => 'A mouse is used to interact with a graphical user interface.',
                        'hints' => 'Not a keyboard.',
                        'answer_explanation' => 'Correct answer is Mouse.',
                        'question_type' => \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
                        'options' => [
                            ['label' => 'Mouse', 'value' => 'A'],
                            ['label' => 'Keyboard', 'value' => 'B'],
                            ['label' => 'Monitor', 'value' => 'C'],
                            ['label' => 'Printer', 'value' => 'D'],
                        ],
                        'correct_answers' => ['A'],
                    ],
                ],
            ],

        ];
    }

    private function createQuizWithMeaningFull($categories, $levels)
    {
        foreach ($this->questionSets() as $questionSet) {
            $has_level = false;
            $random_count = rand(0, 1);
            foreach ($questionSet['quiz'] as $key => $quizData) {
                if ($key == 4) {
                    $has_level = true;
                }

                $quizModel = Quiz::create([
                    'quiz_level' => fake()->randomElement(DifficultyLevelEnums::values()),
                    'image' => '/assets/client/images/quiz/q'.$key + [6, 11][$random_count].'.png',
                    'category_id' => $questionSet['category_id'],
                    'has_level' => $has_level,
                    'point_to_pass' => 50,
                    'banner_image' => '/assets/client/images/quiz/q'.rand(15, 18).'.png',
                    'is_free' => true,
                ]);

                // Add quiz translations
                $quizModel->translations()->create([
                    'locale' => 'en',
                    'title' => $quizData['title'],
                    'description' => $quizData['description'],
                ]);

                // Loop through questions
                if ($has_level) {
                    foreach ($levels as $level) {
                        $this->createQuestions($questionSet['questions'], $quizModel, $level);
                    }
                } else {
                    $this->createQuestions($questionSet['questions'], $quizModel);
                }

            }
        }
    }

    private function createQuestions($questions, $quizModel, $questionLevel = null)
    {
        $level = null;
        if ($questionLevel) {
            $level = QuestionLevel::factory()->create([
                'quiz_id' => $quizModel->id,
                'level_id' => $questionLevel->id,
            ]);
        }
        foreach ($questions as $key => $questionData) {
            $questionModel = QuizQuestion::create([
                'explanation_type' => 'text',
                'quiz_id' => $quizModel->id, // ✅ use created quiz id
                'question_level_id' => $level ? $level->id : null,
                'time_limit' => 2,
                'order' => $key + 1,
                'score' => 10,
                'question_type' => $questionData['question_type'],
                'options' => $questionData['options'],
                'correct_answers' => $questionData['correct_answers'],
            ]);

            // Add question translations
            $questionModel->translations()->create([
                'locale' => 'en',
                'question_text' => $questionData['question_text'],
                'question_explanation' => $questionData['question_explanation'],
                'hints' => $questionData['hints'],
                'answer_explanation' => $questionData['answer_explanation'],
            ]);
        }
    }

    private function setQuestionOptions($questionType)
    {
        $options = [];
        $correct_answers = [];

        if ($questionType == \App\Enums\QuestionTypeEnum::TRUE_FALSE->value) {
            $options = [
                ['label' => 'True', 'value' => 'A'],
                ['label' => 'False', 'value' => 'B'],
            ];
        } else {
            for ($i = 0; $i < 4; $i++) {
                $options[] = [
                    'label' => fake()->sentence(),
                    'value' => chr(65 + $i), // A, B, C, D
                ];
            }
        }

        if (in_array($questionType, [
            \App\Enums\QuestionTypeEnum::TRUE_FALSE->value,
            \App\Enums\QuestionTypeEnum::SINGLE_CHOICE->value,
        ])) {
            // Pick one correct answer only
            $correct_answers = [$options[array_rand($options)]['value']];
        } else {
            // Pick 1..N unique correct answers
            $count = rand(1, count($options) - 1);
            $keys = array_rand($options, $count);
            if (! is_array($keys)) {
                $keys = [$keys];
            }
            $correct_answers = array_map(fn ($key) => $options[$key]['value'], $keys);
        }

        return [
            'options' => $options,
            'correct_answers' => $correct_answers,
        ];
    }

    private function createQuz($categories, $levels)
    {
        foreach ($categories as $category) {
            $has_level = (rand(0, 1) == 1);
            Quiz::factory(count: 10)
                ->create([
                    'category_id' => $category->id,
                    'has_level' => $has_level,
                ])->each(function ($quiz) use (&$has_level, $levels) {
                    if ($has_level) {
                        foreach ($levels as $level) {
                            $level = QuestionLevel::factory()->create([
                                'quiz_id' => $quiz->id,
                                'level_id' => $level->id,
                            ]);
                            $order = ($level->questions()->max('order') ?? 0);
                            foreach (range(1, 5) as $_) {
                                $order++;
                                QuizQuestion::factory()->create([
                                    'quiz_id' => $level->quiz_id,
                                    'question_level_id' => $level->id,
                                    'order' => $order,
                                ]);
                            }
                        }
                    } else {
                        $order = ($quiz->questions()->whereNull('question_level_id')->max('order') ?? 0);
                        foreach (range(1, 5) as $_) {
                            $order++;
                            QuizQuestion::factory()->create([
                                'quiz_id' => $quiz->id,
                                'order' => $order,
                            ]);
                        }
                    }
                });
        }
    }
}
