<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?php echo e($adm->firstname); ?> Admission Letter</title>

    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
</head>
<body>
<div class="flex items-center justify-center min-h-screen p-2 min-w-[1000px]">
    <div class="w-full h-full p-5  max-w-[1000px] relative">
        <div class="flex items-center justify-center gap-10 py-2 border-b-4 border-red-500">
            <div class="">
                <img src="<?php echo e(asset($adm->passport)); ?>" alt="<?php echo e($adm->firstname); ?>"
                     class="rounded-full mx-auto w-52 h-52">
            </div>

            <div class="flex flex-col items-center justify-center font-medium text-green-800">
                <h1 class="text-4xl font-medium text-red-500">
                    Maasai Education Center
                </h1>
                <h2 class="">The Style Hotel School</h2>
                <span class="">P.O. Box 32, Lolgorian - Narok County</span>
                <span class="">
              Email:info.maasaieducationcenter2019@gmail.com
            </span>
                <span class="">Tel: +254 713 983 406</span>
            </div>
        </div>
        <div class="mt-1 border-t-2 border-red-500">
            <div class="">
                <h1 class="py-2 font-bold text-red-500 uppercase">
                    Student Admission Form
                </h1>
                <table class="w-full border-2 border-black text-start">
                    <tbody>
                    <tr class="border-b-2 border-black">
                        <th class="p-1 text-lg text-start">Name:</th>
                        <td class="text-lg text-blue-500">
                            <?php echo e($adm->firstname); ?>

                            <?php echo e($adm->middlename); ?>

                            <?php echo e($adm->lastname); ?>

                        </td>
                    </tr>
                    <tr class="border-b-2 border-black">
                        <th class="p-1 text-start">Date of Birth:</th>
                        <td class="text-lg text-blue-500"><?php echo e($adm->dob); ?></td>
                    </tr>
                    <tr class="border-b-2 border-black">
                        <th class="p-1 text-start">Address:</th>
                        <td class="text-lg text-blue-500"><?php echo e($adm->address); ?></td>
                    </tr>
                    <tr class="border-b-2 border-black">
                        <th class="p-1 text-start">Telephone Number:</th>
                        <td class="text-lg text-blue-500">0<?php echo e($adm->phone); ?></td>
                    </tr>
                    <tr class="border-b-2 border-black">
                        <th class="p-1 text-start">Village / Sub Location:</th>
                        <td class="text-lg text-blue-500"><?php echo e($adm->location); ?></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="">
                <h1 class="py-2 font-medium uppercase">
                    Academic Qualification
                    <span class="capitalize">
                (Name, School, Year of Completion and Qualification)
              </span>
                </h1>

                <div class="">
                    <div class="grid items-center grid-cols-12 gap-2 py-1">
                        <h1 class="font-medium">School:</h1>
                        <span class="col-span-4 px-3 text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->school); ?>

                </span>
                        <h1 class="font-medium">Year:</h1>
                        <span class="col-span-2 px-3 text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->year); ?>

                </span>
                        <h1 class="col-span-3 font-medium ">
                            Qualification/Grade:
                        </h1>
                        <span class="px-3 text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->grade); ?>

                </span>
                    </div>
                    <div class="grid items-center grid-cols-12 py-1">
                        <h1 class="col-span-3 font-medium">Course Applied For:</h1>
                        <span class="col-span-9 px-3 text-xl text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->course); ?>

                </span>
                    </div>
                    <div class="grid items-center grid-cols-12 py-1">
                        <h1 class="col-span-4 font-medium">
                            Commencement of Course:
                        </h1>
                        <span class="col-span-8 px-3 text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->begin); ?>

                </span>
                    </div>
                    <div class="grid items-center grid-cols-5 py-1">
                        <h1 class="col-span-1 font-medium ">End of Course:</h1>
                        <span class="col-span-4 px-3 text-center text-blue-500 border-b-2 border-b-black">
                  <?php echo e($adm->end); ?>

                </span>
                    </div>
                    <div class="flex flex-col py-3">
                        <h1 class="font-medium text-red-500">
                            I have read the school rules and promise to adbide by them
                        </h1>
                        <div class="grid grid-cols-12 py-2">
                            <h1 class="col-span-2 font-medium ">Student Sign:</h1>
                            <span class="col-span-4 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                        </div>
                        <div class="grid grid-cols-10 gap-2 py-2">
                            <h1 class="col-span-2 font-medium ">Guardian Sign:</h1>
                            <span class="col-span-3 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                            <h1 class="col-span-1 font-medium ">ID No.:</h1>
                            <span class="col-span-2 px-3 text-center text-blue-500 border-b-2 border-b-black">
                    <?php echo e($adm->idno); ?>

                  </span>
                            <span class="col-span-2 text-red-500 font-xs">
                    (Attach a copy)
                  </span>
                        </div>
                    </div>
                    <div class="py-1">
                        <h1 class="text-lg font-medium">
                            Other mandatory admission requirements
                        </h1>
                        <div class="ps-5">
                            - Secondary school leaning certificate, a copy of your ID, Two
                            passport size photograph
                        </div>
                        <div class="ps-5">
                            - Photocopy of school KCSE Certificate
                        </div>
                        <div class="ps-5">- A copy of KCPE Certificate</div>
                        <div class="ps-5">
                            - Medical Certificate in case of special attention & complete
                            boarding facility
                        </div>
                        <div class="ps-5">
                            - Boarding equipments (Mattress, 2 blankets, 2 bed sheets), a
                            towel, plate, cup, spoon and folk, washing buckets, school
                            uniform, Maasai shuka/dress
                        </div>
                        <div class="ps-5">- 7 exercise books A4 size</div>
                        <div class="ps-5">
                            - For culinary art students are required to come with the
                            following requirements:-
                            <div class="ps-5">
                                - Black trouser, white chef jacket, neckerchef, 1/2 box
                                file, 2cs recipe cards and a chef hut
                            </div>
                        </div>
                        <div class="ps-5">
                            - For front office and housing operations:-
                            <div class="ps-5">
                                - 2 white shirts, 2 black trousers and a Maasai Shuka
                            </div>
                        </div>
                        <div class="ps-5">- UpFront Fee Payment</div>
                        <div class="ps-5">- One RIM paper</div>
                        <div class="ps-5">- Interview fee kshs.1000</div>
                    </div>
                    <div class="py-1">
                        <h1 class="text-lg font-medium underline uppercase ">
                            For Official Use only
                        </h1>
                        <div class="grid grid-cols-11 py-2">
                            <h1 class="col-span-3 font-medium ">Interview Score.:</h1>
                            <div class="grid grid-cols-11 col-span-2 gap-2 ">
                                <span
                                    class="col-span-5 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                                <span class="col-span-1">/</span>
                                <span
                                    class="col-span-5 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                            </div>
                            <h1 class="col-span-2 px-2 font-medium text-end">
                                Accepted.:
                            </h1>
                            <span class="col-span-1 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                            <h1 class="col-span-2 px-2 font-medium text-end">
                                Rejected.:
                            </h1>
                            <span class="col-span-1 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>
                        </div>
                        <div class="grid items-end grid-cols-10 gap-2 py-2">
                            <h1 class="col-span-2 font-medium uppercase">
                                Handled By:
                            </h1>
                            <span class="col-span-3 px-3 text-center text-blue-500 border-b-2 border-b-black"></span>

                            <h1 class="col-span-5 font-medium text-center ">
                                For Maasai Education Center/Oreteti Mara Lodge School
                            </h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<script>
    // Function to print the page and then redirect back to the previous page
    function printAndRedirect() {
        // Trigger printing
        window.print();

        // Set a delay for redirecting after printing (adjust the delay time as needed)
        setTimeout(function() {
            // Redirect to the previous page
            window.location.href = document.referrer;
        }, 500); // 500 milliseconds (0.5 seconds) delay before redirection
    }

    // Automatically call the function when the page loads
    window.onload = printAndRedirect;
</script>
</body>
</html>
<?php /**PATH I:\Laravel\mec\resources\views/pdf.blade.php ENDPATH**/ ?>