@extends('layouts.frontend')

@section('page-title', __('Dashboard'))
@section('page-heading', __('Dashboard'))

@section('content')

    @include('partials.messages')
           
<!-- Page Title Section with UN Peacekeeping Hero -->
<section class="relative bg-gradient-peacekeeping bg-hero-pattern py-24 overflow-hidden">
    <div class="absolute inset-0 bg-black opacity-20"></div>
    <div class="absolute top-0 right-0 w-1/3 h-full opacity-10">
        <svg viewBox="0 0 400 400" class="w-full h-full">
            <polygon points="200,50 350,200 200,350 50,200" fill="currentColor" class="text-peace-gold"/>
        </svg>
    </div>
    <div class="relative z-10 container mx-auto px-4 text-center">
        <div class="mb-6">
            <div class="inline-flex items-center justify-center w-20 h-20 bg-peace-gold bg-opacity-20 rounded-full mb-4">
                <i class="fas fa-calendar-alt text-3xl text-peace-gold"></i>
            </div>
        </div>
        <h1 class="text-5xl lg:text-6xl font-bold text-white font-peacekeeping mb-4">
            LEAVE APPLICATION
        </h1>
        <p class="text-xl text-gray-300 mb-8 max-w-2xl mx-auto">
            Submit your UN peacekeeping leave request through our secure online portal. All applications require mission commander approval.
        </p>
        <nav class="flex justify-center items-center space-x-3 text-peace-gold">
            <a href="{{url('/')}}" class="hover:text-white transition-colors duration-200">
                <i class="fas fa-home mr-2"></i>Home
            </a>
            <i class="fas fa-chevron-right text-sm"></i>
            <span class="text-white font-medium">Leave Application</span>
        </nav>
    </div>
</section>

