<?php

namespace Database\Seeders;

use App\Repositories\PharmacistRepository;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\App;

class PharmacistTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $input = [
            /*
            [
                'first_name'        => 'Akash',
                'last_name'         => 'Dhimmar',
                'email'             => 'akash@gmail.com',
                'password'          => '123456',
                'gender'            => 0,
                'status'            => 1,
                'email_verified_at' => Carbon::now(),
            ],
            */
            [
                'first_name' => 'Shaliesh',
                'last_name' => 'Ladhumar',
                'email' => 'shaliesh@gmail.com',
                'password' => '123456',
                'gender' => 0,
                'status' => 1,
                'email_verified_at' => Carbon::now(),
            ],
        ];

        foreach ($input as $key => $value) {
            /** @var PharmacistRepository $pharmacist */
            $pharmacist = App::make(PharmacistRepository::class);
            $pharmacist->store($input[$key], false);
        }
    }
}
