<?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 d-flex justify-content-between align-items-center">
                    <div>
                        <h1 class="title1 text-<?php echo e($text); ?>"><?php echo e($title); ?></h1>
                        <?php if($personnel->status == 'Active Duty'): ?>
                            <span class="badge badge-success"><?php echo e($personnel->status); ?></span>
                        <?php elseif($personnel->status === 'Reserve' || $personnel->status === 'National Guard'): ?>
                            <span class="badge badge-warning"><?php echo e($personnel->status); ?></span>
                        <?php elseif($personnel->status === 'Retired'): ?>
                            <span class="badge badge-info"><?php echo e($personnel->status); ?></span>
                        <?php else: ?>
                            <span class="badge badge-secondary"><?php echo e($personnel->status); ?></span>
                        <?php endif; ?>
                    </div>
                    <div>
                        <a href="<?php echo e(route('admin.personnel.edit', $personnel->id)); ?>" class="btn btn-warning btn-sm">
                            <i class="fa fa-edit"></i> Edit Personnel
                        </a>
                    </div>
                </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; ?>

                <div class="mb-5 row">
                    <div class="col-md-12">
                        <div class="card p-md-4 p-2">
                            <div class="card-body">
                                <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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->service_number); ?></h2>
                                        <small class="text-muted">Service Number</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->first_name); ?></h2>
                                        <small class="text-muted">First Name</small>
                                    </div>
                                    <?php if($personnel->middle_name): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->middle_name); ?></h2>
                                        <small class="text-muted">Middle Name</small>
                                    </div>
                                    <?php endif; ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->last_name); ?></h2>
                                        <small class="text-muted">Last Name</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->email); ?></h2>
                                        <small class="text-muted">Email</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->phone); ?></h2>
                                        <small class="text-muted">Phone Number</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->date_of_birth)->format('M d, Y')); ?></h2>
                                        <small class="text-muted">Date of Birth</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->blood_type); ?></h2>
                                        <small class="text-muted">Blood Type</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->marital_status); ?></h2>
                                        <small class="text-muted">Marital Status</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->dependents); ?></h2>
                                        <small class="text-muted">Number of Dependents</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->rank); ?></h2>
                                        <small class="text-muted">Rank</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->pay_grade); ?></h2>
                                        <small class="text-muted">Pay Grade</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->mos); ?></h2>
                                        <small class="text-muted">MOS (Military Occupational Specialty)</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->unit); ?></h2>
                                        <small class="text-muted">Unit</small>
                                    </div>
                                    <?php if($personnel->squad_size): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->squad_size); ?></h2>
                                        <small class="text-muted">Squad Size</small>
                                    </div>
                                    <?php endif; ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->enlistment_date)->format('M d, Y')); ?></h2>
                                        <small class="text-muted">Enlistment Date</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->ets_date)->format('M d, Y')); ?></h2>
                                        <small class="text-muted">ETS Date (Estimated Time of Separation)</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->years_of_service); ?> years</h2>
                                        <small class="text-muted">Years of Service</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->security_clearance); ?></h2>
                                        <small class="text-muted">Security Clearance</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->current_base); ?></h2>
                                        <small class="text-muted">Current Base</small>
                                    </div>
                                    <?php if($personnel->current_deployment): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->current_deployment); ?></h2>
                                        <small class="text-muted">Current Deployment</small>
                                    </div>
                                    <?php endif; ?>
                                    <?php if($personnel->deployment_return_date): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->deployment_return_date)->format('M d, Y')); ?></h2>
                                        <small class="text-muted">Deployment Return Date</small>
                                    </div>
                                    <?php endif; ?>
                                    <?php if($personnel->next_pcs): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->next_pcs); ?></h2>
                                        <small class="text-muted">Next PCS</small>
                                    </div>
                                    <?php endif; ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->command); ?></h2>
                                        <small class="text-muted">Command</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>">$<?php echo e(number_format($personnel->base_pay, 2)); ?></h2>
                                        <small class="text-muted">Base Pay</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>">$<?php echo e(number_format($personnel->bah, 2)); ?></h2>
                                        <small class="text-muted">BAH (Basic Allowance for Housing)</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>">$<?php echo e(number_format($personnel->tsp_savings, 2)); ?></h2>
                                        <small class="text-muted">TSP Savings</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->retirement_points); ?></h2>
                                        <small class="text-muted">Retirement Points</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->leave_balance); ?> days</h2>
                                        <small class="text-muted">Leave Balance</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->emergency_contact_name); ?></h2>
                                        <small class="text-muted">Emergency Contact Name</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->emergency_contact_phone); ?></h2>
                                        <small class="text-muted">Emergency Contact Phone</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->emergency_contact_relationship); ?></h2>
                                        <small class="text-muted">Emergency Contact Relationship</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->home_address); ?></h2>
                                        <small class="text-muted">Home Address</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->city); ?></h2>
                                        <small class="text-muted">City</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->state); ?></h2>
                                        <small class="text-muted">State</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->zip_code); ?></h2>
                                        <small class="text-muted">ZIP Code</small>
                                    </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">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->medical_status); ?></h2>
                                        <small class="text-muted">Medical Status</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->last_physical)->format('M d, Y')); ?></h2>
                                        <small class="text-muted">Last Physical Exam</small>
                                    </div>
                                    <?php if($personnel->allergies): ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->allergies); ?></h2>
                                        <small class="text-muted">Allergies</small>
                                    </div>
                                    <?php endif; ?>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->immunization_status); ?></h2>
                                        <small class="text-muted">Immunization Status</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->dental_class); ?></h2>
                                        <small class="text-muted">Dental Class</small>
                                    </div>

                                    <!-- Additional Information Section -->
                                    <?php if($personnel->service_brief || $personnel->profile_photo): ?>
                                    <div class="my-3 border-bottom col-md-12">
                                        <small class="text-primary">Additional Information</small>
                                    </div>
                                    <?php endif; ?>
                                    <?php if($personnel->service_brief): ?>
                                    <div class="mb-3 col-md-12">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e($personnel->service_brief); ?></h2>
                                        <small class="text-muted">Service Brief</small>
                                    </div>
                                    <?php endif; ?>
                                    <?php if($personnel->profile_photo): ?>
                                    <div class="mb-3 col-md-6">
                                        <img src="<?php echo e(asset('storage/app/public/' . $personnel->profile_photo)); ?>" alt="Profile Photo"
                                            class="w-50 img-fluid d-block">
                                        <small class="text-muted">Profile Photo</small>
                                    </div>
                                    <?php endif; ?>

                                    <!-- Record Information -->
                                    <div class="my-3 border-bottom col-md-12">
                                        <small class="text-primary">Record Information</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->created_at)->format('M d, Y g:i A')); ?></h2>
                                        <small class="text-muted">Record Created</small>
                                    </div>
                                    <div class="mb-3 col-md-6">
                                        <h2 class="text-<?php echo e($text); ?>"><?php echo e(\Carbon\Carbon::parse($personnel->updated_at)->format('M d, Y g:i A')); ?></h2>
                                        <small class="text-muted">Last Updated</small>
                                    </div>
                                </div>
                            </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/elitemaxpro/milita.elitemaxpro.click/resources/views/admin/personnel/show.blade.php ENDPATH**/ ?>