<?php
if (Auth('admin')->User()->dashboard_style == 'light') {
    $text = 'dark';
    $bg = 'light';
} else {
    $bg = 'dark';
    $text = 'light';
}
?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.topmenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="main-panel">
        <div class="content">
            <div class="page-inner">
                <p>
                    <a href="<?php echo e(route('admin.personnel.index')); ?>">
                        <i class="p-2 rounded-lg fa fa-arrow-circle-left fa-2x bg-light"></i>
                    </a>
                </p>

                <div class="mt-2 mb-4">
                    <h1 class="title1 text-<?php echo e($text); ?>"><?php echo e($title); ?></h1>
                </div>

                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

                <?php if($errors->any()): ?>
                    <div class="alert alert-danger">
                        <ul class="mb-0">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><?php echo e($error); ?></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                <?php endif; ?>

                <div class="mb-5 row">
                    <div class="col-md-12">
                        <div class="card p-md-4 p-2">
                            <div class="card-body">
                                <form action="<?php echo e(route('admin.personnel.update', $personnel->id)); ?>" method="POST" enctype="multipart/form-data">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('PUT'); ?>

                                    <div class="row">
                                        <!-- Personal Information Section -->
                                        <div class="mb-3 col-md-12 border-bottom">
                                            <small class="text-primary">Personal Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="service_number" class="form-label text-<?php echo e($text); ?>">Service Number</label>
                                            <input type="text" name="service_number" id="service_number"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('service_number', $personnel->service_number)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="first_name" class="form-label text-<?php echo e($text); ?>">First Name</label>
                                            <input type="text" name="first_name" id="first_name"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('first_name', $personnel->first_name)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="middle_name" class="form-label text-<?php echo e($text); ?>">Middle Name</label>
                                            <input type="text" name="middle_name" id="middle_name"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('middle_name', $personnel->middle_name)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="last_name" class="form-label text-<?php echo e($text); ?>">Last Name</label>
                                            <input type="text" name="last_name" id="last_name"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('last_name', $personnel->last_name)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="email" class="form-label text-<?php echo e($text); ?>">Email</label>
                                            <input type="email" name="email" id="email"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('email', $personnel->email)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="phone" class="form-label text-<?php echo e($text); ?>">Phone</label>
                                            <input type="text" name="phone" id="phone"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('phone', $personnel->phone)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="date_of_birth" class="form-label text-<?php echo e($text); ?>">Date of Birth</label>
                                            <input type="date" name="date_of_birth" id="date_of_birth"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('date_of_birth', $personnel->date_of_birth)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="blood_type" class="form-label text-<?php echo e($text); ?>">Blood Type</label>
                                            <select name="blood_type" id="blood_type" class="form-control text-<?php echo e($text); ?>" required>
                                                <option value="">Select Blood Type</option>
                                                <option value="A+" <?php echo e(old('blood_type', $personnel->blood_type) === 'A+' ? 'selected' : ''); ?>>A+</option>
                                                <option value="A-" <?php echo e(old('blood_type', $personnel->blood_type) === 'A-' ? 'selected' : ''); ?>>A-</option>
                                                <option value="B+" <?php echo e(old('blood_type', $personnel->blood_type) === 'B+' ? 'selected' : ''); ?>>B+</option>
                                                <option value="B-" <?php echo e(old('blood_type', $personnel->blood_type) === 'B-' ? 'selected' : ''); ?>>B-</option>
                                                <option value="AB+" <?php echo e(old('blood_type', $personnel->blood_type) === 'AB+' ? 'selected' : ''); ?>>AB+</option>
                                                <option value="AB-" <?php echo e(old('blood_type', $personnel->blood_type) === 'AB-' ? 'selected' : ''); ?>>AB-</option>
                                                <option value="O+" <?php echo e(old('blood_type', $personnel->blood_type) === 'O+' ? 'selected' : ''); ?>>O+</option>
                                                <option value="O-" <?php echo e(old('blood_type', $personnel->blood_type) === 'O-' ? 'selected' : ''); ?>>O-</option>
                                            </select>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="marital_status" class="form-label text-<?php echo e($text); ?>">Marital Status</label>
                                            <select name="marital_status" id="marital_status" class="form-control text-<?php echo e($text); ?>" required>
                                                <option value="">Select Status</option>
                                                <option value="Single" <?php echo e(old('marital_status', $personnel->marital_status) === 'Single' ? 'selected' : ''); ?>>Single</option>
                                                <option value="Married" <?php echo e(old('marital_status', $personnel->marital_status) === 'Married' ? 'selected' : ''); ?>>Married</option>
                                                <option value="Divorced" <?php echo e(old('marital_status', $personnel->marital_status) === 'Divorced' ? 'selected' : ''); ?>>Divorced</option>
                                                <option value="Widowed" <?php echo e(old('marital_status', $personnel->marital_status) === 'Widowed' ? 'selected' : ''); ?>>Widowed</option>
                                            </select>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="dependents" class="form-label text-<?php echo e($text); ?>">Number of Dependents</label>
                                            <input type="number" name="dependents" id="dependents" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('dependents', $personnel->dependents)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="ssn_last_four" class="form-label text-<?php echo e($text); ?>">SSN Last 4 Digits</label>
                                            <input type="text" name="ssn_last_four" id="ssn_last_four" maxlength="4"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('ssn_last_four', $personnel->ssn_last_four)); ?>" required>
                                        </div>

                                        <!-- Military Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Military Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="rank" class="form-label text-<?php echo e($text); ?>">Rank</label>
                                            <input type="text" name="rank" id="rank"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('rank', $personnel->rank)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="pay_grade" class="form-label text-<?php echo e($text); ?>">Pay Grade</label>
                                            <input type="text" name="pay_grade" id="pay_grade"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('pay_grade', $personnel->pay_grade)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="mos" class="form-label text-<?php echo e($text); ?>">MOS (Military Occupational Specialty)</label>
                                            <input type="text" name="mos" id="mos"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('mos', $personnel->mos)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="unit" class="form-label text-<?php echo e($text); ?>">Unit</label>
                                            <input type="text" name="unit" id="unit"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('unit', $personnel->unit)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="squad_size" class="form-label text-<?php echo e($text); ?>">Squad Size</label>
                                            <input type="text" name="squad_size" id="squad_size"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('squad_size', $personnel->squad_size)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="enlistment_date" class="form-label text-<?php echo e($text); ?>">Enlistment Date</label>
                                            <input type="date" name="enlistment_date" id="enlistment_date"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('enlistment_date', $personnel->enlistment_date)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="ets_date" class="form-label text-<?php echo e($text); ?>">
                                                ETS Date <small class="text-muted">(Estimated Time of Separation)</small>
                                            </label>
                                            <input type="date" name="ets_date" id="ets_date"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('ets_date', $personnel->ets_date)); ?>" required
                                                   title="Estimated Time of Separation - Expected date when service member completes current enlistment">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="years_of_service" class="form-label text-<?php echo e($text); ?>">Years of Service</label>
                                            <input type="number" name="years_of_service" id="years_of_service" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('years_of_service', $personnel->years_of_service)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="status" class="form-label text-<?php echo e($text); ?>">Status</label>
                                            <select name="status" id="status" class="form-control text-<?php echo e($text); ?>" required>
                                                <option value="">Select Status</option>
                                                <option value="Active Duty" <?php echo e(old('status', $personnel->status) === 'Active Duty' ? 'selected' : ''); ?>>Active Duty</option>
                                                <option value="Reserve" <?php echo e(old('status', $personnel->status) === 'Reserve' ? 'selected' : ''); ?>>Reserve</option>
                                                <option value="National Guard" <?php echo e(old('status', $personnel->status) === 'National Guard' ? 'selected' : ''); ?>>National Guard</option>
                                                <option value="Retired" <?php echo e(old('status', $personnel->status) === 'Retired' ? 'selected' : ''); ?>>Retired</option>
                                                <option value="Separated" <?php echo e(old('status', $personnel->status) === 'Separated' ? 'selected' : ''); ?>>Separated</option>
                                            </select>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="security_clearance" class="form-label text-<?php echo e($text); ?>">Security Clearance</label>
                                            <input type="text" name="security_clearance" id="security_clearance"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('security_clearance', $personnel->security_clearance)); ?>" required>
                                        </div>

                                        <!-- Assignment Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Assignment Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="current_base" class="form-label text-<?php echo e($text); ?>">Current Base</label>
                                            <input type="text" name="current_base" id="current_base"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('current_base', $personnel->current_base)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="current_deployment" class="form-label text-<?php echo e($text); ?>">Current Deployment</label>
                                            <input type="text" name="current_deployment" id="current_deployment"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('current_deployment', $personnel->current_deployment)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="deployment_return_date" class="form-label text-<?php echo e($text); ?>">Deployment Return Date</label>
                                            <input type="date" name="deployment_return_date" id="deployment_return_date"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('deployment_return_date', $personnel->deployment_return_date)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="next_pcs" class="form-label text-<?php echo e($text); ?>">Next PCS</label>
                                            <input type="text" name="next_pcs" id="next_pcs"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('next_pcs', $personnel->next_pcs)); ?>">
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="command" class="form-label text-<?php echo e($text); ?>">Command</label>
                                            <input type="text" name="command" id="command"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('command', $personnel->command)); ?>" required>
                                        </div>

                                        <!-- Financial Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Financial Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="base_pay" class="form-label text-<?php echo e($text); ?>">Base Pay</label>
                                            <input type="number" name="base_pay" id="base_pay" step="0.01" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('base_pay', $personnel->base_pay)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="bah" class="form-label text-<?php echo e($text); ?>">BAH (Basic Allowance for Housing)</label>
                                            <input type="number" name="bah" id="bah" step="0.01" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('bah', $personnel->bah)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="tsp_savings" class="form-label text-<?php echo e($text); ?>">TSP Savings</label>
                                            <input type="number" name="tsp_savings" id="tsp_savings" step="0.01" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('tsp_savings', $personnel->tsp_savings)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="retirement_points" class="form-label text-<?php echo e($text); ?>">Retirement Points</label>
                                            <input type="number" name="retirement_points" id="retirement_points" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('retirement_points', $personnel->retirement_points)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="leave_balance" class="form-label text-<?php echo e($text); ?>">Leave Balance (Days)</label>
                                            <input type="number" name="leave_balance" id="leave_balance" step="0.5" min="0"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('leave_balance', $personnel->leave_balance)); ?>" required>
                                        </div>

                                        <!-- Emergency Contact Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Emergency Contact Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="emergency_contact_name" class="form-label text-<?php echo e($text); ?>">Emergency Contact Name</label>
                                            <input type="text" name="emergency_contact_name" id="emergency_contact_name"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('emergency_contact_name', $personnel->emergency_contact_name)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="emergency_contact_phone" class="form-label text-<?php echo e($text); ?>">Emergency Contact Phone</label>
                                            <input type="text" name="emergency_contact_phone" id="emergency_contact_phone"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('emergency_contact_phone', $personnel->emergency_contact_phone)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="emergency_contact_relationship" class="form-label text-<?php echo e($text); ?>">Emergency Contact Relationship</label>
                                            <input type="text" name="emergency_contact_relationship" id="emergency_contact_relationship"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('emergency_contact_relationship', $personnel->emergency_contact_relationship)); ?>" required>
                                        </div>

                                        <!-- Address Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Address Information</small>
                                        </div>

                                        <div class="mb-3 col-md-12">
                                            <label for="home_address" class="form-label text-<?php echo e($text); ?>">Home Address</label>
                                            <input type="text" name="home_address" id="home_address"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('home_address', $personnel->home_address)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="city" class="form-label text-<?php echo e($text); ?>">City</label>
                                            <input type="text" name="city" id="city"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('city', $personnel->city)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="state" class="form-label text-<?php echo e($text); ?>">State</label>
                                            <input type="text" name="state" id="state"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('state', $personnel->state)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="zip_code" class="form-label text-<?php echo e($text); ?>">ZIP Code</label>
                                            <input type="text" name="zip_code" id="zip_code"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('zip_code', $personnel->zip_code)); ?>" required>
                                        </div>

                                        <!-- Medical Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Medical Information</small>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="medical_status" class="form-label text-<?php echo e($text); ?>">Medical Status</label>
                                            <select name="medical_status" id="medical_status" class="form-control text-<?php echo e($text); ?>" required>
                                                <option value="">Select Status</option>
                                                <option value="Fit for Duty" <?php echo e(old('medical_status', $personnel->medical_status) === 'Fit for Duty' ? 'selected' : ''); ?>>Fit for Duty</option>
                                                <option value="Limited Duty" <?php echo e(old('medical_status', $personnel->medical_status) === 'Limited Duty' ? 'selected' : ''); ?>>Limited Duty</option>
                                                <option value="Non-Deployable" <?php echo e(old('medical_status', $personnel->medical_status) === 'Non-Deployable' ? 'selected' : ''); ?>>Non-Deployable</option>
                                                <option value="Medical Hold" <?php echo e(old('medical_status', $personnel->medical_status) === 'Medical Hold' ? 'selected' : ''); ?>>Medical Hold</option>
                                            </select>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="last_physical" class="form-label text-<?php echo e($text); ?>">Last Physical Exam</label>
                                            <input type="date" name="last_physical" id="last_physical"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('last_physical', $personnel->last_physical)); ?>" required>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="allergies" class="form-label text-<?php echo e($text); ?>">Allergies</label>
                                            <textarea name="allergies" id="allergies" rows="3"
                                                      class="form-control text-<?php echo e($text); ?>"
                                                      placeholder="List any known allergies"><?php echo e(old('allergies', $personnel->allergies)); ?></textarea>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="immunization_status" class="form-label text-<?php echo e($text); ?>">Immunization Status</label>
                                            <select name="immunization_status" id="immunization_status" class="form-control text-<?php echo e($text); ?>" required>
                                                <option value="">Select Status</option>
                                                <option value="Up to Date" <?php echo e(old('immunization_status', $personnel->immunization_status) === 'Up to Date' ? 'selected' : ''); ?>>Up to Date</option>
                                                <option value="Overdue" <?php echo e(old('immunization_status', $personnel->immunization_status) === 'Overdue' ? 'selected' : ''); ?>>Overdue</option>
                                                <option value="Incomplete" <?php echo e(old('immunization_status', $personnel->immunization_status) === 'Incomplete' ? 'selected' : ''); ?>>Incomplete</option>
                                            </select>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="dental_class" class="form-label text-<?php echo e($text); ?>">Dental Class</label>
                                            <input type="text" name="dental_class" id="dental_class"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   value="<?php echo e(old('dental_class', $personnel->dental_class)); ?>" required>
                                        </div>

                                        <!-- Additional Information Section -->
                                        <div class="my-3 border-bottom col-md-12">
                                            <small class="text-primary">Additional Information</small>
                                        </div>

                                        <div class="mb-3 col-md-12">
                                            <label for="service_brief" class="form-label text-<?php echo e($text); ?>">Service Brief</label>
                                            <textarea name="service_brief" id="service_brief" rows="4"
                                                      class="form-control text-<?php echo e($text); ?>"
                                                      placeholder="Enter service member brief/biography"><?php echo e(old('service_brief', $personnel->service_brief)); ?></textarea>
                                        </div>

                                        <div class="mb-3 col-md-6">
                                            <label for="profile_photo" class="form-label text-<?php echo e($text); ?>">Profile Photo</label>
                                            <input type="file" name="profile_photo" id="profile_photo"
                                                   class="form-control text-<?php echo e($text); ?>"
                                                   accept="image/jpeg,image/png,image/jpg">
                                            <small class="text-muted">Accepted formats: JPEG, PNG, JPG. Max size: 2MB</small>
                                            <?php if($personnel->profile_photo): ?>
                                                <div class="mt-2">
                                                    <img src="<?php echo e(asset('storage/app/public/' . $personnel->profile_photo)); ?>" alt="Current Photo" class="img-thumbnail" style="max-width: 150px;">
                                                    <p class="text-muted">Current profile photo</p>
                                                </div>
                                            <?php endif; ?>
                                        </div>

                                        <!-- Submit Buttons -->
                                        <div class="col-md-12 mt-4">
                                            <div class="d-flex justify-content-end">
                                                <a href="<?php echo e(route('admin.personnel.show', $personnel->id)); ?>" class="btn btn-secondary me-2">Cancel</a>
                                                <button type="submit" class="btn btn-primary">
                                                    <i class="fa fa-save"></i> Update Personnel Record
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lpzmfgmrni/usgodefense.com/resources/views/admin/personnel/edit.blade.php ENDPATH**/ ?>