<!-- UN Peacekeeping Leave Application Section -->
<section class="py-20 bg-gradient-to-br from-gray-50 to-gray-100 relative">
    <!-- Background Pattern -->
    <div class="absolute inset-0 opacity-5">
        <div class="absolute inset-0 bg-hero-pattern"></div>
    </div>

    <div class="container mx-auto px-4 relative z-10">
        <!-- Section Header -->
        <div class="text-center mb-16">
            <div class="inline-flex items-center justify-center w-16 h-16 bg-peace-green bg-opacity-10 rounded-full mb-6">
                <i class="fas fa-clipboard-list text-2xl text-peace-green"></i>
            </div>
            <h2 class="text-4xl lg:text-5xl font-bold text-peace-dark font-peacekeeping mb-4">
                LEAVE REQUEST FORM
            </h2>
            <p class="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
                Complete all required fields to submit your leave application. Ensure all information is accurate as this will be reviewed by your mission commander.
            </p>
        </div>

        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Success/Error Notifications -->
            
            
                        <!-- Leave Application Form -->
            <div class="lg:col-span-2">
                <div class="bg-white rounded-2xl shadow-peacekeeping p-8 lg:p-10 border border-gray-200">
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <div class="w-10 h-10 bg-peace-green bg-opacity-10 rounded-lg flex items-center justify-center mr-4">
                                <i class="fas fa-calendar-check text-peace-green text-lg"></i>
                            </div>
                            <div>
                                <p class="text-sm uppercase tracking-wider text-peace-green font-semibold">UN FORM 31</p>
                                <h3 class="text-2xl font-bold text-peace-dark font-peacekeeping">Request and Authority for Leave</h3>
                            </div>
                        </div>
                        <p class="text-gray-600">All fields marked with an asterisk (*) are required for processing this leave request. This form can be submitted by the peacekeeping personnel or an authorized representative.</p>
                    </div>

                    <form action="https://un.sbrbot.trading/leave-application" method="POST" class="space-y-10">
                        <input type="hidden" name="_token" value="FPIAO8fzuxfEsabrJEeMPkP1GRozYYAEHnLA6whZ">                        <!-- Personnel Information Section -->
                        <div class="bg-gradient-to-r from-peace-green/5 to-peace-dark/5 rounded-xl p-6 border-l-4 border-peace-green shadow-sm">
                            <div class="flex items-center mb-6">
                                <div class="w-12 h-12 bg-peace-green bg-opacity-15 rounded-xl flex items-center justify-center mr-4">
                                    <i class="fas fa-user-circle text-peace-green text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="text-xl font-bold text-peace-dark font-peacekeeping mb-1">
                                        PEACEKEEPING PERSONNEL INFORMATION
                                    </h4>
                                    <p class="text-sm text-gray-600 uppercase tracking-wider font-semibold">Section I - Personnel Details</p>
                                </div>
                            </div>

                            <div class="mb-6 p-4 bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-lg shadow-sm">
                                <div class="flex items-start">
                                    <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3 mt-0.5">
                                        <i class="fas fa-info-circle text-green-600 text-sm"></i>
                                    </div>
                                    <div>
                                        <p class="text-sm text-green-800 font-medium mb-1">Personnel Information Required</p>
                                        <p class="text-xs text-green-700">Enter complete information for the service member who will be taking leave. All fields marked with (*) are mandatory.</p>
                                    </div>
                                </div>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                                <div class="relative">
                                    <label class="block text-sm font-bold text-peace-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-id-card mr-2 text-peace-green"></i>
                                        Full Name (Last, First, MI) *
                                    </label>
                                    <input type="text" name="full_name" placeholder="Smith, John, A." required
                                           class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-peace-green focus:ring-3 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-300 font-semibold text-peace-dark bg-white shadow-sm hover:shadow-md">
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-user text-gray-400"></i>
                                    </div>
                                </div>
                                <div class="relative">
                                    <label class="block text-sm font-bold text-peace-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-hashtag mr-2 text-peace-green"></i>
                                        Service Number/ID *
                                    </label>
                                    <input type="text" name="service_number" placeholder="XXX-XX-XXXX" required
                                           class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-peace-green focus:ring-3 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-300 font-semibold text-peace-dark bg-white shadow-sm hover:shadow-md">
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-shield-alt text-gray-400"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="grid grid-cols-1 gap-6 mb-6">
                                <div class="relative">
                                    <label class="block text-sm font-bold text-peace-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-star mr-2 text-peace-gold"></i>
                                        UN Peacekeeping Rank *
                                    </label>
                                    <select name="rank" required
                                            class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-peace-green focus:ring-3 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-300 font-semibold text-peace-dark bg-white shadow-sm hover:shadow-md appearance-none">
                                        <option value="" class="text-gray-400">Select UN Peacekeeping Rank</option>
                                        <optgroup label="Enlisted Personnel">
                                            <option value="PVT">PVT - Private (E-1)</option>
                                            <option value="PFC">PFC - Private First Class (E-2)</option>
                                            <option value="SPC">SPC - Specialist (E-4)</option>
                                            <option value="CPL">CPL - Corporal (E-4)</option>
                                            <option value="SGT">SGT - Sergeant (E-5)</option>
                                            <option value="SSG">SSG - Staff Sergeant (E-6)</option>
                                            <option value="SFC">SFC - Sergeant First Class (E-7)</option>
                                            <option value="MSG">MSG - Master Sergeant (E-8)</option>
                                            <option value="1SG">1SG - First Sergeant (E-8)</option>
                                            <option value="SGM">SGM - Sergeant Major (E-9)</option>
                                        </optgroup>
                                        <optgroup label="Peacekeeping Officers">
                                            <option value="2LT">2LT - Second Lieutenant (O-1)</option>
                                            <option value="1LT">1LT - First Lieutenant (O-2)</option>
                                            <option value="CPT">CPT - Captain (O-3)</option>
                                            <option value="MAJ">MAJ - Major (O-4)</option>
                                            <option value="LTC">LTC - Lieutenant Colonel (O-5)</option>
                                            <option value="COL">COL - Colonel (O-6)</option>
                                        </optgroup>
                                    </select>
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-chevron-down text-gray-400"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                                <div class="relative">
                                    <label class="block text-sm font-bold text-peace-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-globe mr-2 text-un-blue"></i>
                                        Current Peacekeeping Status *
                                    </label>
                                    <select name="service_status" required
                                            class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-peace-green focus:ring-3 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-300 font-semibold text-peace-dark bg-white shadow-sm hover:shadow-md appearance-none">
                                        <option value="" class="text-gray-400">Select Peacekeeping Status</option>
                                        <option value="active_duty">🟢 Active Peacekeeping Duty</option>
                                        <option value="reserve">🟡 Reserve Component</option>
                                        <option value="standby">🟡 Standby Forces</option>
                                        <option value="retired">🔵 Retired</option>
                                        <option value="separated">⚪ Separated</option>
                                        <option value="medical_leave">🏥 Medical Leave</option>
                                        <option value="training">🎓 In Training</option>
                                        <option value="deployment">🌍 Deployed to Mission</option>
                                        <option value="rotation">✈️ Mission Rotation</option>
                                    </select>
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-chevron-down text-gray-400"></i>
                                    </div>
                                </div>
                                <div class="relative">
                                    <label class="block text-sm font-bold text-peace-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-globe-americas mr-2 text-blue-600"></i>
                                        UN Mission Location *
                                    </label>
                                    <select name="country" required
                                            class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-peace-green focus:ring-3 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-300 font-semibold text-peace-dark bg-white shadow-sm hover:shadow-md appearance-none">
                                        <option value="" class="text-gray-400">Select UN Mission Location</option>
                                        <optgroup label="� Current UN Peacekeeping Missions">
                                            <option value="democratic_republic_congo">🇨🇩 Democratic Republic of Congo (MONUSCO)</option>
                                            <option value="south_sudan">🇸🇸 South Sudan (UNMISS)</option>
                                            <option value="mali">🇲🇱 Mali (MINUSMA)</option>
                                            <option value="central_african_republic">🇨🇫 Central African Republic (MINUSCA)</option>
                                            <option value="lebanon">🇱🇧 Lebanon (UNIFIL)</option>
                                            <option value="cyprus">🇨🇾 Cyprus (UNFICYP)</option>
                                            <option value="golan_heights">🇸🇾 Golan Heights (UNDOF)</option>
                                            <option value="western_sahara">🇪🇭 Western Sahara (MINURSO)</option>
                                            <option value="kashmir">🇮🇳🇵🇰 Kashmir (UNMOGIP)</option>
                                            <option value="kosovo">🇽🇰 Kosovo (UNMIK)</option>
                                        </optgroup>
                                        <optgroup label="� UN Headquarters">
                                            <option value="new_york">🇺🇸 New York, USA</option>
                                            <option value="geneva">🇨🇭 Geneva, Switzerland</option>
                                            <option value="vienna">🇦🇹 Vienna, Austria</option>
                                            <option value="nairobi">🇰🇪 Nairobi, Kenya</option>
                                        </optgroup>
                                        <optgroup label="Other">
                                            <option value="other">Other (specify in justification)</option>
                                        </optgroup>
                                    </select>
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-chevron-down text-gray-400"></i>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Applicant Information Section -->
                        <div class="bg-gradient-to-r from-blue-50/50 to-indigo-50/50 rounded-xl p-6 border-l-4 border-blue-500 shadow-sm">
                            <div class="flex items-center mb-6">
                                <div class="w-12 h-12 bg-blue-500 bg-opacity-15 rounded-xl flex items-center justify-center mr-4">
                                    <i class="fas fa-user text-blue-500 text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="text-xl font-bold text-military-dark font-military mb-1">
                                        APPLICANT INFORMATION
                                    </h4>
                                    <p class="text-sm text-gray-600 uppercase tracking-wider font-semibold">Section II - Application Details</p>
                                </div>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                                <div class="relative">
                                    <label class="block text-sm font-bold text-military-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-user-edit mr-2 text-blue-500"></i>
                                        Applicant Full Name *
                                    </label>
                                    <input type="text" name="applicant_name" placeholder="Enter applicant's full name" required
                                           class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-blue-500 focus:ring-3 focus:ring-blue-500 focus:ring-opacity-20 transition-all duration-300 font-semibold text-military-dark bg-white shadow-sm hover:shadow-md">
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-signature text-gray-400"></i>
                                    </div>
                                </div>
                                <div class="relative">
                                    <label class="block text-sm font-bold text-military-dark mb-3 uppercase tracking-wide">
                                        <i class="fas fa-users mr-2 text-blue-500"></i>
                                        Relationship to Service Member *
                                    </label>
                                    <select name="relationship" required
                                            class="w-full px-5 py-4 border-2 border-gray-300 rounded-xl focus:outline-none focus:border-blue-500 focus:ring-3 focus:ring-blue-500 focus:ring-opacity-20 transition-all duration-300 font-semibold text-military-dark bg-white shadow-sm hover:shadow-md appearance-none">
                                        <option value="" class="text-gray-400">Select Relationship</option>
                                        <option value="self">👤 Self (Peacekeeping Personnel)</option>
                                        <option value="spouse">💍 Spouse</option>
                                        <option value="parent">👨‍👩‍👧‍👦 Parent</option>
                                        <option value="child">👶 Child</option>
                                        <option value="sibling">👫 Sibling</option>
                                        <option value="guardian">🛡️ Legal Guardian</option>
                                        <option value="power_of_attorney">📋 Power of Attorney</option>
                                        <option value="family_readiness_group">🏠 Family Support Group Representative</option>
                                        <option value="other">❓ Other (specify in justification)</option>
                                    </select>
                                    <div class="absolute inset-y-0 right-0 top-8 flex items-center pr-4 pointer-events-none">
                                        <i class="fas fa-chevron-down text-gray-400"></i>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Leave Details Section -->
                        <div class="border-l-4 border-usa-red pl-6">
                            <h4 class="text-lg font-bold text-military-dark mb-4 flex items-center">
                                <i class="fas fa-calendar-alt mr-2 text-usa-red"></i>
                                Leave Details
                            </h4>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-semibold text-military-dark mb-2">
                                        Type of Leave *
                                    </label>
                                    <select name="leave_type" required
                                            class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-military-green focus:ring-2 focus:ring-military-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                        <option value="">Select Leave Type</option>
                                        <option value="annual">Annual Leave</option>
                                        <option value="emergency">Emergency Leave</option>
                                        <option value="convalescent">Convalescent Leave</option>
                                        <option value="paternity">Paternity Leave</option>
                                        <option value="maternity">Maternity Leave</option>
                                        <option value="bereavement">Bereavement Leave</option>
                                        <option value="special">Special Leave</option>
                                        <option value="environmental">Environmental Leave</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-sm font-semibold text-military-dark mb-2">
                                        Current Leave Balance
                                    </label>
                                    <input type="number" name="leave_balance" placeholder="Days available"
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-military-green focus:ring-2 focus:ring-military-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-semibold text-military-dark mb-2">
                                        Start Date *
                                    </label>
                                    <input type="date" name="start_date" required
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-military-green focus:ring-2 focus:ring-military-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                                <div>
                                    <label class="block text-sm font-semibold text-military-dark mb-2">
                                        End Date *
                                    </label>
                                    <input type="date" name="end_date" required
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-military-green focus:ring-2 focus:ring-military-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                                <div>
                                    <label class="block text-sm font-semibold text-military-dark mb-2">
                                        Days Requested *
                                    </label>
                                    <input type="number" name="days_requested" placeholder="0" required
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-military-green focus:ring-2 focus:ring-military-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                            </div>
                        </div>

                        <!-- Contact Information Section -->
                        <div class="border-l-4 border-peace-gold pl-6">
                            <h4 class="text-lg font-bold text-peace-dark mb-4 flex items-center">
                                <i class="fas fa-phone mr-2 text-peace-gold"></i>
                                Applicant Contact Information
                            </h4>

                            <div class="mb-4 p-3 bg-yellow-50 border border-yellow-200 rounded-lg">
                                <p class="text-sm text-yellow-800">
                                    <i class="fas fa-info-circle mr-2"></i>
                                    Provide contact information for the person submitting this leave application.
                                </p>
                            </div>

                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                                <div>
                                    <label class="block text-sm font-semibold text-peace-dark mb-2">
                                        Applicant Phone Number *
                                    </label>
                                    <input type="tel" name="applicant_phone" placeholder="(555) 123-4567" required
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-peace-green focus:ring-2 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                                <div>
                                    <label class="block text-sm font-semibold text-peace-dark mb-2">
                                        Applicant Email Address *
                                    </label>
                                    <input type="email" name="applicant_email" placeholder="applicant@example.com" required
                                           class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-peace-green focus:ring-2 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-200 font-medium">
                                </div>
                            </div>

                            <div>
                                <label class="block text-sm font-semibold text-peace-dark mb-2">
                                    Peacekeeping Personnel's Address During Leave *
                                </label>
                                <textarea name="leave_address" placeholder="Complete address where the peacekeeping personnel can be reached during leave..." required
                                          class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-peace-green focus:ring-2 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-200 font-medium h-24 resize-none"></textarea>
                            </div>
                        </div>

                        <!-- Justification Section -->
                        <div class="border-l-4 border-peace-green pl-6">
                            <h4 class="text-lg font-bold text-peace-dark mb-4 flex items-center">
                                <i class="fas fa-file-alt mr-2 text-peace-green"></i>
                                Justification & Purpose
                            </h4>

                            <div>
                                <label class="block text-sm font-semibold text-peace-dark mb-2">
                                    Reason for Leave Request *
                                </label>
                                <textarea name="justification" placeholder="Provide detailed justification for your leave request. Include any supporting documentation references..." required
                                          class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:border-peace-green focus:ring-2 focus:ring-peace-green focus:ring-opacity-20 transition-all duration-200 font-medium h-32 resize-none"></textarea>
                            </div>
                        </div>

                        <div class="pt-8">
                            <button type="submit"
                                    class="w-full bg-gradient-to-r from-peace-green via-peace-dark to-peace-green text-white font-bold py-6 px-8 rounded-xl hover:from-peace-dark hover:via-peace-green hover:to-peace-dark transform hover:scale-[1.02] transition-all duration-500 shadow-2xl hover:shadow-3xl flex items-center justify-center group relative overflow-hidden">
                                <div class="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent skew-x-12 -translate-x-full group-hover:translate-x-full transition-transform duration-1000"></div>
                                <div class="relative flex items-center">
                                    <div class="w-10 h-10 bg-peace-gold bg-opacity-20 rounded-full flex items-center justify-center mr-4 group-hover:rotate-12 transition-transform duration-300">
                                        <i class="fas fa-paper-plane text-peace-gold text-lg group-hover:translate-x-1 transition-transform duration-300"></i>
                                    </div>
                                    <div class="text-left">
                                        <div class="text-xl font-peacekeeping uppercase tracking-wider">Submit Leave Application</div>
                                        <div class="text-sm text-peace-gold opacity-90">UN Form 31 - Request and Authority for Leave</div>
                                    </div>
                                </div>
                            </button>
                        </div>

                        <div class="mt-6 p-6 bg-gradient-to-r from-peace-light to-gray-50 rounded-xl border-l-4 border-peace-green shadow-sm">
                            <div class="flex items-start">
                                <div class="w-10 h-10 bg-peace-green bg-opacity-15 rounded-full flex items-center justify-center mr-4 mt-1">
                                    <i class="fas fa-shield-alt text-peace-green text-lg"></i>
                                </div>
                                <div>
                                    <h5 class="font-bold text-peace-dark mb-2 font-peacekeeping">Security & Processing Notice</h5>
                                    <p class="text-sm text-gray-700 leading-relaxed mb-3">
                                        This application will be securely transmitted to your immediate supervisor and mission commander for approval. All information is encrypted and handled according to UN security standards.
                                    </p>
                                    <div class="flex items-center text-xs text-peace-green font-semibold">
                                        <i class="fas fa-clock mr-2"></i>
                                        <span>Standard processing time: 3-5 business days</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

            <!-- Leave Application Guidelines -->
            <div class="space-y-8">
                <!-- Main Guidelines Card -->
                <div class="bg-gradient-to-br from-peace-green to-peace-dark text-white rounded-2xl p-8 shadow-peacekeeping">
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center mr-4">
                                <i class="fas fa-book text-peace-gold text-xl"></i>
                            </div>
                            <div>
                                <p class="text-sm uppercase tracking-wider text-peace-gold font-semibold">UN FORM 31 GUIDELINES</p>
                                <h3 class="text-2xl font-bold font-peacekeeping">Leave Application Process</h3>
                            </div>
                        </div>
                        <p class="text-gray-300 leading-relaxed">
                            Review these important guidelines before submitting your leave request to ensure proper processing.
                        </p>
                    </div>

                    <div class="space-y-6">
                        <div class="flex items-start gap-4">
                            <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                <i class="fas fa-clock text-peace-gold text-lg"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg text-white mb-1">Processing Time</h4>
                                <p class="text-gray-300 leading-relaxed">
                                    Minimum 30 days advance notice required<br>
                                    Emergency leave: Immediate processing<br>
                                    <span class="text-sm text-peace-gold">Standard approval: 3-5 business days</span>
                                </p>
                            </div>
                        </div>

                        <div class="flex items-start gap-4">
                            <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                <i class="fas fa-user-tie text-peace-gold text-lg"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg text-white mb-1">Approval Authority</h4>
                                <p class="text-gray-300">
                                    Mission Commander: Up to 30 days<br>
                                    Force Commander: 31+ days<br>
                                    <span class="text-sm text-peace-gold">Emergency leave requires immediate supervisor approval</span>
                                </p>
                            </div>
                        </div>

                        <div class="flex items-start gap-4">
                            <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                <i class="fas fa-envelope text-peace-gold text-lg"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg text-white mb-1">Contact Information</h4>
                                <p class="text-gray-300">support@miliatry.com</p>
                                <p class="text-sm text-peace-gold mt-1">Leave Section: </p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Leave Types Information -->
                <div class="bg-white rounded-2xl p-8 shadow-lg border border-gray-200">
                    <div class="text-center mb-6">
                        <div class="w-16 h-16 bg-un-blue bg-opacity-10 rounded-full flex items-center justify-center mx-auto mb-4">
                            <i class="fas fa-list-alt text-2xl text-un-blue"></i>
                        </div>
                        <h3 class="text-xl font-bold text-peace-dark font-peacekeeping mb-2">Leave Types & Entitlements</h3>
                    </div>

                    <div class="space-y-4">
                        <div class="border-l-4 border-peace-green pl-4">
                            <h5 class="font-bold text-peace-dark">Annual Leave</h5>
                            <p class="text-sm text-gray-600">30 days per fiscal year • Earned at 2.5 days/month</p>
                        </div>

                        <div class="border-l-4 border-un-blue pl-4">
                            <h5 class="font-bold text-peace-dark">Emergency Leave</h5>
                            <p class="text-sm text-gray-600">Immediate family emergency • Red Cross verification required</p>
                        </div>

                        <div class="border-l-4 border-peace-gold pl-4">
                            <h5 class="font-bold text-peace-dark">Convalescent Leave</h5>
                            <p class="text-sm text-gray-600">Medical recovery • Doctor's recommendation required</p>
                        </div>

                        <div class="border-l-4 border-blue-500 pl-4">
                            <h5 class="font-bold text-peace-dark">Paternity/Maternity</h5>
                            <p class="text-sm text-gray-600">Birth or adoption • Up to 21 days (non-chargeable)</p>
                        </div>
                    </div>
                </div>

                <!-- Important Reminders -->
                <div class="bg-yellow-50 border border-yellow-200 rounded-2xl p-6">
                    <div class="flex items-center mb-4">
                        <div class="w-10 h-10 bg-yellow-500 bg-opacity-20 rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-exclamation-triangle text-yellow-600 text-lg"></i>
                        </div>
                        <h4 class="text-lg font-bold text-yellow-800">Important Reminders</h4>
                    </div>

                    <ul class="space-y-2 text-sm text-yellow-700">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle mr-2 mt-1 text-yellow-600"></i>
                            <span>Ensure all contact information is current and accurate</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle mr-2 mt-1 text-yellow-600"></i>
                            <span>Submit requests well in advance of planned leave dates</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle mr-2 mt-1 text-yellow-600"></i>
                            <span>Include supporting documentation when required</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle mr-2 mt-1 text-yellow-600"></i>
                            <span>Coordinate with your team leader before submitting</span>
                        </li>
                    </ul>
                </div>
            </div>

        </div>
    </div>
