<?php

namespace Database\Seeders;

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

class JobTitleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $titles = [
            ['name' => 'مدير فرع'],
            ['name' => 'محاسب'],
            ['name' => 'موظف استقبال'],
            ['name' => 'سائق'],
            ['name' => 'موظف غسيل'],
            ['name' => 'مسؤول صيانة'],
        ];

        foreach ($titles as $title) {
            \App\Models\JobTitle::firstOrCreate($title);
        }
    }
}
