

<?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(); ?>
    <?php if(Auth::user()->role == 0): ?>
        <?php echo $__env->make('admin.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php elseif(Auth::user()->role == 1): ?>
        <?php echo $__env->make('trainer.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php else: ?>
        <!--**********************************
                        Content body end
                    ***********************************-->


        <div class="container">
            <div class="" style="min-height: 828px;">
                <div class="container-fluid">
                    <div class="row">
                        <?php if(isset($appendixes)): ?>
                            <?php $__currentLoopData = $appendixes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $appendix): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if(isset($appendix)): ?>
                            <div class="col-xl-6 col-lg-6 col-md-6">
                                <div class="card bg-info">
                                    
                                    <div class="card-body mb-0">
                                        <p class="card-text text-white"><?php if(isset($appendix->description)): ?>
                                            <?php echo e($appendix->description); ?>

                                        <?php endif; ?></p>
                                            <a href="<?php echo e(route('appendix_download',$appendix->id)); ?>" class="btn bg-white text-info btn-card">تنزيل</a>
                                    </div>
                                    
                                </div>
                            </div>
                            <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

        </div>
    <?php endif; ?>
<?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/student/appendix.blade.php ENDPATH**/ ?>