<?php

namespace Database\Seeders;

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

class LeadSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $leads = [
            [
                'source' => 'Chatbot',
                'category_slug' => 'villa',
                'category_name' => 'villa',
                'location' => 'Antalya,Döşemealtı',
                'price_max' => 10000,
                'price_min' => 20000,
                'currency' => '$',
                'phone' => '05555555555',
                'locale' => 'local',
                'status' => 'send',



            ],
            [
                'source' => 'Chatbot',
                'category_slug' => 'land',
                'category_name' => 'land',
                'location' => 'Antalya,Lara',
                'price_max' => 40000,
                'price_min' => 70000,
                'currency' => '$',
                'phone' => '05555555555',
                'locale' => 'local',
                'status' => 'send',


            ]


        ];

        Lead::truncate();

        foreach($leads as $lead){
            Lead::create($lead);
        }
    }
}
