<?php
namespace Database\Seeders;

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

class PartnerSeeder extends Seeder
{
    public function run(): void
    {
        $partners = [
            ['name' => 'Refriango', 'segment' => 'Bebidas', 'level' => 'platinum', 'href' => 'https://refriango.co.ao', 'since' => 2020, 'display_order' => 1, 'is_active' => true],
            ['name' => 'Nutriangola', 'segment' => 'Alimentação', 'level' => 'gold', 'href' => 'https://nutriangola.co.ao', 'since' => 2021, 'display_order' => 2, 'is_active' => true],
            ['name' => 'Púnica', 'segment' => 'Azeites e Óleos', 'level' => 'gold', 'href' => '#', 'since' => 2021, 'display_order' => 3, 'is_active' => true],
            ['name' => 'SODIBA', 'segment' => 'Farinhas', 'level' => 'standard', 'href' => '#', 'since' => 2022, 'display_order' => 4, 'is_active' => true],
        ];

        foreach ($partners as $data) {
            Partner::firstOrCreate(
                ['name' => $data['name']],
                $data
            );
        }
    }
}
