<?php include 'header.php'; ?>


<!-- Page Wrapper -->
<div class="px-0 py-4 md:p-2 lg:p-6">
        <!-- Header -->
        <div class="flex items-center justify-between mb-5">
        
            <h1 class="text-2xl font-bold text-gray-800">
                Allocated Leave
            </h1>
        
            <a href="leave_list.php"  class="inline-flex items-center gap-2  px-4 py-2 rounded-xl border border-gray-200 bg-white hover:bg-gray-50 text-gray-700 text-sm font-semibold transition-all shadow-sm">
                <i class="ri-arrow-left-line"></i>
                Back
            </a>
        
        </div>
    <!-- Card -->
    <div class="bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden">

        <!-- Table -->
        <div class="overflow-x-auto">

            <table class="w-full min-w-[1000px]">

                <!-- Table Head -->
                <thead class="bg-gray-50 border-b border-gray-200">

                    <tr class="text-left">

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Employee ID
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Employee Name
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Leave Type
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Start Date
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            End Date
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Days
                        </th>
                        
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Applied Date
                        </th>

                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Status
                        </th>
                        
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Action
                        </th>

                    </tr>

                </thead>

                <!-- Table Body -->
                <tbody class="divide-y divide-gray-100 bg-white">

                    <!-- Row 1 -->
                    <tr class="hover:bg-gray-50 transition">

                        <td class="px-6 py-4 text-sm font-semibold text-indigo-600">
                            EMP-001
                        </td>

                        <td class="px-6 py-4">
                            Rahul Sharma
                        </td>

                        <td class="px-6 py-4 text-sm text-gray-700">
                            Sick Leave
                        </td>

                        <td class="px-6 py-4 text-sm text-gray-600">
                            22 May 2024
                        </td>

                        <td class="px-6 py-4 text-sm text-gray-600">
                            24 May 2024
                        </td>

                        <td class="px-6 py-4 text-sm text-gray-600">
                            3 Days
                        </td>
                        
                        <td class="px-6 py-4 text-sm text-gray-600">
                            15 sep 2025
                        </td>

                        <td class="px-6 py-4">

                            <span
                                class="px-3 py-1 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-700">

                                Pending

                            </span>

                        </td>
                        
                        <td class="px-6 py-4">

                            <div class="flex items-center gap-2">
                        
                                <!-- Approve -->
                                <button
                                    class="px-4 py-2 rounded-lg bg-green-100 text-green-700 hover:bg-green-200 transition text-sm font-medium flex items-center gap-1">
                        
                                    <i class="ri-check-line"></i>
                                    Accept 
                        
                                </button>
                        
                            </div>
                        
                        </td>

                    </tr>

                </tbody>

            </table>

        </div>

        <!-- Footer -->
        <div
            class="px-4 py-4 border-t border-gray-100 flex flex-col md:flex-row items-center justify-between gap-4 bg-white">

            <p class="text-sm text-gray-500">
                Showing 1 to 4 of 62 tasks
            </p>

            <!-- Pagination -->
            <div class="flex items-center gap-2">

                <button
                    class="w-9 h-9 rounded-lg border border-gray-200 text-gray-500 hover:bg-gray-100 transition flex items-center justify-center">

                    <i class="ri-arrow-left-s-line"></i>

                </button>

                <button
                    class="w-9 h-9 rounded-xl bg-gradient-to-r from-blue-500 to-indigo-600 text-white font-medium shadow-md">

                    1

                </button>

                <button
                    class="w-9 h-9 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-100 transition">

                    2

                </button>

                <button
                    class="w-9 h-9 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-100 transition">

                    3

                </button>

                <button
                    class="w-9 h-9 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-100 transition">

                    4

                </button>

                <button
                    class="w-9 h-9 rounded-lg border border-gray-200 text-gray-500 hover:bg-gray-100 transition flex items-center justify-center">

                    <i class="ri-arrow-right-s-line"></i>

                </button>

            </div>

        </div>

    </div>

</div>



<?php include 'footer.php'; ?>