<?php

namespace Database\Seeders;

use App\Models\User;
use App\Models\Category;
use App\Models\Product;
use App\Models\ProductImage;
use App\Models\Service;
use App\Models\BlogPost;
use App\Models\Testimonial;
use App\Models\GalleryItem;
use App\Support\MjsImages;
use Database\Seeders\HeroSlideSeeder;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // 1. Create Users (Admin and Test Customer)
        $admin = User::create([
            'name' => 'MJ Admin',
            'email' => 'admin@mjsbikes.com',
            'password' => bcrypt('admin123'),
            'is_admin' => true,
            'phone' => '+254712345678',
            'address' => 'Nairobi, Kenya',
        ]);

        $customer = User::create([
            'name' => 'John Doe',
            'email' => 'john@example.com',
            'password' => bcrypt('password'),
            'is_admin' => false,
            'phone' => '+254798765432',
            'address' => 'Mombasa Road, Nairobi',
        ]);

        // 2. Create Categories
        $categories = [
            [
                'name' => 'Road Bikes',
                'slug' => 'road-bikes',
                'type' => 'bike',
                'icon' => 'bicycle',
                'description' => 'Lightweight bicycles designed for speed and efficiency on paved roads.'
            ],
            [
                'name' => 'Mountain Bikes',
                'slug' => 'mountain-bikes',
                'type' => 'bike',
                'icon' => 'tree-fill',
                'description' => 'Durable bikes engineered for off-road trails and rugged terrains.'
            ],
            [
                'name' => 'BMX Bikes',
                'slug' => 'bmx-bikes',
                'type' => 'bike',
                'icon' => 'lightning-fill',
                'description' => 'Compact bikes built for stunts, racing, and dirt tracks.'
            ],
            [
                'name' => 'Hybrid Bikes',
                'slug' => 'hybrid-bikes',
                'type' => 'bike',
                'icon' => 'globe',
                'description' => 'Versatile bicycles merging the best of road and mountain features.'
            ],
            [
                'name' => 'Kids Bikes',
                'slug' => 'kids-bikes',
                'type' => 'bike',
                'icon' => 'emoji-smile',
                'description' => 'Safe, fun, and colorful bikes for young riders of all ages.'
            ],
            [
                'name' => 'Used Bikes',
                'slug' => 'used-bikes',
                'type' => 'bike',
                'icon' => 'arrow-repeat',
                'description' => 'Refurbished, pre-loved bicycles offering exceptional value.'
            ],
            [
                'name' => 'Chains & Drivetrain',
                'slug' => 'chains-drivetrain',
                'type' => 'spare_part',
                'icon' => 'gear',
                'description' => 'High-quality bicycle chains, cassettes, and derailleurs.'
            ],
            [
                'name' => 'Tires & Tubes',
                'slug' => 'tires-tubes',
                'type' => 'spare_part',
                'icon' => 'circle',
                'description' => 'Puncture-resistant tires and inner tubes for all wheel sizes.'
            ],
            [
                'name' => 'Brakes & Pads',
                'slug' => 'brakes-pads',
                'type' => 'spare_part',
                'icon' => 'exclamation-octagon',
                'description' => 'Brake pads, rotors, and caliper assemblies for ultimate safety.'
            ],
            [
                'name' => 'Helmets & Protection',
                'slug' => 'helmets-protection',
                'type' => 'accessory',
                'icon' => 'shield',
                'description' => 'Essential protective gear to keep you safe on every ride.'
            ],
            [
                'name' => 'Pumps & Tools',
                'slug' => 'pumps-tools',
                'type' => 'accessory',
                'icon' => 'tools',
                'description' => 'Floor pumps, mini pumps, and multi-tools for on-the-go maintenance.'
            ],
            [
                'name' => 'Lights & Locks',
                'slug' => 'lights-locks',
                'type' => 'accessory',
                'icon' => 'lightbulb',
                'description' => 'High-visibility LED lights and heavy-duty anti-theft locks.'
            ],
            [
                'name' => 'Cycling Apparel',
                'slug' => 'cycling-apparel',
                'type' => 'apparel',
                'icon' => 'briefcase',
                'description' => 'Jerseys, gloves, padded shorts, and specialized cycling shoes.'
            ],
        ];

        $categoryModels = [];
        foreach ($categories as $cat) {
            $categoryModels[$cat['slug']] = Category::create($cat);
        }

        // 3. Create Products
        $products = [
            // Road Bikes
            [
                'category_slug' => 'road-bikes',
                'name' => 'Trek Domane AL 2 Gen 4',
                'brand' => 'Trek',
                'type' => 'bike',
                'price' => 125000.00,
                'discount_price' => 115000.00,
                'description' => 'The Trek Domane AL 2 is a high-performance road bike that is both fast and comfortable. It features a lightweight aluminum frame, carbon fork, and reliable Shimano drivetrain, making it perfect for group rides, commutes, or long weekend adventures.',
                'specifications' => [
                    'Frame Material' => 'Alpha Gold Aluminum',
                    'Fork' => 'Domane carbon, fender mounts',
                    'Drivetrain' => 'Shimano Claris R2000, 8-speed',
                    'Brakes' => 'Tektro dual-pivot alloy mechanical disc',
                    'Tires' => 'Bontrager Hard-Case Lite, 700x32c',
                    'Weight' => '10.55 kg',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 5,
                'frame_size' => '54 cm',
                'wheel_size' => '700c',
                'color' => 'Matte Trek Black',
                'is_featured' => true,
                'availability' => 'available',
            ],
            [
                'category_slug' => 'road-bikes',
                'name' => 'Giant Defy Advanced 2',
                'brand' => 'Giant',
                'type' => 'bike',
                'price' => 280000.00,
                'discount_price' => null,
                'description' => 'Engineered for endurance, this composite-framed road bike delivers smooth ride quality and a seamless integration of disc brakes. Whether you are climbing steep passes or cruising on long open stretches, the Giant Defy keeps you fresh and fast.',
                'specifications' => [
                    'Frame Material' => 'Advanced-Grade Composite carbon',
                    'Fork' => 'Advanced-Grade Composite carbon',
                    'Drivetrain' => 'Shimano 105, 11-speed',
                    'Brakes' => 'Shimano 105 hydraulic disc',
                    'Tires' => 'Giant Gavia Fondo 1, tubeless, 700x32c',
                    'Weight' => '8.75 kg',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 2,
                'frame_size' => 'M/L',
                'wheel_size' => '700c',
                'color' => 'Starry Night Blue',
                'is_featured' => false,
                'availability' => 'available',
            ],

            // Mountain Bikes
            [
                'category_slug' => 'mountain-bikes',
                'name' => 'Specialized Rockhopper Sport 29',
                'brand' => 'Specialized',
                'type' => 'bike',
                'price' => 85000.00,
                'discount_price' => 79000.00,
                'description' => 'The Specialized Rockhopper Sport is ready for off-road exploration. Featuring a lightweight A1 Premium Aluminum frame, SR Suntour XCM suspension fork, and powerful Tektro hydraulic brakes, it offers confidence and performance on any trail.',
                'specifications' => [
                    'Frame Material' => 'A1 premium butted alloy',
                    'Fork' => 'SR Suntour XCM 29, 100mm travel',
                    'Drivetrain' => 'Microshift Advent, 9-speed',
                    'Brakes' => 'Tektro HD-M275 hydraulic disc',
                    'Tires' => 'Fast Trak Sport, 29x2.35"',
                    'Weight' => '13.9 kg',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 8,
                'frame_size' => 'Large',
                'wheel_size' => '29"',
                'color' => 'Forest Green',
                'is_featured' => true,
                'availability' => 'available',
            ],
            [
                'category_slug' => 'mountain-bikes',
                'name' => 'Trek Marlin 7 Gen 3',
                'brand' => 'Trek',
                'type' => 'bike',
                'price' => 98000.00,
                'discount_price' => 92000.00,
                'description' => 'Marlin 7 is a trail-worthy mountain bike with upgraded components. A plush RockShox fork, wide-range 1x10 Shimano Deore drivetrain, and hydraulic brakes make it the ideal choice for new riders who want a fast cross-country hardtail.',
                'specifications' => [
                    'Frame Material' => 'Alpha Silver Aluminum',
                    'Fork' => 'RockShox Judy, coil spring, 100mm travel',
                    'Drivetrain' => 'Shimano Deore M4100, 10-speed',
                    'Brakes' => 'Shimano MT200 hydraulic disc',
                    'Tires' => 'Bontrager XT3 Comp, 29x2.40"',
                    'Weight' => '14.6 kg',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 4,
                'frame_size' => 'Medium',
                'wheel_size' => '29"',
                'color' => 'Galactic Grey',
                'is_featured' => true,
                'availability' => 'available',
            ],

            // BMX Bikes
            [
                'category_slug' => 'bmx-bikes',
                'name' => 'Mongoose Legion L100 freestyle',
                'brand' => 'Mongoose',
                'type' => 'bike',
                'price' => 48000.00,
                'discount_price' => null,
                'description' => 'The Legion L100 is a fully park, street, and dirt-worthy BMX bike. Featuring a full 4130 Chromoly frame, removable brake mounts, and high-volume tires, this bike is built to handle the highest levels of trick riding.',
                'specifications' => [
                    'Frame Material' => '4130 Chromoly',
                    'Gearing' => '25T alloy chainring, 9T driver',
                    'Brakes' => 'U-brake mechanical',
                    'Handlebars' => 'Mongoose 4130 Chromoly, 8.75" rise',
                    'Tires' => '20x2.4" street style',
                    'Weight' => '12.0 kg',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 3,
                'frame_size' => '21" Top Tube',
                'wheel_size' => '20"',
                'color' => 'Raw Silver',
                'is_featured' => false,
                'availability' => 'available',
            ],

            // Hybrid Bikes
            [
                'category_slug' => 'hybrid-bikes',
                'name' => 'Cannondale Quick 4 Hybrid',
                'brand' => 'Cannondale',
                'type' => 'bike',
                'price' => 72000.00,
                'discount_price' => 68000.00,
                'description' => 'A versatile, light, and sporty fitness bike. The Cannondale Quick is built for daily commutes, workout sessions, or casual weekend explorations around town. It includes integrated reflective accents for enhanced safety.',
                'specifications' => [
                    'Frame Material' => 'SmartForm C3 Alloy',
                    'Drivetrain' => 'microSHIFT Advent, 9-speed 1x',
                    'Brakes' => 'Tektro hydro disc',
                    'Connectivity' => 'Integrated wheel sensor with Cannondale App support',
                    'Tires' => 'Schwalbe Spicer, 700x35c',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 6,
                'frame_size' => 'Medium',
                'wheel_size' => '700c',
                'color' => 'Acid Red',
                'is_featured' => false,
                'availability' => 'available',
            ],

            // Used Bikes
            [
                'category_slug' => 'used-bikes',
                'name' => 'Refurbished Trek FX 3 Disc (2023)',
                'brand' => 'Trek',
                'type' => 'bike',
                'price' => 55000.00,
                'discount_price' => 49500.00,
                'description' => 'This pre-owned Trek FX 3 has been fully serviced and refurbished by MJ\'s technicians. All worn cables, pads, and grips have been replaced. It is a premium utility hybrid bike that offers high performance at a fraction of the original price.',
                'specifications' => [
                    'Condition' => 'Excellent (Refurbished)',
                    'Frame Material' => 'Alpha Gold Aluminum',
                    'Drivetrain' => 'Shimano Deore 1x10 speed',
                    'Brakes' => 'Shimano MT200 hydraulic disc',
                    'Tires' => 'Bontrager H2 Hard-Case Lite, 700x32c',
                    'Warranty' => '3 Months MJ\'s Shop Warranty',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 1,
                'frame_size' => 'Large',
                'wheel_size' => '700c',
                'color' => 'Navy Blue',
                'is_featured' => true,
                'availability' => 'available',
            ],

            // Spare Parts
            [
                'category_slug' => 'chains-drivetrain',
                'name' => 'Shimano HG-701 11-Speed Chain',
                'brand' => 'Shimano',
                'type' => 'spare_part',
                'price' => 4500.00,
                'discount_price' => null,
                'description' => 'Designed for 11-speed road and mountain drivetrains, this chain features Shimano\'s SIL-TEC low friction surface treatment on inner and outer plates for ultra-smooth shifts and extended wear life.',
                'specifications' => [
                    'Speed' => '11-Speed compatible',
                    'Links' => '116 Links',
                    'Weight' => '257g',
                    'Technology' => 'SIL-TEC treatment, HG-X11 design',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 20,
                'color' => 'Silver',
            ],
            [
                'category_slug' => 'tires-tubes',
                'name' => 'Kenda Kadence Road Tire 700x25c',
                'brand' => 'Kenda',
                'type' => 'spare_part',
                'price' => 2800.00,
                'discount_price' => 2400.00,
                'description' => 'A durable, folding road tire with excellent cornering traction. Perfect for training, commuting, and endurance road cycling. Features a puncture protective belt under the tread.',
                'specifications' => [
                    'Size' => '700x25c',
                    'PSI' => '110 max',
                    'Tread' => 'Slick with grooved shoulders',
                    'Bead' => 'Folding, lightweight',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 15,
                'color' => 'Black',
            ],

            // Accessories & Apparel
            [
                'category_slug' => 'helmets-protection',
                'name' => 'Giro Fixture MIPS Helmet',
                'brand' => 'Giro',
                'type' => 'accessory',
                'price' => 9500.00,
                'discount_price' => 8800.00,
                'description' => 'The Giro Fixture MIPS helmet brings confident mountain bike style and airy ventilation in a compact design that complements nearly any ride—especially when there\'s dirt under tread. Features MIPS technology for rotational impact protection.',
                'specifications' => [
                    'Protection' => 'Integrated MIPS (Multi-directional Impact Protection System)',
                    'Fit System' => 'Roc Loc Sport MIPS fit dial',
                    'Vents' => '18 vents with internal channeling',
                    'Certification' => 'CPSC Bicycle safety standards',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 10,
                'color' => 'Matte Black',
                'is_featured' => true,
                'availability' => 'available',
            ],
            [
                'category_slug' => 'cycling-apparel',
                'name' => 'Fox Racing Ranger Gloves',
                'brand' => 'Fox Racing',
                'type' => 'apparel',
                'price' => 3500.00,
                'discount_price' => null,
                'description' => 'Like all products in the Ranger collection, the Ranger Gloves offer performance and quality that is typically only found in much more expensive gloves. Features touch-screen compatibility, absorbent thumb wiping surface, and low-profile hook and loop closure.',
                'specifications' => [
                    'Material' => 'Compression molded cuff, conductive index and thumb',
                    'Closure' => 'Velcro wrist strap',
                    'Compatibility' => 'Touch screen friendly',
                ],
                'stock_status' => 'in_stock',
                'stock_quantity' => 12,
                'color' => 'Fox Orange',
                'is_featured' => false,
            ],
        ];

        $imageIndex = 0;
        foreach ($products as $prodData) {
            $catSlug = $prodData['category_slug'];
            unset($prodData['category_slug']);
            
            $category = $categoryModels[$catSlug] ?? null;
            if ($category) {
                $prodData['category_id'] = $category->id;
            }
            
            $prodData['slug'] = Str::slug($prodData['name']);
            $product = Product::create($prodData);
            
            ProductImage::create([
                'product_id' => $product->id,
                'image_path' => MjsImages::path($imageIndex++),
                'is_primary' => true,
            ]);

            ProductImage::create([
                'product_id' => $product->id,
                'image_path' => MjsImages::path($imageIndex++),
                'is_primary' => false,
            ]);
        }

        // 4. Create Services
        $services = [
            [
                'name' => 'General Bike Servicing',
                'slug' => 'general-bike-servicing',
                'description' => 'A complete top-to-bottom checkup. Includes gear tuning, brake adjustments, chain lubrication, tire pressure checks, bolt tightening, and a complete safety check.',
                'estimated_cost' => 2500.00,
                'duration' => '1-2 Hours',
                'image_path' => 'assets/images/services/general_service.jpg',
                'is_active' => true,
            ],
            [
                'name' => 'Bicycle Assembly',
                'slug' => 'bicycle-assembly',
                'description' => 'Bought a bike online in a box? Let our professional mechanics assemble it correctly, align the brakes and gears, and perform a full safety inspection to make it road-ready.',
                'estimated_cost' => 1500.00,
                'duration' => '1 Hour',
                'image_path' => 'assets/images/services/assembly.jpg',
                'is_active' => true,
            ],
            [
                'name' => 'Wheel Truing',
                'slug' => 'wheel-truing',
                'description' => 'Are your wheels wobbly or rubbing? We will align and adjust spoke tensions to bring your wheels back to perfect center and straight alignment.',
                'estimated_cost' => 800.00,
                'duration' => '30 Mins',
                'image_path' => 'assets/images/services/wheel_truing.jpg',
                'is_active' => true,
            ],
            [
                'name' => 'Brake Adjustment & Bleeding',
                'slug' => 'brake-adjustment-bleeding',
                'description' => 'Spongey brakes? Squealing pads? We replace pads, adjust cable tension, or perform complete hydraulic fluid bleed and refill for Shimano, SRAM, and Tektro systems.',
                'estimated_cost' => 1200.00,
                'duration' => '45 Mins',
                'image_path' => 'assets/images/services/brake_service.jpg',
                'is_active' => true,
            ],
            [
                'name' => 'Gear & Drivetrain Tuning',
                'slug' => 'gear-tuning',
                'description' => 'Fix skipping chains and clunky gear changes. Includes derailleur realignment, cable tension adjustments, and hanger alignment check.',
                'estimated_cost' => 1000.00,
                'duration' => '45 Mins',
                'image_path' => 'assets/images/services/gear_tuning.jpg',
                'is_active' => true,
            ],
            [
                'name' => 'Premium Bike Cleaning & Wash',
                'slug' => 'bike-cleaning-wash',
                'description' => 'A thorough wash using bike-safe cleaning agents, followed by drive-train degreasing, rinse, dry, and chain re-lubrication to make it shine.',
                'estimated_cost' => 800.00,
                'duration' => '45 Mins',
                'image_path' => 'assets/images/services/bike_cleaning.jpg',
                'is_active' => true,
            ],
        ];

        foreach ($services as $index => $srv) {
            $srv['image_path'] = MjsImages::path($index + 3);
            Service::create($srv);
        }

        // 5. Create Blog Posts
        $posts = [
            [
                'title' => 'Top 5 Mountain Bikes for Beginners in 2026',
                'slug' => 'top-5-mountain-bikes-for-beginners-2026',
                'content' => 'Choosing your first mountain bike can be a daunting task with so many options available. In this article, we break down what to look for in a starter trail bike. We compare hardtail vs full suspension, explain wheel sizes (29er vs 27.5), and list our top picks available right now at MJ\'s Bikes, including the Trek Marlin and Specialized Rockhopper. A solid aluminum frame, disc brakes, and front suspension are the non-negotiables for an enjoyable start to your off-road journey.',
                'image_path' => MjsImages::path(6),
                'author_id' => $admin->id,
                'is_published' => true,
                'published_at' => now(),
                'meta_title' => 'Best Beginner Mountain Bikes 2026 - MJ\'s Bikes',
                'meta_description' => 'A guide to selecting your first mountain bike. Discover top entry-level hardtails like Trek Marlin and Specialized Rockhopper.',
            ],
            [
                'title' => 'Essential Weekly Bike Maintenance Checklist',
                'slug' => 'essential-weekly-bike-maintenance-checklist',
                'content' => 'Keeping your bicycle clean and well-lubricated is the easiest way to prevent expensive repairs and ensure a safe ride. Follow the "M-Check" method: check your tires for correct air pressure (PSI), test your front and rear brakes, inspect the chain for dryness or rust, and ensure all key bolts (stem, saddle, wheels) are secure. Just 10 minutes of inspection before your weekend ride can save your drivetrain and keep you pedaling smoothly.',
                'image_path' => MjsImages::path(7),
                'author_id' => $admin->id,
                'is_published' => true,
                'published_at' => now()->subDays(2),
                'meta_title' => 'Weekly Bicycle Maintenance Guide - MJ\'s Bikes',
                'meta_description' => 'Learn how to do quick pre-ride checks and basic maintenance to extend the life of your bicycle parts.',
            ],
            [
                'title' => 'Cycling Safety Tips for Busy Urban Streets',
                'slug' => 'cycling-safety-tips-urban-streets',
                'content' => 'Riding in urban traffic requires confidence, defensive riding habits, and the right accessories. Always wear a helmet with rotational impact protection like Giro MIPS, install bright front and rear LED lights (even during daytime), and wear reflective clothing. Be sure to claim your lane when necessary to avoid being "doored" by parked cars, obey traffic lights, and communicate your intentions to drivers with clear hand signals.',
                'image_path' => MjsImages::path(8),
                'author_id' => $admin->id,
                'is_published' => true,
                'published_at' => now()->subDays(5),
                'meta_title' => 'City Cycling Safety Rules - MJ\'s Bikes',
                'meta_description' => 'Must-know safety practices, hand signals, and essential safety gear for commuting safely by bicycle in Kenya.',
            ],
        ];

        foreach ($posts as $post) {
            BlogPost::create($post);
        }

        // 6. Testimonials
        $testimonials = [
            [
                'customer_name' => 'Wanjiku Kamau',
                'rating' => 5,
                'review_text' => 'The Trek Marlin 7 I bought here is amazing! The staff helped me select the perfect frame size and set up the suspension for my weight. Highly recommend their customer service!',
                'image_path' => MjsImages::path(9),
                'is_approved' => true,
            ],
            [
                'customer_name' => 'David Ochieng',
                'rating' => 5,
                'review_text' => 'I booked a General Bike Servicing online. They picked up my bike, did gear tuning, brake adjustments, and washed it. It rides like brand new. Fantastic and convenient!',
                'image_path' => MjsImages::path(10),
                'is_approved' => true,
            ],
            [
                'customer_name' => 'Fatuma Yusuf',
                'rating' => 4,
                'review_text' => 'Excellent shop for cycling spare parts. Got my Shimano chain and Kenda tires at very reasonable prices. The WhatsApp support is very responsive.',
                'image_path' => MjsImages::path(11),
                'is_approved' => true,
            ],
        ];

        foreach ($testimonials as $testi) {
            Testimonial::create($testi);
        }

        // 7. Gallery Items
        $gallery = [
            ['image_path' => MjsImages::path(12), 'caption' => 'Welcome to MJ\'s Bikes & Accessories showroom!', 'category' => 'shop'],
            ['image_path' => MjsImages::path(13), 'caption' => 'Our professional repair bay and specialized tools.', 'category' => 'repairs'],
            ['image_path' => MjsImages::path(14), 'caption' => 'Another happy customer taking home their new Specialized Rockhopper.', 'category' => 'customers'],
            ['image_path' => MjsImages::path(15), 'caption' => 'MJ\'s cycling club Sunday morning trail ride.', 'category' => 'events'],
        ];

        foreach ($gallery as $gal) {
            GalleryItem::create($gal);
        }

        $this->call(HeroSlideSeeder::class);

        // 8. Default Website Settings
        $defaultSettings = [
            'company_name' => "MJ's Bikes & Accessories",
            'company_name_nav' => "MJ'S <span>BIKES</span>",
            'company_tagline' => "Serving Nairobi's cycling community for over 8 years.",
            'company_about' => "MJ's Bikes & Accessories is your primary showroom for high-quality bicycles, spares, and specialized mechanical repair services in Nairobi.",
            'about_content' => '',
            'meta_description' => "Discover premium road, mountain, and hybrid bicycles, high-quality spare parts, and book professional repair services at MJ's Bikes & Accessories Marketplace.",
            'copyright_text' => '© ' . date('Y') . " MJ's Bikes & Accessories Marketplace. All rights reserved.",
            'business_hours' => 'Mon - Sat: 8:00 AM - 6:30 PM',
            'whatsapp_greeting' => "Hi MJ's Bikes, I'm inquiring about your showroom and repair services.",
            'hero_title' => "MJ's Bikes & Accessories",
            'hero_subtitle' => "Your ultimate digital bicycle showroom. Explore state-of-the-art mountain, road, BMX, and hybrid bikes, top-tier spare parts, and book certified repair services.",
            'hero_badge' => "Discover Premium Rides",
            'hero_image' => config('mjs_images.default'),
            'footer_address' => "Mombasa Road, Opp. Cabanas, Nairobi, Kenya",
            'footer_phone' => "+254 712 345 678",
            'footer_email' => "info@mjsbikes.com",
            'footer_facebook' => "https://facebook.com",
            'footer_instagram' => "https://instagram.com",
            'footer_whatsapp' => "+254 712 345 678",
        ];

        foreach ($defaultSettings as $key => $value) {
            \App\Models\Setting::create([
                'key' => $key,
                'value' => $value
            ]);
        }

        if ($this->command) {
            $this->command->call('images:sync-mjs');
        }
    }
}
