<div id="printableArea">
    <div class="modal-body p-4">
        <form action="<?php echo base_url() ?>admin/performance/give_performance_appraisal/<?php
        if (!empty($get_appraisal_info->performance_appraisal_id)) {
            echo $get_appraisal_info->performance_appraisal_id;
        }
        ?>" method="post" class="form-horizontal">
            <div class="mt-2 grid grid-cols-1 gap-4 lg:grid-cols-12">
                <div class="lg:col-span-3 flex justify-center lg:justify-start">
                    <div class="rounded-lg border border-border bg-muted p-2">
                        <?php if ($get_appraisal_info->avatar): ?>
                            <img src="<?php echo base_url() . $get_appraisal_info->avatar; ?>"
                                 class="h-36 w-32 rounded-md object-cover">
                        <?php else: ?>
                            <img src="<?php echo base_url() ?>/img/user.png" alt="Employee_Image" class="h-36 w-32 rounded-md object-cover">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="lg:col-span-9">
                    <div>
                        <div class="space-y-2">
                                <h3 class="flex flex-wrap items-center justify-between gap-2">
                                    <span><?php echo $get_appraisal_info->fullname; ?></span>
                                    <span class="flex items-center gap-2">
                                        <button class="inline-flex items-center gap-2 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-xs font-semibold text-red-600 hover:bg-red-100 btn-print"
                                                type="button" data-toggle="tooltip" title="<?= lang('print') ?>"
                                                onclick="printDiv('printableArea')">
                                            <i data-lucide="printer" class="h-4 w-4"></i>
                                            <?= lang('print') ?>
                                        </button>
                                        <a href="<?= base_url() ?>admin/performance/appraisal_details_pdf/<?= $get_appraisal_info->performance_appraisal_id ?>"
                                           class="inline-flex items-center gap-2 rounded-lg border border-indigo-200 bg-indigo-50 px-3 py-2 text-xs font-semibold text-indigo-600 hover:bg-indigo-100"
                                           data-toggle="tooltip" data-placement="top" title="<?= lang('pdf') ?>">
                                            <i data-lucide="file-text" class="h-4 w-4"></i>
                                            PDF
                                        </a>
                                    </span>
                                </h3>
                                <hr class="mt0"/>
                                <table class="table-hover">
                                    <tr>
                                        <td><strong><?= lang('emp_id') ?></strong></td>
                                        <td>&nbsp;&nbsp;&nbsp;</td>
                                        <td><?php echo $get_appraisal_info->employment_id ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong><?= lang('departments') ?></strong></td>
                                        <td>&nbsp;&nbsp;&nbsp;</td>
                                        <td><?php echo "$get_appraisal_info->deptname"; ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong><?= lang('designation') ?></strong></td>
                                        <td>&nbsp;&nbsp;&nbsp;</td>
                                        <td><?php echo "$get_appraisal_info->designations"; ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong><?= lang('appraisal_month') ?></strong></td>
                                        <td>&nbsp;&nbsp;&nbsp;</td>
                                        <td><?php echo date('M Y', safe_strtotime($get_appraisal_info->appraisal_month)); ?></td>
                                    </tr>
                                </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
                <div>
                    <div class="rounded-xl border border-border bg-card shadow-sm">
                        <div class="border-b border-border px-4 py-3">
                            <h4 class="text-sm font-semibold text-foreground"><?= lang('technical_competency') ?></h4>
                        </div>
                        <div class="p-4">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th><?= lang('performance_indicator') ?></th>
                                <th><?= lang('expected_value') ?></th>
                                <th><?= lang('set_value') ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr> <!-- customer experience management row ---->
                                <td style="font-size: 12px"><?= lang('customer_experience_management') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->customer_experiece_management) && $performance_indicator_details->customer_experiece_management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $performance_indicator_details->customer_experiece_management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $performance_indicator_details->customer_experiece_management == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $performance_indicator_details->customer_experiece_management == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->customer_experiece_management) && $get_appraisal_info->customer_experiece_management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $get_appraisal_info->customer_experiece_management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $get_appraisal_info->customer_experiece_management == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->customer_experiece_management) && $get_appraisal_info->customer_experiece_management == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- marketing row ---->
                                <td><?= lang('marketing') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->marketing) && $performance_indicator_details->marketing == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->marketing) && $performance_indicator_details->marketing == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->marketing) && $performance_indicator_details->marketing == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->marketing) && $performance_indicator_details->marketing == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->marketing) && $get_appraisal_info->marketing == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->marketing) && $get_appraisal_info->marketing == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->marketing) && $get_appraisal_info->marketing == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->marketing) && $get_appraisal_info->marketing == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- management row ---->
                                <td><?= lang('management') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->management) && $performance_indicator_details->management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->management) && $performance_indicator_details->management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->management) && $performance_indicator_details->management == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->management) && $performance_indicator_details->management == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->management) && $get_appraisal_info->management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->management) && $get_appraisal_info->management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->management) && $get_appraisal_info->management == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->management) && $get_appraisal_info->management == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- administration row ---->
                                <td><?= lang('administration') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->administration) && $performance_indicator_details->administration == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->administration) && $performance_indicator_details->administration == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->administration) && $performance_indicator_details->administration == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->administration) && $performance_indicator_details->administration == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->administration) && $get_appraisal_info->administration == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->administration) && $get_appraisal_info->administration == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->administration) && $get_appraisal_info->administration == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->administration) && $get_appraisal_info->administration == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- presentation_skill row ---->
                                <td><?= lang('presentation_skill') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->presentation_skill) && $performance_indicator_details->presentation_skill == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $performance_indicator_details->presentation_skill == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $performance_indicator_details->presentation_skill == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $performance_indicator_details->presentation_skill == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->presentation_skill) && $get_appraisal_info->presentation_skill == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $get_appraisal_info->presentation_skill == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $get_appraisal_info->presentation_skill == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->presentation_skill) && $get_appraisal_info->presentation_skill == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- quality_of_work row ---->
                                <td><?= lang('quality_of_work') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->quality_of_work) && $performance_indicator_details->quality_of_work == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $performance_indicator_details->quality_of_work == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $performance_indicator_details->quality_of_work == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $performance_indicator_details->quality_of_work == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->quality_of_work) && $get_appraisal_info->quality_of_work == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $get_appraisal_info->quality_of_work == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $get_appraisal_info->quality_of_work == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->quality_of_work) && $get_appraisal_info->quality_of_work == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- efficiency row ---->
                                <td><?= lang('efficiency') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->efficiency) && $performance_indicator_details->efficiency == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $performance_indicator_details->efficiency == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $performance_indicator_details->efficiency == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $performance_indicator_details->efficiency == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->efficiency) && $get_appraisal_info->efficiency == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $get_appraisal_info->efficiency == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $get_appraisal_info->efficiency == 3) {
                                        echo lang('advanced');
                                    } elseif (!empty($performance_indicator_details->efficiency) && $get_appraisal_info->efficiency == 4) {
                                        echo lang('expert_leader');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>

                            </tbody>
                        </table>
                        </div>
                    </div>
                </div><!-- Technical Competency Ends ---->

                <!-- Behavioural Competency Starts ---->
                <div>
                    <div class="rounded-xl border border-border bg-card shadow-sm">
                        <div class="border-b border-border px-4 py-3">
                            <h4 class="text-sm font-semibold text-foreground"><?= lang('behavioural_competency') ?> </h4>
                        </div>
                        <div class="p-4">
                        <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th><?= lang('performance_indicator') ?></th>
                                <th><?= lang('expected_value') ?></th>
                                <th><?= lang('set_value') ?></th>
                            </tr>
                            </thead>
                            <tbody>

                            <tr> <!-- integrity row ---->
                                <td><?= lang('integrity') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->integrity) && $performance_indicator_details->integrity == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->integrity) && $performance_indicator_details->integrity == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->integrity) && $performance_indicator_details->integrity == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->integrity) && $get_appraisal_info->integrity == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->integrity) && $get_appraisal_info->integrity == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->integrity) && $get_appraisal_info->integrity == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- professionalism row ---->
                                <td><?= lang('professionalism') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->professionalism) && $performance_indicator_details->professionalism == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->professionalism) && $performance_indicator_details->professionalism == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->professionalism) && $performance_indicator_details->professionalism == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->professionalism) && $get_appraisal_info->professionalism == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->professionalism) && $get_appraisal_info->professionalism == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->professionalism) && $get_appraisal_info->professionalism == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- team_work row ---->
                                <td><?= lang('team_work') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->team_work) && $performance_indicator_details->team_work == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->team_work) && $performance_indicator_details->team_work == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->team_work) && $performance_indicator_details->team_work == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->team_work) && $get_appraisal_info->team_work == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->team_work) && $get_appraisal_info->team_work == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->team_work) && $get_appraisal_info->team_work == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- critical_thinking row ---->
                                <td><?= lang('critical_thinking') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->critical_thinking) && $performance_indicator_details->critical_thinking == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->critical_thinking) && $performance_indicator_details->critical_thinking == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->critical_thinking) && $performance_indicator_details->critical_thinking == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->critical_thinking) && $get_appraisal_info->critical_thinking == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->critical_thinking) && $get_appraisal_info->critical_thinking == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->critical_thinking) && $get_appraisal_info->critical_thinking == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- conflict_management row ---->
                                <td><?= lang('conflict_management') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->conflict_management) && $performance_indicator_details->conflict_management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->conflict_management) && $performance_indicator_details->conflict_management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->conflict_management) && $performance_indicator_details->conflict_management == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->conflict_management) && $get_appraisal_info->conflict_management == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->conflict_management) && $get_appraisal_info->conflict_management == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->conflict_management) && $get_appraisal_info->conflict_management == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- attendance row ---->
                                <td><?= lang('attendance') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->attendance) && $performance_indicator_details->attendance == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->attendance) && $performance_indicator_details->attendance == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->attendance) && $performance_indicator_details->attendance == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->attendance) && $get_appraisal_info->attendance == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->attendance) && $get_appraisal_info->attendance == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->attendance) && $get_appraisal_info->attendance == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr> <!-- ability_to_meet_deadline row ---->
                                <td><?= lang('ability_to_meet_deadline') ?></td>
                                <td><?php
                                    if (!empty($performance_indicator_details->ability_to_meed_deadline) && $performance_indicator_details->ability_to_meed_deadline == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->ability_to_meed_deadline) && $performance_indicator_details->ability_to_meed_deadline == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->ability_to_meed_deadline) && $performance_indicator_details->ability_to_meed_deadline == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                                <td>
                                    <?php
                                    if (!empty($performance_indicator_details->ability_to_meed_deadline) && $get_appraisal_info->ability_to_meed_deadline == 1) {
                                        echo lang('beginner');
                                    } elseif (!empty($performance_indicator_details->ability_to_meed_deadline) && $get_appraisal_info->ability_to_meed_deadline == 2) {
                                        echo lang('intermediate');
                                    } elseif (!empty($performance_indicator_details->ability_to_meed_deadline) && $get_appraisal_info->ability_to_meed_deadline == 3) {
                                        echo lang('advanced');
                                    } else {
                                        echo "<span style='color:red;font - style: italic;line - height:2.4;'>" . lang('not_set') . "</span>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        </div>
                        <!-- Behavioural Competency Ends ---->
                    </div>
                </div>
            </div>

            <?php if (!empty($get_appraisal_info->general_remarks)) { ?>
                <blockquote class="mt-4 rounded-lg border border-border bg-muted px-4 py-3 text-xs text-muted-foreground">
                    <?php echo $get_appraisal_info->general_remarks; ?>
                </blockquote>
            <?php } ?>

            <div class="modal-footer hidden-print border-t border-border pt-4 mt-4">
                <div class="flex items-center justify-end gap-2">
                    <?php if (!empty($get_appraisal_info->performance_appraisal_id)) { ?>
                        <button type="submit"
                                class="inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-3 py-2 text-xs font-semibold text-white shadow-sm hover:bg-indigo-500">
                            <i data-lucide="edit" class="h-4 w-4"></i>
                            <?= lang('edit') ?>
                        </button>
                    <?php } ?>
                    <button type="button"
                            class="inline-flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-semibold text-foreground hover:bg-muted"
                            data-dismiss="modal">
                        <i data-lucide="x" class="h-4 w-4"></i>
                        <?= lang('close') ?>
                    </button>
                </div>
            </div>

    </div>
</div>

<script type="text/javascript">
    function printDiv(printableArea) {
        var printContents = document.getElementById(printableArea).innerHTML;
        var originalContents = document.body.innerHTML;
        document.body.innerHTML = printContents;
        window.print();
        document.body.innerHTML = originalContents;
    }
</script>
