<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Student Result - <?php echo e($data['student']->name); ?></title>
    <link href="<?php echo e(asset('vendor/bootstrap-5.3.7.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('vendor/fontawesome-6.7.2/css/all.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/school-portal.css')); ?>" rel="stylesheet">
    <style>
        /* Cross-browser print compatibility */
        * {
            -webkit-print-color-adjust: exact !important;
            -moz-print-color-adjust: exact !important;
            -ms-print-color-adjust: exact !important;
            color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        @page {
            size: A4;
            margin: 0.5in;
        }

        /* Browser-specific print fixes */
        @-webkit-media print {
            * {
                -webkit-print-color-adjust: exact !important;
            }
        }

        @-moz-document url-prefix() {
            .header-flex {
                display: table;
                width: 100%;
            }
            .student-section {
                display: table;
                width: 100%;
            }
            * {
                -moz-print-color-adjust: exact !important;
            }
        }

        /* Edge/IE specific */
        @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
            * {
                -ms-print-color-adjust: exact !important;
            }
        }

        .report-title {
            font-size: 16px;
            font-style: italic;
            font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
            height: 35px;
            padding-top: 8px;
            margin-top: 0px;
            background-color: #757575 !important;
        }

        .add-border {
            border: 1px solid #CCC;
        }

        .header-flex {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .school-logo {
            width: auto;
            height: 80px;
            border-radius: 5px;
            flex-shrink: 0;
        }

        .school-info {
            text-align: center;
        }

        .student-section {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 15px;
            margin-top: 10px;
        }

        .student-photo {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 5px;
            flex-shrink: 0;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            border: 2px solid #333;
            margin: 10px;
        }

        .student-details {
            flex-shrink: 0;
        }

        .result-header {
            font-size: 8px;
            background-color: #757575 !important;
        }

        .fontwhite {
            color: #FFF !important;
        }

        .result-body {
            font-size: 9px;
            font-weight: bolder;
        }

        .result-body2 {
            font-size: 8px;
            font-weight: normal;
        }

        .result-body3 {
            font-size: 7px;
            font-weight: normal;
        }

        .report-body2 {
            font-size: 9px;
            font-weight: bold;
        }

        .fontnormal {
            font-weight: normal;
        }

        .school-name {
            font-size: 18px;
            font-family: Georgia, "Times New Roman", Times, serif;
            font-weight: bolder;
            margin-bottom: 5px;
        }

        .contacts {
            font-size: 10px;
            font-weight: bold;
            margin-bottom: 3px;
        }

        .bgimage {
            background-image: url(images/signin_feild_bg.gif) !important;
            background-repeat: repeat;
            -webkit-print-color-adjust: exact !important;
            color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .qr-code {
            width: 120px;
            height: 120px;
            margin-top: 10px;
        }

        @media print {
            .no-print {
                display: none !important;
            }

            body {
                margin: 0 !important;
                padding: 0 !important;
                font-size: 12pt !important;
                line-height: 1.2 !important;
                -webkit-print-color-adjust: exact !important;
                -moz-print-color-adjust: exact !important;
                -ms-print-color-adjust: exact !important;
                color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            /* Force table borders and colors */
            table, td, th {
                border-collapse: collapse !important;
                -webkit-print-color-adjust: exact !important;
                -moz-print-color-adjust: exact !important;
                -ms-print-color-adjust: exact !important;
                color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            /* Ensure colors print across all browsers */
            .result-header, .report-title {
                background-color: #757575 !important;
                -webkit-print-color-adjust: exact !important;
                -moz-print-color-adjust: exact !important;
                -ms-print-color-adjust: exact !important;
                color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            .fontwhite {
                color: #FFF !important;
            }

            /* Force background images and colors */
            .bgimage {
                -webkit-print-color-adjust: exact !important;
                -moz-print-color-adjust: exact !important;
                -ms-print-color-adjust: exact !important;
                color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
        }

        /* Hide print buttons when generating PDF */
        .pdf-generation .no-print {
            display: none !important;
        }
    </style>
</head>
<body class="<?php echo e(request()->routeIs('student.results.termly.pdf') ? 'pdf-generation' : ''); ?> a4-portrait-min">
<div style="width:99%;margin:auto;margin-top:0px;padding:8px;margin-bottom:15px"
     class="bgimage add-border main-container">

    <!-- START OF BANNER DIV -->
    <div class="header-flex">
        <img src="<?php echo e(asset('images/rosa-mys-logo.png')); ?>" alt="school logo" class="school-logo">
        <div class="school-info">
            <div class="school-name"><?php echo e(settings('school_name', config('app.name'))); ?></div>
            <?php if(settings('school_address')): ?>
                <div class="contacts"><?php echo e(settings('school_address')); ?></div>
            <?php endif; ?>
            <div class="contacts">
                <?php if(settings('school_website')): ?>
                    <i class="fa fa-desktop"></i> <?php echo e(settings('school_website')); ?>

                <?php endif; ?>
                <?php if(settings('school_email')): ?>
                    <?php if(settings('school_website')): ?> | <?php endif; ?>
                    <i class="fa fa-envelope"></i> <?php echo e(settings('school_email')); ?>

                <?php endif; ?>
            </div>
            <?php if(settings('school_phone')): ?>
                <div class="contacts"><i class="fa fa-phone"></i> Phone: <?php echo e(settings('school_phone')); ?></div>
            <?php endif; ?>
        </div>
    </div>
    <!-- END OF BANNER DIV -->

    <!-- START OF REPORT TITLE DIV -->
    <div class="text-center report-title fontwhite" style="margin-top: 8px;">
        Termly Report
    </div>
    <!-- END OF REPORT TITLE DIV -->

    <!-- START OF DESCRIPTION SECTION DIV -->
    <div class="student-section">
        <div class="student-details">
            <table class="table-condensed report-body2">
                <tbody>
                <tr>
                    <td><strong>Student ID:</strong> <span
                            class="fontnormal"><?php echo e($data['student']->student_id ?? 'N/A'); ?></span></td>
                </tr>
                <tr>
                    <td><strong>Name:</strong> <span class="fontnormal"><?php echo e($data['student']->name); ?></span></td>
                </tr>
                <tr>
                    <td>
                        <strong>Academic Session:</strong> <span
                            class="fontnormal"><?php echo e($data['session']->start_year); ?>/<?php echo e($data['session']->end_year); ?></span>
                        &nbsp; <strong>Term:</strong> <span class="fontnormal"><?php echo e($data['session']->name); ?></span>
                    </td>
                </tr>
                <tr>
                    <td><strong>Next Term Begins:</strong> <span
                            class="fontnormal"><?php echo e($data['session']->next_session_start_date ? $data['session']->next_session_start_date->format('M jS, Y') : 'TBA'); ?></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Gender:</strong> <span
                            class="fontnormal"><?php echo e(ucfirst($data['student']->gender ?? 'N/A')); ?></span>&nbsp;
                        <strong>Class:</strong> <span class="fontnormal"><?php echo e($data['class']->display_name); ?></span>&nbsp;
                        <strong>Remarks:</strong> <span
                            style="color: <?php echo e($data['studentData']['remark'] === 'Pass' ? 'green' : 'red'); ?>"><?php echo e($data['studentData']['remark']); ?></span>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <img
            src="<?php echo e($data['student']->profile_photo ? asset('storage/' . $data['student']->profile_photo) : asset('images/user-avatar.png')); ?>"
            alt="photo" class="student-photo">
    </div>
    <!-- END OF DESCRIPTION SECTION DIV -->

    <!-- START OF result SECTION DIV -->
    <div class="row">
        <div class="col-xs-12">
            <table width="99%" border="0" align="left" class="table-condensed table-responsive">
                <tbody>
                <tr>
                    <td align="left" valign="top">
                        <table width="100%" class="table-condensed table-striped table-responsive table-bordered"
                               border="1">
                            <thead>
                            <tr class="result-header">
                                <td align="center" width="20%" class="fontwhite">Subject</td>
                                <td align="center" class="fontwhite">CA <br>(40%)</td>
                                <td align="center" class="fontwhite">Exam <br>(60%)</td>
                                <td align="center" class="fontwhite">Total <br> Score <br>(100%)</td>
                                <td align="center" class="fontwhite">Grade</td>
                                <td align="center" class="fontwhite" width="10%">Remarks</td>
                            </tr>
                            </thead>
                            <tbody class="result-body" style="text-align: center; vertical-align: middle;">
                            <?php $__currentLoopData = $data['subjects']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subject): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $subjectResult = $data['studentData']['subjects'][$subject->id] ?? null;
                                    $caScore = $subjectResult['ca_score'] ?? 0;
                                    $examScore = $subjectResult['exam_score'] ?? 0;
                                    $caAbsent = $subjectResult['ca_absent'] ?? false;
                                    $examAbsent = $subjectResult['exam_absent'] ?? false;
                                    $total = intval($subjectResult['total'] ?? 0);
                                    $grade = $subjectResult['grade'] ?? 'F';
                                    $remark = $total >= 70 ? 'Excellent' : ($total >= 60 ? 'Very Good' : ($total >= 50 ? 'Good' : ($total >= 45 ? 'Average' : ($total >= 40 ? 'Poor' : 'Fail'))));
                                ?>
                                <tr>
                                    <td nowrap="nowrap"
                                        style="text-align: left; padding-left: 8px;"><?php echo e(strtoupper($subject->display_name)); ?></td>
                                    <td><?php echo e($caAbsent ? 'Absent' : intval($caScore)); ?></td>
                                    <td><?php echo e($examAbsent ? 'Absent' : intval($examScore)); ?></td>
                                    <td><?php echo e($total); ?></td>
                                    <td><?php echo e($grade); ?></td>
                                    <td><?php echo e($remark); ?></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </td>

                    <?php if($data['approval']): ?>
                        <td align="left" valign="top" style="padding-left:5px;padding-right:5px">
                            <table width="98%" class="table-condensed table-striped table-responsive table-bordered"
                                   border="1">
                                <thead></thead>
                                <tbody class="result-body3">
                                <tr class="result-header">
                                    <td width="" height="20" align="center" class="fontwhite" nowrap="nowrap">AFFECTIVE
                                        TRAITS
                                    </td>
                                    <td width="39">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Punctuality</td>
                                    <td align="center" class=""><?php echo e(intval($data['approval']->punctuality)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Mental Alertness</td>
                                    <td align="center"><?php echo e(intval($data['approval']->mental_alertness)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Attentiveness</td>
                                    <td align="center"><?php echo e(intval($data['approval']->attentiveness)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Respect</td>
                                    <td align="center"><?php echo e(intval($data['approval']->respect)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Neatness</td>
                                    <td align="center"><?php echo e(intval($data['approval']->neatness)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Politeness</td>
                                    <td align="center"><?php echo e(intval($data['approval']->politeness)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Honesty</td>
                                    <td align="center"><?php echo e(intval($data['approval']->honesty)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Relationship with Peers</td>
                                    <td align="center"><?php echo e(intval($data['approval']->relationship_with_peers)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Attitude To School</td>
                                    <td align="center"><?php echo e(intval($data['approval']->attitude_to_school)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Spirit of Team Work</td>
                                    <td align="center"><?php echo e(intval($data['approval']->teamwork)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Completes School Work Promptly</td>
                                    <td align="center"><?php echo e(intval($data['approval']->completes_school_work_promptly)); ?></td>
                                </tr>
                                <tr class="result-header">
                                    <td height="20" nowrap="nowrap" class="fontwhite" align="center">&nbsp;&nbsp;&nbsp;PSYCHOMOTOR
                                        SKILLS
                                    </td>
                                    <td align="center">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Reading</td>
                                    <td align="center"><?php echo e(intval($data['approval']->reading)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Verbal Fluency / Diction</td>
                                    <td align="center"><?php echo e(intval($data['approval']->verbal_fluency_diction)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Handwriting</td>
                                    <td align="center"><?php echo e(intval($data['approval']->handwriting)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Musical Skills</td>
                                    <td align="center"><?php echo e(intval($data['approval']->musical_skills)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Creative Arts</td>
                                    <td align="center"><?php echo e(intval($data['approval']->creative_arts)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;Physical Education</td>
                                    <td align="center"><?php echo e(intval($data['approval']->physical_education)); ?></td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;General Reasoning</td>
                                    <td align="center"><?php echo e(intval($data['approval']->general_reasoning)); ?></td>
                                </tr>
                                </tbody>
                            </table>
                        </td>
                    <?php endif; ?>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- END OF result SECTION DIV -->

    <!-- START OF report summary SECTION DIV -->
    <div style="display: flex; gap: 10px; margin-top: 10px;">
        <div style="flex: 2;">
            <table width="100%" class="table-condensed table-striped table-responsive table-bordered" border="1">
                <thead>
                <tr class="result-header">
                    <td colspan="2" align="center" class="fontwhite">Report Summary</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td width="60%" nowrap="nowrap" class="result-body"><strong>Overall Total Score</strong></td>
                    <td width="40%" class="result-body2"><?php echo e(intval($data['studentData']['grand_total'])); ?> out
                        of <?php echo e(count($data['subjects']) * 100); ?></td>
                </tr>
                <tr>
                    <td nowrap="nowrap" class="result-body"><strong>Average Score</strong></td>
                    <td class="result-body2"><?php echo e($data['studentData']['average']); ?></td>
                </tr>
                <tr>
                    <td nowrap="nowrap" class="result-body"><strong>Total Subjects Offered</strong></td>
                    <td class="result-body2"><?php echo e(count($data['subjects'])); ?></td>
                </tr>
                <?php if($data['approval']): ?>
                    <tr>
                        <td nowrap="nowrap" class="result-body"><strong>Head Teacher's Comment</strong></td>
                        <td class="result-body2"><?php echo e($data['approval']->principal_remarks); ?></td>
                    </tr>
                <?php endif; ?>
                </tbody>
            </table>
            <?php if($qrCode): ?>
                <div class="qr-code" style="text-align: center;">
                    <?php echo $qrCode; ?>

                </div>
            <?php endif; ?>
        </div>

        <div style="flex: 2;">
            <table width="100%" class="table-condensed table-striped table-responsive table-bordered" border="1">
                <thead>
                <tr class="result-header">
                    <td colspan="2" align="center" class="fontwhite">Grading System</td>
                </tr>
                </thead>
                <tbody class="result-body">
                <tr>
                    <td width="50%" nowrap="nowrap"><strong><?php echo e($data['session']->grade_a_min); ?>% - 100%</strong></td>
                    <td width="50%" class="result-body2">A - Excellent</td>
                </tr>
                <tr>
                    <td nowrap="nowrap"><strong><?php echo e($data['session']->grade_b_min); ?>%
                            - <?php echo e($data['session']->grade_a_min - 1); ?>%</strong></td>
                    <td class="result-body2">B - Very Good</td>
                </tr>
                <tr>
                    <td nowrap="nowrap"><strong><?php echo e($data['session']->grade_c_min); ?>%
                            - <?php echo e($data['session']->grade_b_min - 1); ?>%</strong></td>
                    <td class="result-body2">C - Good</td>
                </tr>
                <tr>
                    <td nowrap="nowrap"><strong><?php echo e($data['session']->grade_d_min); ?>%
                            - <?php echo e($data['session']->grade_c_min - 1); ?>%</strong></td>
                    <td class="result-body2">D - Average</td>
                </tr>
                <tr>
                    <td nowrap="nowrap"><strong><?php echo e($data['session']->grade_e_min); ?>%
                            - <?php echo e($data['session']->grade_d_min - 1); ?>%</strong></td>
                    <td class="result-body2">E - Poor</td>
                </tr>
                <tr>
                    <td><strong>0% - <?php echo e($data['session']->grade_e_min - 1); ?>%</strong></td>
                    <td class="result-body2">F - Fail</td>
                </tr>
                <tr class="result-header">
                    <td colspan="2" class="result-body fontwhite" style="text-align: center;">
                        CA: Continuous Assessment<br>
                        Avg = Total ÷ Subjects
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div style="flex: 1;">
            <?php
                $signatureType = settings('signature_type', 'head_teacher');
                $showProprietor = settings('show_proprietor_signature', false);
                $showHeadTeacher = settings('show_head_teacher_signature', true);
                $proprietorName = settings('proprietor_name', 'School Proprietor');
                $headTeacherName = settings('head_teacher_name', 'Head Teacher');
            ?>
            <?php if($signatureType === 'both'): ?>
                <div style="display: flex; gap: 10px;">
                    <?php if($showProprietor): ?>
                        <table width="50%" class="table-condensed table-responsive">
                            <tbody class="result-body">
                            <tr>
                                <td align="center">
                                    <img src="<?php echo e(asset('images/proprietor-sign.jpg')); ?>"
                                         style="width:80px;height:50px;border-radius:5px" alt="proprietor stamp"
                                         class="img-responsive">
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header"><?php echo e($proprietorName); ?></td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header">Proprietor</td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header"><?php echo e(config('app.name')); ?></td>
                            </tr>
                            </tbody>
                        </table>
                    <?php endif; ?>
                    <?php if($showHeadTeacher): ?>
                        <table width="50%" class="table-condensed table-responsive">
                            <tbody class="result-body">
                            <tr>
                                <td align="center">
                                    <img src="<?php echo e(asset('images/head-teacher-sign.jpg')); ?>"
                                         style="width:80px;height:50px;border-radius:5px" alt="head teacher stamp"
                                         class="img-responsive">
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header"><?php echo e($headTeacherName); ?></td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header">Head Teacher</td>
                            </tr>
                            <tr>
                                <td align="center" class="fontwhite result-header"><?php echo e(config('app.name')); ?></td>
                            </tr>
                            </tbody>
                        </table>
                    <?php endif; ?>
                </div>
            <?php elseif($signatureType === 'proprietor' && $showProprietor): ?>
                <table width="100%" class="table-condensed table-responsive">
                    <tbody class="result-body">
                    <tr>
                        <td align="center">
                            <img src="<?php echo e(asset('images/proprietor-sign.jpg')); ?>"
                                 style="width:100px;height:60px;border-radius:5px" alt="proprietor stamp"
                                 class="img-responsive">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header"><?php echo e($proprietorName); ?></td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header">Proprietor</td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header"><?php echo e(config('app.name')); ?></td>
                    </tr>
                    </tbody>
                </table>
            <?php elseif($signatureType === 'head_teacher' && $showHeadTeacher): ?>
                <table width="100%" class="table-condensed table-responsive">
                    <tbody class="result-body">
                    <tr>
                        <td align="center">
                            <img src="<?php echo e(asset('images/head-teacher-sign.jpg')); ?>"
                                 style="width:100px;height:60px;border-radius:5px" alt="head teacher stamp"
                                 class="img-responsive">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header"><?php echo e($headTeacherName); ?></td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header">Head Teacher</td>
                    </tr>
                    <tr>
                        <td align="center" class="fontwhite result-header"><?php echo e(config('app.name')); ?></td>
                    </tr>
                    </tbody>
                </table>
            <?php endif; ?>
        </div>
    </div>
    <!-- END OF report summary SECTION DIV -->

    <!-- Teachers and Timestamp Section -->
    <?php if(settings('show_class_teachers_on_print', true) || settings('show_timestamp', true)): ?>
        <div style="margin-top: 15px; border-top: 1px solid #ccc; padding-top: 8px;">
            <div style="display: flex; justify-content: space-between; align-items: center; font-size: 8px;">
                <?php if(settings('show_class_teachers_on_print', true)): ?>
                    <div>
                        <strong>Class Teachers:</strong>
                        <span>
                    <?php if(isset($data['teachers']) && $data['teachers']->count() > 0): ?>
                                <?php echo e($data['teachers']->pluck('name')->join(', ')); ?>

                            <?php else: ?>
                                No teachers assigned
                            <?php endif; ?>
                </span>
                    </div>
                <?php endif; ?>
                <?php if(settings('show_timestamp', true)): ?>
                    <div>
                        <span>Generated on: <?php echo e(now()->format('M d, Y \a\t h:i A')); ?></span>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <div class="no-print" style="margin-top: 30px;">
        <button class="btn btn-primary" onclick="window.print()">
            <i class="fa fa-print"></i> Print Result Sheet
        </button>
        <button class="btn btn-secondary" onclick="window.close()">
            <i class="fa fa-times"></i> Close
        </button>
    </div>
</div>

<script>
    window.addEventListener('load', function () {
        setTimeout(function () {
            window.print();
        }, 500);
    });
</script>
</body>
</html>
<?php /**PATH C:\wamp64\www\edu-p\resources\views/results/student-result.blade.php ENDPATH**/ ?>