<?php

namespace Database\Seeders;

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

class TestimonialSeeder extends Seeder
{
    public function run(): void
    {
        Testimonial::query()->delete();

        $testimonials = [
            [
                'name' => 'Keziah',
                'context' => 'course',
                'is_featured' => true,
                'quote' => 'My favourite part was discovering how my values affect how and where I invest. I always set goals according to what was trending, now I have set goals for ME. I feel a sense of ownership. I have taken the first step and started building the assets in my safety basket.',
            ],
            [
                'name' => 'Sharon',
                'context' => 'course',
                'is_featured' => true,
                'quote' => 'Before Investable, I thought I knew almost everything about investing, but my knowledge was shallow. The case studies made every lesson practical. I now feel properly equipped to make the right investments according to my goals.',
            ],
            [
                'name' => 'Tonee Ndungu',
                'context' => 'coaching',
                'is_featured' => true,
                'quote' => 'Rina was a turning point. Being coached did more than highlight gaps in my financial knowledge, it changed my outlook on financial aptitude, and by extension, my outlook on life.',
            ],
            [
                'name' => 'James Mworia',
                'role' => 'CEO, Centum Investment Company',
                'context' => 'book',
                'is_featured' => true,
                'quote' => 'The important contribution of this book is that it sees the individual as the source of wealth, and that wealth creation is both a consequence and a part of achieving our individual purpose.',
            ],
            [
                'name' => 'Lucy',
                'context' => 'course',
                'quote' => 'When I started, I thought I would simply be told where to put my money. I never imagined it connected to my goals and values. The course was eye-opening, deciding where to invest, and for what, is now so much easier.',
            ],
            [
                'name' => 'Victoria',
                'context' => 'course',
                'quote' => 'Initially I had no investment plan at all. Now I\'ve started with the money market fund for my security basket.',
            ],
            [
                'name' => 'Tony',
                'context' => 'course',
                'quote' => 'I had no strategy, I risked a lot and lost a great amount in the forex market. Now I have a clear view of where I\'m headed, with a vehicle launched towards my long-term goals and purpose.',
            ],
            [
                'name' => 'Mwende',
                'context' => 'coaching',
                'quote' => 'I was able to make great strides within a short time. The coaching was attentive to my needs, personal preferences and financial habits.',
            ],
            [
                'name' => 'Kevin',
                'context' => 'course',
                'quote' => 'I learned how to set my goals into baskets based on my values. I now have a roadmap towards investing to meet my goals. Asante!',
            ],
        ];

        foreach ($testimonials as $i => $t) {
            Testimonial::create([...$t, 'sort' => $i]);
        }
    }
}
