
<?php Fun::lang()?>
<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-offset-1 col-sm-10">
                <div class="col-sm-9">
                    <fieldset style="line-height: 30px">
                        <legend><?php echo e(__('administrator.info_detail')); ?></legend>
                        <div class="col-sm-4"><?php echo e(__('administrator.code')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->code); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.name')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->name); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.nationality')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->nationality); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.dob')); ?></div>
                        <div class="col-sm-8">: <?php echo e(date('d-m-Y',strtotime($emp->date_of_birth))); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.gender')); ?></div>
                        <div class="col-sm-8">: <?php echo e(__('administrator.'.$emp->gender)); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.marital_status')); ?></div>
                        <div class="col-sm-8">: <?php echo e(__('administrator.'.$emp->marital_status)); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.id_card')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->id_card); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.employment_status')); ?></div>
                        <div class="col-sm-8">: <?php echo e(optional($emp->employment)->name); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.job')); ?></div>
                        <div class="col-sm-8">: <?php echo e(optional($emp->job)->job_title); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.contact')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->phone); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.email')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->email); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.joined_date')); ?></div>
                        <div class="col-sm-8">: <?php echo e(date('d-m-Y',strtotime($emp->joined_date))); ?></div>

                        <div class="col-sm-4"><?php echo e(__('administrator.pob')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->place_of_birth); ?> </div>

                        <div class="col-sm-4"><?php echo e(__('administrator.address')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->address); ?> </div>

                        <div class="col-sm-4"> <?php echo e(__('administrator.note')); ?></div>
                        <div class="col-sm-8">: <?php echo e($emp->note); ?> </div>
                    </fieldset>
                    <div class="br"><br>&nbsp;</div>
                    <fieldset>
                        <legend><?php echo e(__('administrator.educate')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $education = $emp->educate;
                            ?>
                            <?php if(is_object($education) || is_array($education)): ?>
                                <?php if(count($education)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;"
                                               border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.certificate')); ?></th>
                                                <th><?php echo e(__('administrator.major')); ?></th>
                                                <th><?php echo e(__('administrator.from_date')); ?></th>
                                                <th><?php echo e(__('administrator.to_date')); ?></th>
                                                <th><?php echo e(__('administrator.description')); ?></th>
                                                <th><?php echo e(__('administrator.foreign')); ?></th>
                                                <th><?php echo e(__('administrator.hobbies')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($education)>0): ?>
                                                <?php $__currentLoopData = $education; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php

                                                        $if++;
                                                            $certificate = isset($p['certificate'])?$p['certificate']:'';
                                                            $major = isset($p['major'])?$p['major']:'';
                                                            $from_date = isset($p['from_date'])?$p['from_date']:'';
                                                            $to_date = isset($p['to_date'])?$p['to_date']:'';
                                                            $description = isset($p['description'])?$p['description']:'';
                                                            $foreign_language_ability = isset($p['foreign_language_ability'])?$p['foreign_language_ability']:'';
                                                            $hobbies = isset($p['hobbies'])?$p['hobbies']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($certificate); ?></td>
                                                        <td><?php echo e($major); ?></td>
                                                        <td><?php echo e($from_date); ?></td>
                                                        <td><?php echo e($to_date); ?></td>
                                                        <td><?php echo e($description); ?></td>
                                                        <td><?php echo e($foreign_language_ability); ?></td>
                                                        <td><?php echo e($hobbies); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>
                    <div class="br"><br>&nbsp;</div>
                    <fieldset>
                        <legend><?php echo e(__('administrator.language')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $language = $emp->language;
                            ?>
                            <?php if(is_array($language) || is_object($language)): ?>
                                <?php if(count($language)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;" border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.language')); ?></th>
                                                <th><?php echo e(__('administrator.level')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($language)>0): ?>
                                                <?php $__currentLoopData = $language; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $if++;
                                                            $lang = isset($p['name'])?$p['name']:'';
                                                            $level =isset($p['type'])? $p['type']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($lang); ?></td>
                                                        <td><?php echo e($level); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>
                    <div class="br"><br>&nbsp;</div>
                    <fieldset>
                        <legend><?php echo e(__('administrator.work_experience')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $work_experience = $emp->work_experience;
                            ?>
                            <?php if(is_array($work_experience) || is_object($work_experience)): ?>
                                <?php if(count($work_experience)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;" border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.company_name')); ?></th>
                                                <th><?php echo e(__('administrator.position')); ?></th>
                                                <th><?php echo e(__('administrator.location')); ?></th>
                                                <th><?php echo e(__('administrator.join_date_work')); ?></th>
                                                <th><?php echo e(__('administrator.end_date_work')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($work_experience)>0): ?>
                                                <?php $__currentLoopData = $work_experience; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $if++;
                                                            $company_name = isset($p['company_name'])?$p['company_name']:'';
                                                            $position = isset($p['position'])? $p['position']:'';
                                                            $location = isset($p['location'])? $p['location']:'';
                                                            $join_date_w = isset($p['join_date_w'])? $p['join_date_w']:'';
                                                            $end_date_w = isset($p['end_date_w'])? $p['end_date_w']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($company_name); ?></td>
                                                        <td><?php echo e($position); ?></td>
                                                        <td><?php echo e($location); ?></td>
                                                        <td><?php echo e($join_date_w); ?></td>
                                                        <td><?php echo e($end_date_w); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>

                    <div class="br"><br>&nbsp;</div>
                    <fieldset>
                        <legend><?php echo e(__('administrator.emergency_contact')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $emergency = $emp->emergency_contact;
                            ?>
                            <?php if(is_array($emergency) || is_object($emergency)): ?>
                                <?php if(count($emergency)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;" border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.name')); ?></th>
                                                <th><?php echo e(__('administrator.description')); ?></th>
                                                <th><?php echo e(__('administrator.relationship')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($emergency)>0): ?>
                                                <?php $__currentLoopData = $emergency; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $if++;
                                                            $name = isset($p['name'])?$p['name']:'';
                                                            $desc = isset($p['desc'])? $p['desc']:'';
                                                            $relationship = isset($p['relationship'])? $p['relationship']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($name); ?></td>
                                                        <td><?php echo e($desc); ?></td>
                                                        <td><?php echo e($relationship); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>
                    <div class="br"><br>&nbsp;</div>
                    <fieldset>
                        <legend><?php echo e(__('administrator.family(only)')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $family_full = $emp->family_full;
                            ?>
                            <?php if(is_array($family_full) || is_object($family_full)): ?>
                                <?php if(count($family_full)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;" border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.relation')); ?></th>
                                                <th><?php echo e(__('administrator.name')); ?></th>
                                                <th><?php echo e(__('administrator.sex')); ?></th>
                                                <th><?php echo e(__('administrator.dob')); ?></th>
                                                <th><?php echo e(__('administrator.job')); ?></th>
                                                <th><?php echo e(__('administrator.type')); ?></th>
                                                <th><?php echo e(__('administrator.alive')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($family_full)>0): ?>
                                                <?php $__currentLoopData = $family_full; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $if++;
                                                            $relation = isset($p['relation'])?$p['relation']:'';
                                                            $name =isset( $p['name'])? $p['name']:'';
                                                            $sex = isset($p['sex'])?$p['sex']:'';
                                                            $dob = isset($p['dob'])?$p['dob']:'';
                                                            $job = isset($p['job'])?$p['job']:'';
                                                            $type =isset( $p['type'])? $p['type']:'';
                                                            $alive = isset($p['alive'])?$p['alive']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($relation); ?></td>
                                                        <td><?php echo e($name); ?></td>
                                                        <td><?php echo e($sex); ?></td>
                                                        <td><?php echo e($dob); ?></td>
                                                        <td><?php echo e($job); ?></td>
                                                        <td><?php echo e($type); ?></td>
                                                        <td><?php echo e($alive); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend><?php echo e(__('administrator.family')); ?></legend>
                        <div class="col-sm-12">
                            <?php
                                $family = $emp->family;
                            ?>
                            <?php if(is_array($family) || is_object($family)): ?>
                                <?php if(count($family)>0): ?>
                                    <div style="width: 100%; height: auto; float: left;">
                                        <table class="table table-bordered" style="width: 100%;border-collapse: collapse;" border="1">
                                            <thead>
                                            <tr>
                                                <th><?php echo e(__('administrator.no.')); ?></th>
                                                <th><?php echo e(__('administrator.relation')); ?></th>
                                                <th><?php echo e(__('administrator.name')); ?></th>
                                                <th><?php echo e(__('administrator.sex')); ?></th>
                                                <th><?php echo e(__('administrator.dob')); ?></th>
                                                <th><?php echo e(__('administrator.job')); ?></th>
                                                <th><?php echo e(__('administrator.type')); ?></th>
                                                <th><?php echo e(__('administrator.alive')); ?></th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php $if = 0; ?>
                                            <?php if(count($family)>0): ?>
                                                <?php $__currentLoopData = $family; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $if++;
                                                            $relation = isset($p['relation'])?$p['relation']:'';
                                                            $name =isset( $p['name'])? $p['name']:'';
                                                            $sex = isset($p['sex'])?$p['sex']:'';
                                                            $dob = isset($p['dob'])?$p['dob']:'';
                                                            $job = isset($p['job'])?$p['job']:'';
                                                            $type =isset( $p['type'])? $p['type']:'';
                                                            $alive = isset($p['alive'])?$p['alive']:'';
                                                    ?>
                                                    <tr>
                                                        <td><?php echo e($if); ?></td>
                                                        <td><?php echo e($relation); ?></td>
                                                        <td><?php echo e($name); ?></td>
                                                        <td><?php echo e($sex); ?></td>
                                                        <td><?php echo e($dob); ?></td>
                                                        <td><?php echo e($job); ?></td>
                                                        <td><?php echo e($type); ?></td>
                                                        <td><?php echo e($alive); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </fieldset>
                    <div class="br"><br>&nbsp;</div>
                    <?php if(!$file->isEmpty()): ?>
                        <fieldset>
                            <legend><?php echo e(__('administrator.document')); ?></legend>
                            <?php $__currentLoopData = $file; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $re): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-sm-4"><?php echo e($re->name); ?></div>
                                <div class="col-sm-8">: <?php echo e($re->file); ?>

                                    <a href="/assets/attachment_file/<?php echo e($re->file); ?>" target="_blank">
                                        <span class="fa fa-download"></span>
                                    </a>
                                </div>
                                <div class="col-sm-4"><?php echo e(__('administrator.description')); ?></div>
                                <div class="col-sm-8">: <?php echo e($re->note); ?></div>
                                <div class="hr">
                                    <br>&nbsp;
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </fieldset>
                    <?php endif; ?>
                </div>
                <div class="col-sm-3">
                    <img src="<?php echo e($emp->avartar?asset('images/upload/'.$emp->avartar):asset('images/upload/profile.png')); ?>"
                         alt="" width="100%">
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app-hr', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/employee/backupshow.blade.php ENDPATH**/ ?>