<?php

namespace Database\Seeders;

use App\Models\Service;
use App\Models\ServiceProblem;
use Illuminate\Database\Seeder;

class ServiceSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Service::create([
            'name' => [
                'ru' => 'Уборка',
                'uz' => 'Tozalash',
            ],
            'image' => 'services/cleaning.jpg',
            'status' => 'published',
            'type' => 'cleaning',
            'is_power' => false,
        ]);

        ServiceProblem::create([
            'service_id' => 1,
            'problem_id' => 1,
        ]);
        ServiceProblem::create([
            'service_id' => 1,
            'problem_id' => 2,
        ]);

        Service::create([
            'name' => [
                'ru' => 'Ремонт',
                'uz' => 'Ta\'mir',
            ],
            'image' => 'services/repair.jpg',
            'status' => 'published',
            'type' => 'repair',
            'is_power' => true,
        ]);

        Service::create([
            'name' => [
                'ru' => 'Монтаж',
                'uz' => 'Montaj',
            ],
            'image' => 'services/installation.jpg',
            'status' => 'published',
            'type' => 'installation',
            'is_power' => true,
        ]);

        Service::create([
            'name' => [
                'ru' => 'Доставка',
                'uz' => 'Yetkazib berish',
            ],
            'image' => 'services/delivery.jpg',
            'status' => 'new',
            'type' => 'delivery',
            'is_power' => false,
        ]);
    }
}
