

<?php $__env->startSection('title'); ?>
    لوحة التحكم
<?php $__env->stopSection(); ?>

<?php $__env->startSection('first-css'); ?>
<?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(); ?>
   
        <!--**********************************
                            Content body end
                        ***********************************-->


        <div class="container">
            <div class="" style="min-height: 828px;">
                <div class="container-fluid">
                    <div class="row">
                        <?php if(isset($rooms)): ?>
                            <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col-xl-4 col-lg-4 col-md-6">
                                    <div class="card">
                                        <img class="card-img-top img-fluid"
                                            src="<?php echo e(asset('/images/card/' . mt_rand(1, 4) . '.jpg')); ?>" style="border-radius: 0"
                                            alt="Card image cap">
                                        <div class="mt-2">
                                            <h3 class="text-center text-primary fw-bold">
                                                برنامج <?php if(isset($room->course->title)): ?>
                                                    <?php echo e($room->course->title); ?>

                                                <?php endif; ?>
                                            </h3>
                                        </div>

                                        <div class="mt-1 py-2 pt-0 w-75 m-auto">
                                            <div class="d-flex align-items-center justify-content-start text-center">
                                                <i class="fa fa-briefcase ms-3 text-warning"></i>
                                                <h6 class="text-center text-secondary">
                                                    برنامج <?php if(isset($room->course->title)): ?>
                                                        <?php echo e($room->course->title); ?>

                                                    <?php endif; ?>
                                                </h6>
                                            </div>
                                            <div class="d-flex align-items-center justify-content-start">
                                                <i class="mdi mdi-account-group  ms-3 text-warning"></i>
                                                <div> مشرف البرنامج: <?php if(isset($room->trainer->name)): ?>
                                                        <?php echo e($room->trainer->name); ?>

                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-center justify-content-start">
                                                <i class=" bi bi-pencil-square  ms-3 text-warning"></i>
                                                <div> عدد الدروس
                                                    <?php if(isset($room->course->lessons)): ?>
                                                        <?php echo e(count($room->course->lessons)); ?>

                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="post-more my-3 text-center">
                                            <a class="btn btn-primary  w-75 "href="<?php echo e(route('lesson_attendances_list',$room->id)); ?> ">
                                                إدارةالدورة التدريبية 
                                            </a>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>

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

<?php $__env->startSection('script'); ?>
<script>
    $(document).ready(function() {
        $('table.display').DataTable();
    });
</script>
<script src="<?php echo e(asset('/vendor/datatables/js/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/js/plugins-init/datatables.init.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/trainer/dashboard.blade.php ENDPATH**/ ?>