

<?php $__env->startSection('title'); ?>
    تقرير الحضور والغياب
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<link href="<?php echo e(asset('/css/report.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content-body'); ?>
    <!--**********************************
                            Content body start
                        ***********************************-->
    <?php echo $__env->make('massages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('route-path'); ?>
    <div class="container-fluid container-fluid-traning px-0">
        <div class="d-flex flex-wrap align-items-end justify-content-between  mb-3">
            <h1>
                تقرير الحضور والغياب
            </h1>
            <div class="link">
                <a href="" class="px-4 ">عرض تقرير الحضور والغياب
                </a>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<!-- row -->
<div class="container-fluid container-fluid-traning bg-white">
    <!--**********************************Tabs Start***********************************-->
    <div class="d-flex flex-wrap align-items-start justify-content-start  mb-3 btns">
        <button type="button" class="btn btn-primary  me-1" data-bs-toggle="modal" data-bs-target="#addEvaluation">
            <i class="mdi mdi-plus-circle ms-2"></i> تصدير
        </button>
        <button  id="printCertificate"  type="button" class="btn btn-secondary  me-1"  >
            <i class="mdi mdi-print-circle ms-2"></i>طباعة
        </button>
    </div>
    <!--**********************************Tabs End***********************************-->
    <div class="row">
        <div class="col-xl-12 tab-content">
            <!--**********************************Table AllTransaction Start***********************************-->

            <div class="tab-pane fade show active" id="AllTransaction" role="tabpanel"
                aria-labelledby="transaction-tab">
                <div class="table-responsive fs-14">
                    <table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example">
                        <thead>
                            <tr>
                                <th>رقم </th>
                                <th>البرنامج </th>
                                <th>عدد الطلاب</th>
                                <th>نسبة الحضور</th>
                                <th>نسبة الغياب</th>
                                <th>نسبة الدروس الغير منجزة</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php if(isset($rooms)): ?>
                                <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr class="odd" role="row">
                                        <td>
                                            <?php if(isset($room)): ?>
                                                <?php echo e($loop->iteration); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <a href="<?php echo e(route('report_attendances_students',$room->id)); ?>">
                                            <?php if(isset($room->name)): ?>
                                                <?php echo e($room->name); ?>

                                                <?php echo e($room->course->title); ?>

                                            <?php endif; ?>
                                            </a>
                                        </td>

                                        <td>
                                            <?php if(isset($room->studentsCount)): ?>
                                                <?php echo e($room->studentsCount); ?>

                                            <?php endif; ?>
                                        </td>

                                        <td>
                                            <?php if(isset($room->presentsPercentage)): ?>
                                                <?php echo e($room->presentsPercentage); ?>

                                            <?php else: ?>
                                                0
                                            <?php endif; ?>
                                                %
                                        </td>
                                        <td>
                                            <?php if(isset($room->absentsPercentage)): ?>
                                                <?php echo e($room->absentsPercentage); ?>

                                            <?php else: ?>
                                                0
                                            <?php endif; ?>
                                                %
                                        </td>
                                        <td>
                                            <?php if(isset($room->notAttendantPercentage)): ?>
                                                <?php echo e($room->notAttendantPercentage); ?>

                                            <?php else: ?>
                                                0
                                            <?php endif; ?>
                                                %
                                        </td>

                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                            
                        </tbody>
                    </table>
                </div>
            </div>
            <!--**********************************Table AllTransaction End***********************************-->
        </div>
    </div>
</div>

<!--**********************************
                        Content body end
            ***********************************-->
<script src="<?php echo e(asset('js/print/report.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Nasser\Desktop\TrainingManagementPlatform\resources\views/reports/attendances.blade.php ENDPATH**/ ?>