<?php

namespace Database\Seeders;

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

class EventSeeder extends Seeder
{
    public function run(): void
    {
        $events = [
            [
                'name'             => 'Umrah Package — Ramadan 2027',
                'slug'             => 'umrah-ramadan-2027',
                'destination'      => 'Makkah & Madinah',
                'country'          => 'Saudi Arabia',
                'description'      => 'A blessed Umrah journey during the holy month of Ramadan. Includes flights, 4-star hotel accommodation in both Makkah and Madinah, guided ziyarat, and full-board meals.',
                'type'             => 'umrah',
                'start_date'       => '2027-02-14',
                'end_date'         => '2027-03-02',
                'duration_days'    => 16,
                'price'            => 185000,
                'original_price'   => 210000,
                'discount_percent' => 12,
                'max_spots'        => 50,
                'spots_remaining'  => 42,
                'status'           => 'open',
                'highlights'       => ['Return flights included', 'Makkah: 7 nights at Hilton Suites', 'Madinah: 5 nights near Masjid Nabawi', 'Full-board meals', 'Guided ziyarat tours', 'Dedicated group leader'],
                'rating'           => 4.8,
                'review_count'     => 234,
                'is_featured'      => true,
                'is_published'     => true,
                'volunteer_enabled'=> false,
            ],
            [
                'name'             => 'Hajj Package 2027 — Standard',
                'slug'             => 'hajj-2027-standard',
                'destination'      => 'Makkah, Madinah & Mina',
                'country'          => 'Saudi Arabia',
                'description'      => 'Our standard Hajj package for the 1448 AH season. Includes all Hajj rituals guidance, accommodation in Makkah, Madinah, Mina, and Arafat, with transportation between all holy sites.',
                'type'             => 'hajj',
                'start_date'       => '2027-05-28',
                'end_date'         => '2027-06-25',
                'duration_days'    => 28,
                'price'            => 650000,
                'original_price'   => null,
                'discount_percent' => null,
                'max_spots'        => 30,
                'spots_remaining'  => 8,
                'status'           => 'limited',
                'highlights'       => ['Full Hajj rituals support', 'Accommodation in Makkah, Madinah & Mina', 'Arafat tent service', 'All ground transportation', 'Medical team on site', 'Certified Hajj guide'],
                'rating'           => 4.9,
                'review_count'     => 89,
                'is_featured'      => true,
                'is_published'     => true,
                'volunteer_enabled'=> true,
            ],
            [
                'name'             => 'Ziyarat Iraq — Karbala & Najaf 2026',
                'slug'             => 'ziyarat-iraq-2026',
                'destination'      => 'Karbala & Najaf',
                'country'          => 'Iraq',
                'description'      => 'A spiritual Ziyarat journey to the holy shrines of Imam Husain (AS) in Karbala and Imam Ali (AS) in Najaf. Arbaeen visit available.',
                'type'             => 'ziyarat',
                'start_date'       => '2026-09-10',
                'end_date'         => '2026-09-20',
                'duration_days'    => 10,
                'price'            => 95000,
                'original_price'   => 110000,
                'discount_percent' => 14,
                'max_spots'        => 40,
                'spots_remaining'  => 25,
                'status'           => 'open',
                'highlights'       => ['Visit Imam Husain (AS) shrine', 'Visit Imam Ali (AS) shrine', 'Arbaeen walk option', '4-star hotel', 'Visa processing included', 'Group transport'],
                'rating'           => 4.7,
                'review_count'     => 156,
                'is_featured'      => false,
                'is_published'     => true,
                'volunteer_enabled'=> false,
            ],
            [
                'name'             => 'Umrah Economy — January 2026',
                'slug'             => 'umrah-economy-jan-2026',
                'destination'      => 'Makkah & Madinah',
                'country'          => 'Saudi Arabia',
                'description'      => 'An affordable Umrah package ideal for first-time pilgrims. Budget-friendly accommodation with all essentials covered.',
                'type'             => 'umrah',
                'start_date'       => '2026-01-15',
                'end_date'         => '2026-01-25',
                'duration_days'    => 10,
                'price'            => 75000,
                'original_price'   => null,
                'discount_percent' => null,
                'max_spots'        => 60,
                'spots_remaining'  => 0,
                'status'           => 'sold_out',
                'highlights'       => ['Return flights', 'Makkah: 5 nights', 'Madinah: 3 nights', 'Breakfast included'],
                'rating'           => 4.5,
                'review_count'     => 312,
                'is_featured'      => false,
                'is_published'     => true,
                'volunteer_enabled'=> false,
            ],
            [
                'name'             => 'Umrah Summer 2025 — Completed',
                'slug'             => 'umrah-summer-2025',
                'destination'      => 'Makkah & Madinah',
                'country'          => 'Saudi Arabia',
                'description'      => 'Completed summer Umrah package. Reference for past events.',
                'type'             => 'umrah',
                'start_date'       => '2025-07-01',
                'end_date'         => '2025-07-14',
                'duration_days'    => 13,
                'price'            => 120000,
                'original_price'   => null,
                'discount_percent' => null,
                'max_spots'        => 45,
                'spots_remaining'  => 0,
                'status'           => 'past',
                'highlights'       => ['Return flights', 'Makkah & Madinah hotels', 'Guided tours'],
                'rating'           => 4.6,
                'review_count'     => 198,
                'is_featured'      => false,
                'is_published'     => true,
                'volunteer_enabled'=> false,
            ],
        ];

        foreach ($events as $data) {
            Event::firstOrCreate(['slug' => $data['slug']], $data);
        }
    }
}