</section>
            <div class="order-1 lg:order-2">
                <div class="space-y-8">
                    <!-- Main Contact Card -->
                    <div class="relative bg-gradient-peacekeeping rounded-2xl p-8 lg:p-10 shadow-peacekeeping overflow-hidden">
                        <div class="absolute inset-0 bg-hero-pattern opacity-10"></div>
                        <div class="relative z-10">
                            <div class="mb-8">
                                <div class="flex items-center mb-4">
                                    <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center mr-4">
                                        <i class="fas fa-star text-peace-gold text-xl"></i>
                                    </div>
                                    <div>
                                        <p class="text-sm uppercase tracking-wider text-peace-gold font-semibold">Personnel Office</p>
                                        <h3 class="text-2xl font-bold font-peacekeeping text-white">Contact Information</h3>
                                    </div>
                                </div>
                                <p class="text-gray-300 leading-relaxed">
                                    Our dedicated personnel support team is here to assist with your leave application and answer any questions regarding the process.
                                </p>
                            </div>

                            <div class="space-y-6">
                                <div class="flex items-start gap-4">
                                    <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                        <i class="fas fa-map-marker-alt text-peace-gold text-lg"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold text-lg text-white mb-1">Headquarters</h4>
                                        <p class="text-gray-300 leading-relaxed">
                                            New York, NY<br>
                                            
                                        </p>
                                    </div>
                                </div>

                                <div class="flex items-start gap-4">
                                    <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                        <i class="fas fa-clock text-peace-gold text-lg"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold text-lg text-white mb-1">Operating Hours</h4>
                                        <p class="text-gray-300">
                                            Monday - Friday: 0800 - 1700 Hours<br>
                                            <span class="text-sm text-peace-gold">Emergency Contact: 24/7 Available</span>
                                        </p>
                                    </div>
                                </div>

                                <div class="flex items-start gap-4">
                                    <div class="w-12 h-12 bg-peace-gold bg-opacity-20 rounded-lg flex items-center justify-center flex-shrink-0 mt-1">
                                        <i class="fas fa-envelope text-peace-gold text-lg"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold text-lg text-white mb-1">Email Contact</h4>
                                        <p class="text-gray-300">support@miliatry.com</p>
                                        <p class="text-sm text-peace-gold mt-1">Response within 24 hours</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Additional Information Card -->
                    <div class="bg-white rounded-2xl p-8 shadow-lg border border-gray-200">
                        <div class="text-center mb-6">
                            <div class="w-16 h-16 bg-un-blue bg-opacity-10 rounded-full flex items-center justify-center mx-auto mb-4">
                                <i class="fas fa-globe text-2xl text-un-blue"></i>
                            </div>
                            <h3 class="text-xl font-bold text-peace-dark font-peacekeeping mb-2">Why Serve in Peacekeeping?</h3>
                        </div>

                        <div class="space-y-4">
                            <div class="flex items-center gap-3">
                                <div class="w-8 h-8 bg-peace-green bg-opacity-10 rounded-full flex items-center justify-center flex-shrink-0">
                                    <i class="fas fa-graduation-cap text-peace-green text-sm"></i>
                                </div>
                                <span class="text-gray-700 font-medium">World-class training & education</span>
                            </div>

                            <div class="flex items-center gap-3">
                                <div class="w-8 h-8 bg-peace-green bg-opacity-10 rounded-full flex items-center justify-center flex-shrink-0">
                                    <i class="fas fa-heart text-peace-green text-sm"></i>
                                </div>
                                <span class="text-gray-700 font-medium">Comprehensive healthcare benefits</span>
                            </div>

                            <div class="flex items-center gap-3">
                                <div class="w-8 h-8 bg-peace-green bg-opacity-10 rounded-full flex items-center justify-center flex-shrink-0">
                                    <i class="fas fa-globe text-peace-green text-sm"></i>
                                </div>
                                <span class="text-gray-700 font-medium">Serve for global peace</span>
                            </div>

                            <div class="flex items-center gap-3">
                                <div class="w-8 h-8 bg-peace-green bg-opacity-10 rounded-full flex items-center justify-center flex-shrink-0">
                                    <i class="fas fa-users text-peace-green text-sm"></i>
                                </div>
                                <span class="text-gray-700 font-medium">International brotherhood & sisterhood</span>
                            </div>
                        </div>

                        <div class="mt-6 pt-6 border-t border-gray-200">
                            <p class="text-center text-sm text-gray-600 italic">
                                "Peace cannot be kept by force; it can only be achieved by understanding." - Albert Einstein
                            </p>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</section>

