<?php

namespace Database\Seeders;

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

class CorrectMilitaryPersonnelSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // Create sample military personnel with correct fields
        MilitaryPersonnel::create([
            'service_number' => 'MIL-2024-001',
            'first_name' => 'John',
            'last_name' => 'Smith',
            'email' => 'john.smith@military.gov',
            'phone' => '+1-555-0101',
            'date_of_birth' => '1985-03-15',
            'blood_type' => 'O+',
            'marital_status' => 'Married',
            'dependents' => 2,
            'ssn_last_four' => '1234',
            'rank' => 'Captain',
            'pay_grade' => 'O-3',
            'mos' => '11B',
            'unit' => '1st Infantry Division',
            'squad_size' => '12',
            'enlistment_date' => '2008-06-01',
            'ets_date' => '2026-06-01',
            'years_of_service' => 16,
            'status' => 'Active Duty',
            'security_clearance' => 'Secret',
            'current_base' => 'Fort Riley, Kansas',
            'current_deployment' => null,
            'deployment_return_date' => null,
            'next_pcs' => 'Fort Bragg, NC',
            'command' => '1st Infantry Division',
            'base_pay' => 5778.30,
            'bah' => 1350.00,
            'tsp_savings' => 15000.00,
            'retirement_points' => 320,
            'leave_balance' => 28.5,
            'emergency_contact_name' => 'Jane Smith',
            'emergency_contact_relationship' => 'Spouse',
            'emergency_contact_phone' => '+1-555-0201',
            'home_address' => '123 Military Way',
            'city' => 'Fort Riley',
            'state' => 'Kansas',
            'zip_code' => '66442',
            'medical_status' => 'Fit for Duty',
            'last_physical' => '2024-03-15',
            'allergies' => null,
            'immunization_status' => 'Up to Date',
            'dental_class' => 'Class 1',
            'service_brief' => 'Experienced infantry officer with 16 years of service, specialized in combat operations and leadership training.'
        ]);

        MilitaryPersonnel::create([
            'service_number' => 'MIL-2024-002',
            'first_name' => 'Sarah',
            'last_name' => 'Johnson',
            'email' => 'sarah.johnson@military.gov',
            'phone' => '+1-555-0102',
            'date_of_birth' => '1990-07-22',
            'blood_type' => 'A+',
            'marital_status' => 'Single',
            'dependents' => 0,
            'ssn_last_four' => '5678',
            'rank' => 'Lieutenant',
            'pay_grade' => 'O-2',
            'mos' => '35F',
            'unit' => '2nd Armored Brigade',
            'squad_size' => '8',
            'enlistment_date' => '2012-09-15',
            'ets_date' => '2024-09-15',
            'years_of_service' => 12,
            'status' => 'Active Duty',
            'security_clearance' => 'Top Secret',
            'current_base' => 'Fort Hood, Texas',
            'current_deployment' => null,
            'deployment_return_date' => null,
            'next_pcs' => null,
            'command' => '2nd Armored Brigade Combat Team',
            'base_pay' => 4136.40,
            'bah' => 1100.00,
            'tsp_savings' => 8500.00,
            'retirement_points' => 240,
            'leave_balance' => 35.0,
            'emergency_contact_name' => 'Robert Johnson',
            'emergency_contact_relationship' => 'Father',
            'emergency_contact_phone' => '+1-555-0202',
            'home_address' => '456 Armor Street',
            'city' => 'Killeen',
            'state' => 'Texas',
            'zip_code' => '76544',
            'medical_status' => 'Fit for Duty',
            'last_physical' => '2024-05-20',
            'allergies' => 'Penicillin',
            'immunization_status' => 'Up to Date',
            'dental_class' => 'Class 1',
            'service_brief' => 'Intelligence analyst with expertise in threat assessment and strategic planning.'
        ]);

        MilitaryPersonnel::create([
            'service_number' => 'MIL-2024-003',
            'first_name' => 'Michael',
            'last_name' => 'Rodriguez',
            'email' => 'michael.rodriguez@military.gov',
            'phone' => '+1-555-0103',
            'date_of_birth' => '1988-11-08',
            'blood_type' => 'B+',
            'marital_status' => 'Married',
            'dependents' => 1,
            'ssn_last_four' => '9012',
            'rank' => 'Major',
            'pay_grade' => 'O-4',
            'mos' => '18A',
            'unit' => '3rd Special Forces Group',
            'squad_size' => '6',
            'enlistment_date' => '2010-04-20',
            'ets_date' => '2025-04-20',
            'years_of_service' => 14,
            'status' => 'Active Duty',
            'security_clearance' => 'Top Secret',
            'current_base' => 'Fort Bragg, North Carolina',
            'current_deployment' => 'Afghanistan',
            'deployment_return_date' => '2025-02-15',
            'next_pcs' => null,
            'command' => '3rd Special Forces Group (Airborne)',
            'base_pay' => 6849.60,
            'bah' => 1600.00,
            'tsp_savings' => 22000.00,
            'retirement_points' => 280,
            'leave_balance' => 15.0,
            'emergency_contact_name' => 'Maria Rodriguez',
            'emergency_contact_relationship' => 'Spouse',
            'emergency_contact_phone' => '+1-555-0203',
            'home_address' => '789 Special Ops Drive',
            'city' => 'Fayetteville',
            'state' => 'North Carolina',
            'zip_code' => '28301',
            'medical_status' => 'Fit for Duty',
            'last_physical' => '2024-01-10',
            'allergies' => null,
            'immunization_status' => 'Up to Date',
            'dental_class' => 'Class 1',
            'service_brief' => 'Special Forces officer with extensive combat experience and leadership in high-risk operations.'
        ]);
    }
}
