<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TestimonialSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $testimonials = [
            [
                'name' => 'A. Johnson',
                'position' => 'Retail Investor',
                'quote' => 'The onboarding was smooth, and the collateral instructions were clear. I was able to complete my loan application quickly.',
                'avatar_path' => null,
                'rating' => 5,
                'is_active' => true,
            ],
            [
                'name' => 'M. Rodriguez',
                'position' => 'Crypto Enthusiast',
                'quote' => 'Earn yields are transparent, and the staking calculator helped me choose a duration that fits my goals.',
                'avatar_path' => null,
                'rating' => 5,
                'is_active' => true,
            ],
            [
                'name' => 'S. Chen',
                'position' => 'SME Operator',
                'quote' => 'Fast deposits, reliable status updates, and an admin dashboard that makes governance simple.',
                'avatar_path' => null,
                'rating' => 5,
                'is_active' => true,
            ],
        ];

        foreach ($testimonials as $t) {
            \App\Models\Testimonial::updateOrCreate(
                ['name' => $t['name']],
                $t
            );
        }
    }
}
