<div class="p-4 sm:ml-56">
    <div class=" dark:border-gray-700 ">
    <?php if(session('error')): ?>
        <div class="bg-red-100 border border-red-400 text-red-700 px-2 rounded relative" role="alert">
            <span class="block sm:inline"><?php echo e(session('error')); ?></span>
        </div>
        <?php endif; ?>
        <?php if(session('success')): ?>
        <div class="bg-green-100 border border-green-400 text-green-700 px-2 rounded relative" role="alert">
            <span class="block sm:inline"><?php echo e(session('success')); ?></span>
        </div>
        <?php endif; ?>
        <!-- Year, class and section -->
        <div class="flex flex-wrap md:gap-5 md:flex-nowrap">
            <div class="relative z-0 mb-6 group mx-1">
                <select wire:model="stdClass" class="block py-2.5 px-0 text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer">
                    <option value="null" selected disabled>Select Class</option>
                    <?php $__currentLoopData = $schClasses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $schClass): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($schClass->id); ?>"><?php echo e($schClass->class); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
        </div>
        <!-- Year, class and section End -->

        <!-- No List of students -->
        <div class="relative overflow-x-auto">
            <?php if($students == null): ?>
            <div class="flex justify-center items-center mt-">
                <div class="flex flex-col items-center">
                    <p class="text-gray-500 text-xl">No Students Found</p>
                </div>
            </div>
            <?php endif; ?>
        </div>
        <!-- No List of students End -->

        <!-- Student List -->
        <?php if($students != null): ?>
        <div class="relative overflow-x-auto">
            <table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
                <thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
                    <tr>
                        <th scope="col" class="px-6 py-3">
                            Student Name
                        </th>
                        <th scope="col" class="px-6 py-3">
                            Admission Number
                        </th>
                        <th scope="col" class="px-6 py-3">
                            
                        </th>
                        <th scope="col" class="px-6 py-3">
                            
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
                        <th scope="row" class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
                            <?php echo e($index + 1); ?>. <?php echo e($student->name); ?>

                        </th>
                        <td class="px-6 py-4">
                            <?php echo e($student->admission_no); ?>

                        </td>
                        <td class="px-6 py-4">
                            <a href="<?php echo e(route('admin.edit-student',['admissionNumber' => $student->admission_no])); ?>">
                                Edit
                            </a>
                        </td>
                        <td class="px-6 py-4">
                            <a href="<?php echo e(route('admin.add-ca',['admissionNumber' => $student->admission_no])); ?>">
                                Add C.A
                            </a>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
        <?php endif; ?>
        <!-- Student List End -->
    </div>
</div><?php /**PATH /home/lyon/Music/schm-master/resources/views/livewire/admin/pages/studentlist.blade.php ENDPATH**/ ?>