<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Service;

class ServiceSeeder extends Seeder
{
    public function run(): void
    {
        $services = [
            [
                'icon' => 'fas fa-chart-line',
                'title' => 'Assurance Service',
                'description' => 'The service focus on expressing a conclusion designed to enhance the degree of confidence of the intended user through obtaining the sufficient and appropriate evidence.',
                'details' => 'These are the backbones for investment decisions that plan to rely on the company\'s financial information.',
                'features' => json_encode([
                    ['title' => 'Financial Statement Audit', 'description' => 'Comprehensive examination of financial statements'],
                    ['title' => 'Internal Control Review', 'description' => 'Assessment of internal control systems'],
                    ['title' => 'Compliance Audit', 'description' => 'Ensuring regulatory compliance'],
                    ['title' => 'Special Purpose Audit', 'description' => 'Customized audit services']
                ]),
                'order' => 1,
                'is_active' => true
            ],
            [
                'icon' => 'fas fa-calculator',
                'title' => 'Non-Assurance Service', 
                'description' => 'Our non-assurance services provide valuable insights and recommendations to help improve your business operations.',
                'details' => 'Strategic advisory services without formal assurance opinions.',
                'features' => json_encode([
                    ['title' => 'Financial Consulting', 'description' => 'Strategic financial advice and planning'],
                    ['title' => 'Tax Planning', 'description' => 'Optimizing tax strategies and compliance'],
                    ['title' => 'Business Advisory', 'description' => 'Operational and strategic business advice'],
                    ['title' => 'Risk Management', 'description' => 'Identifying and mitigating business risks']
                ]),
                'order' => 2,
                'is_active' => true
            ],
            [
                'icon' => 'fas fa-handshake',
                'title' => 'Deal Advisory',
                'description' => 'Our deal advisory services support clients throughout the entire transaction lifecycle.',
                'details' => 'From initial due diligence to post-deal integration for successful mergers and acquisitions.',
                'features' => json_encode([
                    ['title' => 'M&A Due Diligence', 'description' => 'Comprehensive financial and operational due diligence'],
                    ['title' => 'Valuation Services', 'description' => 'Business and asset valuation for transactions'],
                    ['title' => 'Transaction Support', 'description' => 'End-to-end transaction advisory services'],
                    ['title' => 'Post-Merger Integration', 'description' => 'Strategic integration planning and execution']
                ]),
                'order' => 3,
                'is_active' => true
            ]
        ];

        foreach ($services as $service) {
            Service::create($service);
        }
    }
}