<?php

namespace Database\Seeders;

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

class ServiceSeeder extends Seeder
{
    public function run(): void
    {
        if (Service::query()->exists()) {
            return;
        }

        $services = [
            [
                'name' => 'Ocean Freight',
                'description' => 'Sea freight and container shipping for imports and exports across East Africa.',
                'image' => 'assets/img/logo/ocean.jpeg',
                'sort_order' => 0,
            ],
            [
                'name' => 'Land Transport',
                'description' => 'Reliable road transport and cross-border delivery throughout the region.',
                'image' => 'assets/img/logo/on-road.jpeg',
                'sort_order' => 1,
            ],
            [
                'name' => 'Customs Clearance',
                'description' => 'Efficient customs brokerage and documentation for smooth border crossings.',
                'image' => 'assets/img/logo/customerclearence.png',
                'sort_order' => 2,
            ],
            [
                'name' => 'Local Distribution',
                'description' => 'Last-mile delivery and warehousing in Burundi and neighbouring countries.',
                'image' => 'assets/img/logo/localdistribution.png',
                'sort_order' => 3,
            ],
        ];

        foreach ($services as $service) {
            Service::create($service + ['is_active' => true]);
        }
    }
}
