<?php

namespace Database\Seeders;

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

class EquipmentSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $equipment = [
            [
                'name' => 'Golf Car 1',
                'type' => 'golf_car',
                'description' => 'Electric golf car with comfortable seating for 4 passengers. Perfect for exploring the resort grounds.',
                'is_active' => true,
                'sort_order' => 1,
                'start_time' => '06:00:00',
                'end_time' => '18:00:00',
                'slot_duration' => 30,
            ],
            [
                'name' => 'Golf Car 2',
                'type' => 'golf_car',
                'description' => 'Premium golf car with enhanced features and extended battery life. Ideal for longer excursions.',
                'is_active' => true,
                'sort_order' => 2,
                'start_time' => '06:00:00',
                'end_time' => '18:00:00',
                'slot_duration' => 30,
            ],
            [
                'name' => 'Boat 1',
                'type' => 'boat',
                'description' => 'Comfortable motorboat perfect for fishing trips and coastal exploration. Can accommodate up to 6 passengers.',
                'is_active' => true,
                'sort_order' => 3,
                'start_time' => '06:00:00',
                'end_time' => '18:00:00',
                'slot_duration' => 30,
            ],
            [
                'name' => 'Boat 2',
                'type' => 'boat',
                'description' => 'Luxury speedboat for thrilling water adventures. Features modern amenities and safety equipment.',
                'is_active' => true,
                'sort_order' => 4,
                'start_time' => '06:00:00',
                'end_time' => '18:00:00',
                'slot_duration' => 30,
            ],
        ];

        foreach ($equipment as $item) {
            Equipment::create($item);
        }

        $this->command->info('Equipment seeded successfully!');
    }
}
