<?php
$edited = can_action('86', 'edited');
?>

<div class="modal-body">
    <form action="<?php echo base_url() ?>admin/performance/create_indicator/<?php
    if (!empty($performance_indicator_details->performance_indicator_id)) {
        echo $performance_indicator_details->performance_indicator_id;
    }
    ?>" method="post" class="space-y-4">
        <div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
            <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 space-y-2">
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground" style="font-size: 12px"><?= lang('customer_experience_management') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('marketing') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('management') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('administration') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('presentation_skill') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('quality_of_work') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('efficiency') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                </div>
            </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 space-y-2">
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('integrity') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('professionalism') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('team_work') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('critical_thinking') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('conflict_management') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('attendance') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                    <div class="flex items-center justify-between gap-3">
                        <label class="text-sm font-medium text-foreground"><?= lang('ability_to_meet_deadline') ?>:</label>
                        <div>
                            <p class="form-control-static" style="text-align: justify;">
                                <?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 lang('none');
                                }
                                ?>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
