<?php

namespace Database\Seeders;

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

class ServiceSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $services = [
            [
                'slug' => 'gynecological-laparoscopic-surgery',
                'title' => 'Gynecological Laparoscopic Surgery', 
                'description' => 'Minimally Invasive',
                'image' => 'https://images.unsplash.com/photo-1551076805-e1869033e561?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'Gynecological laparoscopy is an advanced, minimally invasive alternative to traditional open surgery. By using a small camera (laparoscope) to view the pelvic organs, Dr. Rajan Shah can diagnose and treat a wide array of gynecological issues with unmatched precision.',
                'what_to_expect' => 'You will be placed under general anesthesia. Small incisions (usually 0.5 to 1 cm) are made in the abdomen. The laparoscope and specialized instruments are inserted. Using 3D 4K visualization, the targeted procedure is performed efficiently. Most patients go home the same day or within 24 hours.',
                'recovery' => '1 to 2 weeks',
                'benefits' => [
                    'Significantly smaller incisions',
                    'Less post-operative pain',
                    'Faster recovery time',
                    'Minimal scarring',
                    'Lower risk of infection'
                ],
                'faqs' => [
                    ['question' => 'Is laparoscopy safe?', 'answer' => 'Yes, it is generally considered safer than open surgery with fewer complications when performed by a highly trained specialist like Dr. Shah.'],
                    ['question' => 'When can I return to work?', 'answer' => 'Most patients can return to non-strenuous work within 1 to 2 weeks, compared to 4-6 weeks for open surgery.']
                ]
            ],
            [
                'slug' => 'ivf-fertility-management',
                'title' => 'IVF & Fertility Management', 
                'description' => 'IUI, Advanced Assisted Reproductive Techniques',
                'image' => 'https://images.unsplash.com/photo-1531983412531-1f49a365ffed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'In Vitro Fertilization (IVF) and comprehensive fertility management provide a pathway to parenthood for couples facing infertility. Dr. Shah offers state-of-the-art Assisted Reproductive Techniques tailored to your unique medical and emotional needs.',
                'what_to_expect' => 'The journey starts with a thorough fertility assessment for both partners. Based on the diagnosis, a customized protocol is designed which may include ovulation induction, IUI, or a full IVF cycle (egg retrieval, fertilization in a lab, and embryo transfer).',
                'recovery' => 'Varies by procedure',
                'benefits' => [
                    'High success rates with advanced technology',
                    'Comprehensive hormonal profiling',
                    'Personalized stimulation protocols',
                    'Emotional support throughout the journey',
                    'Advanced blastocyst transfer options'
                ],
                'faqs' => [
                    ['question' => 'How long does an IVF cycle take?', 'answer' => 'A standard cycle takes about 4 to 6 weeks from the start of medication to the embryo transfer.'],
                    ['question' => 'Is IVF painful?', 'answer' => 'The injections can cause mild discomfort. Egg retrieval is performed under light sedation so you will not feel pain during the procedure.']
                ]
            ],
            [
                'slug' => 'fibroid-surgery',
                'title' => 'Fibroid Surgery', 
                'description' => 'Myomectomy',
                'image' => 'https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'Uterine fibroids are non-cancerous growths that can cause severe pelvic pain, heavy bleeding, and fertility issues. Dr. Shah is a recognized fibroid specialist, offering laparoscopic myomectomy to safely remove fibroids while preserving the uterus.',
                'what_to_expect' => 'Through small abdominal incisions, a laparoscope is used to locate and meticulously remove the fibroids. The uterine muscle is then carefully reconstructed using advanced suturing techniques to ensure future reproductive health.',
                'recovery' => '2 to 4 weeks',
                'benefits' => [
                    'Uterus preservation (crucial for future pregnancy)',
                    'Relief from heavy menstrual bleeding and pain',
                    'Shorter hospital stay compared to open myomectomy',
                    'Faster return to daily activities'
                ],
                'faqs' => [
                    ['question' => 'Can fibroids grow back?', 'answer' => 'While the removed fibroids will not grow back, new ones can develop. Regular follow-ups are recommended.'],
                    ['question' => 'Will myomectomy affect my chances of getting pregnant?', 'answer' => 'Myomectomy is often performed specifically to improve fertility and pregnancy outcomes by creating a healthier uterine environment.']
                ]
            ],
            [
                'slug' => 'ovarian-cyst-surgery',
                'title' => 'Ovarian Cyst Surgery', 
                'description' => 'Treatment for ovarian cysts',
                'image' => 'https://images.unsplash.com/photo-1584516150909-c43483ee7932?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'Laparoscopic ovarian cystectomy is a minimally invasive procedure designed to remove cysts from the ovaries while preserving the healthy ovarian tissue, which is vital for maintaining hormonal balance and fertility.',
                'what_to_expect' => 'The procedure is performed under general anesthesia. Dr. Shah makes tiny incisions to insert the laparoscope. The cyst is carefully shelled out of the ovary and placed in a surgical bag before removal to prevent any spillage in the pelvic cavity.',
                'recovery' => '1 to 2 weeks',
                'benefits' => [
                    'Maximum preservation of healthy ovarian reserve',
                    'Relief from pelvic pain and pressure',
                    'Definitive diagnosis of the cyst type',
                    'Minimal scarring'
                ],
                'faqs' => [
                    ['question' => 'Will both ovaries be removed?', 'answer' => 'No, the goal of cystectomy is to remove only the cyst and preserve the ovary whenever possible.'],
                    ['question' => 'How soon can I exercise?', 'answer' => 'Light walking is encouraged immediately, but strenuous exercise should be avoided for 2-3 weeks.']
                ]
            ],
            [
                'slug' => 'endometriosis-surgery',
                'title' => 'Endometriosis Surgery', 
                'description' => 'Specialized care for endometriosis',
                'image' => 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'Endometriosis is a painful condition where tissue similar to the lining of the uterus grows outside it. Dr. Shah utilizes advanced laparoscopic excision techniques with 3D 4K visualization to identify and completely remove endometriotic lesions.',
                'what_to_expect' => 'Laparoscopic excision surgery involves meticulously cutting out (excising) the diseased tissue rather than just burning the surface. This provides better long-term pain relief and improved fertility outcomes.',
                'recovery' => '2 to 3 weeks',
                'benefits' => [
                    'Significant reduction in chronic pelvic pain',
                    'Improved fertility and chances of conception',
                    'Comprehensive staging and diagnosis',
                    'Decreased likelihood of recurrence compared to ablation'
                ],
                'faqs' => [
                    ['question' => 'Is surgery a cure for endometriosis?', 'answer' => 'While there is no absolute cure, excision surgery is considered the gold standard for managing symptoms and restoring fertility.'],
                    ['question' => 'How long does the surgery take?', 'answer' => 'Depending on the severity of the endometriosis, it can take anywhere from 1 to 4 hours.']
                ]
            ],
            [
                'slug' => 'hysterectomy',
                'title' => 'Hysteroscopic Procedures', 
                'description' => 'Advanced hysteroscopy',
                'image' => 'https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80',
                'overview' => 'A hysterectomy is the surgical removal of the uterus. Total Laparoscopic Hysterectomy (TLH) is a highly advanced method that allows the entire procedure to be completed through tiny keyhole incisions, bypassing the need for a large abdominal cut.',
                'what_to_expect' => 'Using specialized laparoscopic instruments, the uterus is detached from its supporting ligaments and blood supply. It is then safely removed, usually through the vagina. The vaginal vault is closed with dissolvable sutures.',
                'recovery' => '3 to 4 weeks',
                'benefits' => [
                    'Dramatically less pain than open hysterectomy',
                    'No large abdominal scar',
                    'Shorter hospital stay (often just 1-2 days)',
                    'Faster return to normal life'
                ],
                'faqs' => [
                    ['question' => 'Will I go into menopause immediately?', 'answer' => 'Only if your ovaries are also removed (oophorectomy). If your ovaries are preserved, you will not experience surgical menopause.'],
                    ['question' => 'Is sexual function affected?', 'answer' => 'Most women report no change or an improvement in sexual function, especially if the surgery resolved chronic pain or bleeding.']
                ]
            ],
        ];

        foreach ($services as $index => $serviceData) {
            \App\Models\Service::create(array_merge($serviceData, ['order_index' => $index]));
        }
    }
}
