<?php if($user['status'] == true): ?>
<div class="kitem-1 ">
    <div class="d-flex bd-highlight">
        <div class="w-100 bd-highlight">
            <h3 class="txtorange-1"></h3>
        </div>
        <div class="lex-shrink-1 bd-highlight" style="flex-basis: 100px;">
            <button type="button" class="btn btn-link back" style="color: #808080;">ย้อนกลับ</button>
        </div>
    </div>
</div>
<div class="row mx-md-n5 margin-down">
    <div class="col-md-3">
        <img src="<?php echo e(asset('../storage/km/profile/'. $user['data']['photo'])); ?>" class="img-fluid">
    </div>
    <div class="col-md-9">
        <div class="row">
            <div class="col-sm-4">
                <h5 class="txtorange-1">
                    <i class="fas fa-user-alt"></i>
                    <strong> ชื่อ-นามสกุล:</strong>
                </h5>
            </div>
            <div class="col-sm-8">
                <h5 class="txtorange-1"><?php echo e($user['data']['fname_th']); ?> <?php echo e($user['data']['lname_th']); ?></h5>
            </div>

            <div class="col-sm-4">
                <p class="kitem-1">
                    <i class="fas fa-briefcase"></i>
                    <strong> ตำแหน่ง:</strong>
                </p>
            </div>
            <div class="col-sm-8">
                <p class="kitem-1"><?php echo e($user['data']['position']); ?></p>
            </div>

            <div class="col-sm-4">
                <p class="kitem-1">
                    <i class="fas fa-building"></i>
                    <strong> หน่วยงาน:</strong>
                </p>
            </div>
            <div class="col-sm-8">
                <p class="kitem-1 year_format"><?php echo e($user['data']['organization']['name']); ?></p>
            </div>

            <div class="col-sm-4">
                <p class="kitem-1">
                    <i class="fas fa-phone-square-alt"></i>
                    <strong> เบอร์ภายใน:</strong>
                </p>
            </div>
            <div class="col-sm-8">
                <p class="kitem-1"><?php echo e($user['data']['telephone']); ?></p>
            </div>

            <div class="col-sm-4">
                <p class="kitem-1">
                    <i class="fas fa-envelope"></i>
                    <strong> อีเมล:</strong>
                </p>
            </div>
            <div class="col-sm-8">
                <p class="kitem-1"><?php echo e($user['data']['email']); ?></p>
            </div>

            <div class="col-sm-4">
                <p class="kitem-1">
                    <i class="fas fa-tags"></i>
                    <strong> ความเชี่ยวชาญ:</strong>
                </p>
            </div>
            <div class="col-sm-8 div-taghilight">
                <?php if(count( $user['data']['expertises']) > 0): ?>
                <?php $__currentLoopData = $user['data']['expertises']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div>
                    <span class="taghilight">
                        <a><?php echo e($item['name']); ?></a>
                    </span>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>

<div class="accordion" id="accordionGroup">
    <div class="accordion-item">
        <h2 class="accordion-header" id="headingTwo">
            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo"
                aria-expanded="true" aria-controls="collapseTwo">
                <!-- <i class="fas fa-graduation-cap"></i> -->
                <h5>ประวัติการศึกษา</h5>
            </button>
        </h2>
        <div id="collapseTwo" class="accordion-collapse collapse show" aria-labelledby="headingTwo">
            <div class="accordion-body">
                <div class="row">
                    <div class="table-responsive">
                        <table id="listeducation" class="table" style="width: 100%">
                            <thead>
                                <tr>
                                    <th scope="col">ปีที่จบ</th>
                                    <th scope="col">ระดับการศึกษา</th>
                                    <th scope="col">สถาบันการศึกษา</th>
                                    <th scope="col">วุฒิการศึกษา</th>
                                    <th scope="col">สาขาวิชา</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if(count($user['data']['education']) > 0): ?>
                                <?php ($num = 0); ?>
                                <?php $__currentLoopData = $user['data']['education']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php ($num = $num + 1); ?>
                                <tr class=" tr-hover">
                                    <td width="100px" style="text-align: left;">
                                        <p class="kitem-1 year_format"><?php echo e($item['year_end'] + 543); ?></p>
                                    </td>
                                    <td width="200px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['level']); ?></p>
                                    </td>
                                    <td width="200px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['university']); ?></p>
                                    </td>
                                    <td width="300px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['degrees']); ?></p>
                                    </td>
                                    <td width="200px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['branch']); ?></p>
                                    </td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php if($num == 0): ?>
                                <tr class=" tr-hover">
                                    <td colspan="5" width="100%" style="text-align: left;">
                                        <p class="kitem-1">ไม่พบข้อมูล</p>
                                    </td>
                                </tr>
                                <?php endif; ?>
                                <?php else: ?>
                                <tr class=" tr-hover">
                                    <td colspan="5" width="100%" style="text-align: left;">
                                        <p class="kitem-1">ไม่พบข้อมูล</p>
                                    </td>
                                </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="accordion-item">
        <h2 class="accordion-header" id="headingThree">
            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree"
                aria-expanded="true" aria-controls="collapseThree">
                <!-- <i class="fas fa-briefcase"></i> -->
                <h5>ประสบการณ์การทำงาน</h5>
            </button>
        </h2>
        <div id="collapseThree" class="accordion-collapse collapse show" aria-labelledby="headingThree">
            <div class="accordion-body">
                <div class="row">
                    <div class="table-responsive">
                        <table id="listexperience" class="table" style="width: 100%">
                            <thead>
                                <tr>
                                    <th scope="col">ระยะเวลา</th>
                                    <th scope="col">ตำแหน่ง</th>
                                    <th scope="col">ความเชี่ยวชาญพิเศษ</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if(count( $user['data']['experience']) > 0): ?>
                                <?php ($num = 0); ?>
                                <?php $__currentLoopData = $user['data']['experience']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php ($num = $num + 1); ?>
                                <tr class="tr-hover">
                                    <td width="200px" style="text-align: left;">
                                        <p class="kitem-1">
                                            <span class="year_format"><?php echo e($item['year_start'] + 543); ?></span>
                                            <?php if($item['year_end'] != ''): ?>
                                            -
                                            <span class="year_format"><?php echo e($item['year_end'] + 543); ?></span>
                                            <?php endif; ?>
                                        </p>
                                    </td>
                                    <td width="400px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['position']); ?></p>
                                    </td>
                                    <td width="400px" style="text-align: left;">
                                        <p class="kitem-1"><?php echo e($item['place']); ?></p>
                                    </td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php if($num == 0): ?>
                                <tr class=" tr-hover">
                                    <td colspan="3" width="100%" style="text-align: left;">
                                        <p class="kitem-1">ไม่พบข้อมูล</p>
                                    </td>
                                </tr>
                                <?php endif; ?>
                                <?php else: ?>
                                <tr class=" tr-hover">
                                    <td colspan="3" width="100%" style="text-align: left;">
                                        <p class="kitem-1">ไม่พบข้อมูล</p>
                                    </td>
                                </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php else: ?>
<p>ไม่พบข้อมูล</p>
<?php endif; ?>

<script>
$('.back').on('click', function() {
    // window.history.back();
    // heading53
    var idMenu = $(".list-group .active").attr("data-index");
    if (typeof idMenu == 'undefined') {
        window.location.replace(window.location.href);
    } else {
        window.location.replace($(".list-group .active").attr("href"));
    }
    $(".loader").show();

});
</script><?php /**PATH /var/www/html/km-web/resources/views/subpage/detailExpert.blade.php ENDPATH**/ ?>