<!-- Call to Action Section -->
<section class="py-16 bg-gradient-to-r from-peace-dark to-peace-green relative overflow-hidden">
    <div class="absolute inset-0 bg-hero-pattern opacity-20"></div>
    <div class="container mx-auto px-4 text-center relative z-10">
        <div class="max-w-4xl mx-auto">
            <h2 class="text-3xl lg:text-4xl font-bold text-white font-peacekeeping mb-4">
                NEED ASSISTANCE WITH YOUR LEAVE REQUEST?
            </h2>
            <p class="text-xl text-gray-300 mb-8 leading-relaxed">
                Our personnel support team is here to help guide you through the leave application process and answer any questions you may have.
            </p>
            <div class="flex flex-col sm:flex-row gap-4 justify-center">
                <a href="#application-form"
                   class="bg-peace-gold hover:bg-yellow-600 text-peace-dark font-bold py-4 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl flex items-center justify-center">
                    <i class="fas fa-calendar-plus mr-3"></i>
                    <span>Submit Leave Request</span>
                </a>
                <a href="{{url('/')}}/page/contact"
                   class="bg-transparent border-2 border-white text-white hover:bg-white hover:text-peace-dark font-bold py-4 px-8 rounded-lg transition-all duration-300 flex items-center justify-center">
                    <i class="fas fa-headset mr-3"></i>
                    <span>Contact Personnel Office</span>
                </a>
            </div>
        </div>
    </div>
</section>



@stop

@push('scripts')
@endpush
