<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
            <?php echo e(__('Dashboard')); ?>

        </h2>
     <?php $__env->endSlot(); ?>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
                <div class="p-6 text-gray-900 dark:text-gray-100 text-xl font-semibold">
                    <?php echo e(__("Posted Admissions")); ?>

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

        <div class="flex flex-col gap-2 max-w-7xl mx-auto  sm:px-6 lg:px-8 py-5">
            <div class="">
                <table class="w-full">
                    <thead>
                    <tr>
                        <th class="">Sno</th>
                        <th class="">Passport</th>
                        <th class="">First Name</th>
                        <th class="">Middle Name</th>
                        <th class="">Last Name</th>
                        <th class="">D.O.B</th>
                        <th class="">Gender</th>
                        <th class="">Id. Number</th>
                        <th class="">Phone</th>
                        <th class="">Address</th>
                        <th class="">Location</th>
                        <th class="">View</th>
                    </tr>
                    </thead>

                    <tbody>

                    <?php
                        $admissions=\App\Models\Admissions::query()->orderBy('created_at')->get();
                    ?>
                    <?php $__currentLoopData = $admissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $adm): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <th>1</th>
                            <td>
                                <div class="flex items-center p-2">
                                    <img src="<?php echo e(asset($adm->passport)); ?>" alt="<?php echo e($adm->firstname); ?>"
                                         class="rounded-full mx-auto w-20 h-20">
                                </div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->firstname); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->middlename); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->lastname); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->dob); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->gender); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->idno); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->phone); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->address); ?></div>
                            </td>
                            <td>
                                <div class="text-center"><?php echo e($adm->location); ?></div>
                            </td>
                            <td>
                                <div class="flex items-center justify-end">
                                    <?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.secondary-button','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('secondary-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                                        <a href="<?php echo e(route('pdf', $adm->id)); ?>"
                                           class="flex items-center justify-between gap-2">
                                            Download
                                        </a>
                                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?>
<?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?>
<?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?>
<?php endif; ?>

                                </div>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH K:\Laravel\MEC\resources\views/dashboard.blade.php ENDPATH**/ ?>