<?php

namespace Database\Seeders;

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

class SimpleMilitaryPersonnelSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // Create sample military personnel
        $personnel = [
            [
                'first_name' => 'John',
                'last_name' => 'Smith',
                'email' => 'john.smith@military.gov',
                'phone' => '+1-555-0101',
                'date_of_birth' => '1985-03-15',
                'gender' => 'Male',
                'service_number' => 'MIL-2024-001',
                'rank' => 'Captain',
                'unit' => '1st Infantry Division',
                'specialization' => 'Infantry Operations',
                'enlistment_date' => '2008-06-01',
                'status' => 'Active',
                'security_clearance' => 'Secret',
                'years_of_service' => 16,
                'awards_commendations' => 'Bronze Star Medal, Army Commendation Medal'
            ],
            [
                'first_name' => 'Sarah',
                'last_name' => 'Johnson',
                'email' => 'sarah.johnson@military.gov',
                'phone' => '+1-555-0102',
                'date_of_birth' => '1990-07-22',
                'gender' => 'Female',
                'service_number' => 'MIL-2024-002',
                'rank' => 'Lieutenant',
                'unit' => '2nd Armored Brigade',
                'specialization' => 'Intelligence Analysis',
                'enlistment_date' => '2012-09-15',
                'status' => 'Active',
                'security_clearance' => 'Top Secret',
                'years_of_service' => 12,
                'awards_commendations' => 'Meritorious Service Medal'
            ],
            [
                'first_name' => 'Michael',
                'last_name' => 'Rodriguez',
                'email' => 'michael.rodriguez@military.gov',
                'phone' => '+1-555-0103',
                'date_of_birth' => '1988-11-08',
                'gender' => 'Male',
                'service_number' => 'MIL-2024-003',
                'rank' => 'Major',
                'unit' => '3rd Special Forces Group',
                'specialization' => 'Special Operations',
                'enlistment_date' => '2010-04-20',
                'status' => 'Deployed',
                'security_clearance' => 'Top Secret',
                'years_of_service' => 14,
                'awards_commendations' => 'Silver Star, Purple Heart, Combat Infantry Badge'
            ]
        ];

        foreach ($personnel as $person) {
            MilitaryPersonnel::create($person);
        }
    }
}
