

<?php $__env->startSection('title'); ?>
تقرير  نهائي للدورة التدريبية <?php echo e($room->name); ?> برنامج <?php echo e($room->course->title); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.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">
            <h3>
                تقرير  نهائي للدورة التدريبية <?php echo e($room->name); ?> برنامج <?php echo e($room->course->title); ?>

            </h3>
            <div class="link">
                <a href="" class="px-4 ">عرض تقرير  نهائي
                </a>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?> 
<div class="d-flex flex-wrap align-items-start justify-content-start  mb-3 btns">
        <button  id="printCertificate"  type="button" class="btn btn-secondary  me-1"  >
            <i class="mdi mdi-print-circle ms-2"></i>طباعة
        </button>
    </div>
<!-- row -->
<div class="code-example">
    <style name="datasets-example-3">
        #datasets-example-3 {
            display: flex;
            flex-wrap: wrap;
            flex-direction: row-reverse;
            align-items: center;
            gap: 20px;
            /* max-width: 1200px; */
            margin: 0 auto;
        }

        #datasets-example-3 .column {

            height: 160px;
            max-width: 800px;
        }

        #datasets-example-3 .legend {
            flex-shrink: 3;
        }

        .charts-css.legend li:nth-child(1)::before {
            background: #8bdd7c;
        }

        .charts-css.legend li:nth-child(2)::before {
            background: #ffe583;
        }

        .charts-css.legend li:nth-child(3)::before {
            background: #ffc765;
        }

        .charts-css.legend li:nth-child(4)::before {
            background: #5f5e5e;
        }
    </style>

    <div id="datasets-example-3">
        <?php if(isset($evaluations)): ?>
            <?php $__currentLoopData = $evaluations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $evaluation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($evaluation->type == 0): ?>
                    <h2 style="margin-top:10px; text-align: right; width:100%"><?php echo e($evaluation->name); ?></h2>
                    <table style="width: 100%"
                        class="charts-css column multiple show-labels data-spacing-1 datasets-spacing-1">

                        <tbody style="width:100%">

                            <?php $__currentLoopData = $evaluation->values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr style="margin-right: 20px">
                                    <th scope="row" style="margin-bottom: -20px;"> <?php echo e($value->name); ?> </th>
                                    <td
                                        style="--size:<?php if($value->excellent == 0): ?> 0.05 <?php else: ?><?php echo e($value->excellent / 100); ?> <?php endif; ?>; --color: #8bdd7c;">
                                        <span class="data"> <?php echo e(round($value->excellent)); ?> % </span>
                                    </td>
                                    <td
                                        style="--size:<?php if($value->very_good == 0): ?> 0.05 <?php else: ?><?php echo e($value->very_good / 100); ?> <?php endif; ?>;--color: #ffe583;">
                                        <span class="data"> <?php echo e(round($value->very_good)); ?> % </span>
                                    </td>
                                    <td
                                        style="--size:<?php if($value->good == 0): ?> 0.05 <?php else: ?> <?php echo e($value->good / 100); ?> <?php endif; ?>;--color:#ffc765;">
                                        <span class="data"><?php echo e(round($value->good)); ?> % </span>
                                    </td>
                                    <td
                                        style="--size:<?php if($value->week == 0): ?> 0.05 <?php else: ?> <?php echo e($value->week / 100); ?> <?php endif; ?>; --color:#5f5e5e;">
                                        <span class="data"> <?php echo e(round($value->week)); ?> % </span>
                                    </td>

                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <ul class="charts-css legend legend-inline legend-square" >
                                <li> ممتاز </li>
                                <li> جيدجدا </li>
                                <li> جيد </li>
                                <li> مقبول </li>

                            </ul>
                        </tbody>
                    </table>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>
</div>

 <h2 style="margin-top: 20px">الحضور والغياب</h2>
<?php echo $__env->make('reports.tabels.attendances-room', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<h2>الاختبارات</h2>
<?php echo $__env->make("reports.tabels.exam-room", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<h2>التقييمات</h2>
<?php echo $__env->make('reports.tabels.evaluation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('js/print/report.js')); ?>"></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/all.blade.php ENDPATH**/ ?>