

<?php $__env->startSection('content'); ?>

    <?php if(Session::has('success_message')): ?>
        <div class="alert alert-success">
            <i class=" fas fa-fw fa-check" aria-hidden="true"></i>
            <?php echo session('success_message'); ?>


            <button type="button" class="close" data-dismiss="alert" aria-label="close">
                <span aria-hidden="true">&times;</span>
            </button>

        </div>
    <?php endif; ?>

    <div class="card">

        <div class="card-header bg-primary text-white">

            <h5  class="my-1 float-left">Leader Assessments</h5>

            <div class="btn-group btn-group-sm float-right" role="group">
                <a href="<?php echo e(route('leader_assessments.leader_assessment.create')); ?>" class="btn btn-success" title="เพิ่ม Leader Assessment ใหม่">                     
					<i class="fas fa-fw  fa-plus" aria-hidden="true"></i>
                </a>
            </div>

        </div>
        
        <?php if(count($leaderAssessments) == 0): ?>
            <div class="card-body text-center">
                <h4>ไม่พบข้อมูล Leader Assessments</h4>
            </div>
        <?php else: ?>
        <div class="card-body">

            <div class="table-responsive">
                <table class="table table-striped table-sm table-bordered">
                    <thead>
                        <tr>
						<th>ลำดับที่</th>
                                <th>บุคคล</th>
                            <th>วันที่ประเมิน</th>
                            <th>ครั้งที่ประเมิน</th>
                            <th>การแสดงออกทางการเมือง</th>
                            <th>ขีดความสามารถการแสดงออก</th>
                            <th>บารมี/ความน่าเชื่อถือ</th>
                            <th>ฝักไฝ่ฝ่ายเรา</th>
                            <th>ผู้บันทึกข้อมูล</th>

                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
					 <?php $r = 0 ; if(isset($_REQUEST['page']) && $_REQUEST['page'] > 1 ){$r = 25 * ($_REQUEST['page']-1);}?>
                    <?php $__currentLoopData = $leaderAssessments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leaderAssessment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
						<td><?php echo e(++$r); ?></td>
						
                                <td><?php echo e(optional($leaderAssessment->person)->name); ?></td>
                            <td><?php echo e($leaderAssessment->assessment_date); ?></td>
                            <td><?php echo e($leaderAssessment->assessment_period); ?></td>
                            <td><?php echo e($leaderAssessment->expression); ?></td>
                            <td><?php echo e($leaderAssessment->performance); ?></td>
                            <td><?php echo e($leaderAssessment->dependability); ?></td>
                            <td><?php echo e($leaderAssessment->associate); ?></td>
                            <td><?php echo e(optional($leaderAssessment->user)->name); ?></td>

                            <td>

                                <form method="POST" action="<?php echo route('leader_assessments.leader_assessment.destroy', $leaderAssessment->id); ?>" accept-charset="UTF-8">
                                <input name="_method" value="DELETE" type="hidden">
                                <?php echo e(csrf_field()); ?>


                                    <div class="btn-group btn-group-sm float-right" role="group">
                                        <a href="<?php echo e(route('leader_assessments.leader_assessment.show', $leaderAssessment->id )); ?>" class="btn btn-info" title="แสดงข้อมูล Leader Assessment">
                                            <i class=" fas fa-fw fa-eye" aria-hidden="true"></i>
                                        </a>
                                        <a href="<?php echo e(route('leader_assessments.leader_assessment.edit', $leaderAssessment->id )); ?>" class="btn btn-primary" title="แก้ไขข้อมูล Leader Assessment">
                                            <i class=" fas fa-fw fa-pencil-alt" aria-hidden="true"></i>
                                        </a>

                                        <button type="submit" class="btn btn-danger" title="ลบ Leader Assessment ทิ้ง" onclick="return confirm('คลิก OK เพื่อยืนยันการลบ Leader Assessment ')">
                                            <i class=" fas fa-fw fa-trash-alt" aria-hidden="true"></i>
                                        </button>
                                    </div>

                                </form>
                                
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>

            </div>
        </div>

        <div class="card-footer">
            <?php echo $leaderAssessments->render(); ?>

        </div>
        
        <?php endif; ?>
    
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp7.4R1\htdocs\disk8\election\source\resources\views/leader_assessments/index.blade.php ENDPATH**/ ?>