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



<!-- Page Wrapper -->
<div class="px-0 py-4 md:p-2 lg:p-6">

<!-- Header -->
    <div
        class="flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-5 bg-white p-4 rounded-lg border border-gray-200">

        <!-- Title -->
        <div>
            <h1 class="text-2xl font-bold text-gray-800">
               Paid Leaves List

            </h1>

            <p class="text-sm text-gray-500">
               Manage all leaves from here
            </p>
        </div>

        <!-- Actions -->
        <div class="flex flex-col sm:flex-row gap-3">

            <!-- Search -->
            <div class="relative">

                <input type="text" placeholder="Search Employee..."
                    class="w-full sm:w-[220px] pl-10 pr-4 py-2.5 rounded-xl border border-gray-200 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none text-sm">

                <i class="ri-search-line absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>

            </div>
            
        </div>

    </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
                        </th>
                
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Total Leave
                        </th>
                
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Used Leave
                        </th>
                
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Remaining Leave
                        </th>
                
                        <th class="px-6 py-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                            Year
                        </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">

                    <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">
                            Dev Mistry
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-700">
                           18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            0
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            2026
                        </td>
                        
                        <!-- View -->
                        <td class="px-6 py-4 text-sm text-gray-600">
                            <a href="view_paid_leave.php" class="w-9 h-9 rounded-lg bg-green-50 text-green-600 hover:bg-green-100 transition flex items-center justify-center">
                                <i class="ri-eye-line"></i>
                            </a>
                        </td>
                
                    </tr>
                    
                    <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">
                            Dev Mistry
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-700">
                           18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            0
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            2025
                        </td>
                        
                        <!-- View -->
                        <td class="px-6 py-4 text-sm text-gray-600">
                            <a href="view_paid_leave.php" class="w-9 h-9 rounded-lg bg-green-50 text-green-600 hover:bg-green-100 transition flex items-center justify-center">
                                <i class="ri-eye-line"></i>
                            </a>
                        </td>
                
                    </tr>
                    
                    <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">
                            Dev Mistry
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-700">
                           18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            0
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            18
                        </td>
                
                        <td class="px-6 py-4 text-sm text-gray-600">
                            2024
                        </td>
                        
                        <!-- View -->
                        <td class="px-6 py-4 text-sm text-gray-600">
                            <a href="view_paid_leave.php" class="w-9 h-9 rounded-lg bg-green-50 text-green-600 hover:bg-green-100 transition flex items-center justify-center">
                                <i class="ri-eye-line"></i>
                            </a>
                        </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">

            <!-- Left -->
            <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">
                    <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-500 hover:bg-gray-100 transition">
                    <i class="ri-arrow-right-s-line"></i>
                </button>

            </div>

        </div>

    </div>

</div>


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