<?php $__env->startSection('title', '.'); ?>
<?php $__env->startSection('content'); ?>
    <section class="content"  id="myContent">
        <div class="container-fluid">
            <?php if(session()->has('pwd_msg')): ?>
                <div class="alert alert-danger" role="alert">
                    <strong><?php echo e(session('pwd_msg')); ?></strong>
                </div>
            <?php endif; ?>
            <!--<div class="block-header">
                <h2>TOUS LES MODULES AfricaWebStudent</h2>
            </div>-->
            <!-- Basic Example -->
            <?php
                $schoolsColors = [
                    'color1' => '#00a556',
                    'color2' => '#ed1b24'
                ];
            ?>
            <?php
                if(request()->getHost() == "iut.eservices.up-university.bj") {
                    $j = 0;
                    for($p = 0; $p < $nbligne; $p++ ) {
                    echo '<div class="row clearfix">';
                    for($k = 0; $k < 3; $k++) {
                        echo '<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="header bg-first-color">
                                        <h2  style="color: white; font-weight: bold;">'.$tabNom[$j].'
                                        </h2>
                                        <ul class="header-dropdown m-r--5">
                                            <li class="dropdown">
                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                    <i class="material-icons">more_vert</i>
                                                </a>
                                                <ul class="dropdown-menu pull-right">';
                                                if (in_array($tabIdmodule[$j], $array)) {
                                                    echo '<li><a href="'.$tabNoBrand[$j]."?token=".$token.'" target = _blank>Ouvrir</a></li>';
                                                }else{
                                                    echo '<li><a href="javascript:void(0)">Module non activé pour votre établissement.</a></li>';
                                                }
                                                echo '    </ul>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="body" align="justify">
                                    </div>
                                    <div class="footer bg-white-color text-center" style="padding: 2px;">';
                                        if (in_array($tabIdmodule[$j], $array)) {
                                            echo '<a href="'.$tabNoBrand[$j]."?token=".$token.'" target = _blank class="btn btn_primary"
                                            style="color: white; padding: 5px;border-radius: 5px; background: '.$couleur3.';">Ouvrir</a><br />';
                                        }else{
                                            echo '<h5><input style="color: #787777; padding: 5px;border-radius: 5px; background:#f5f0f1;" type="button" value="Non Disponible"></h5>';
                                        }
                            echo    '</div>
                                </div>
                        </div>';
                        $j++;

                        if($j == $nb) break;
                    }
                    echo '</div>';
                }
                }else{
                    $j = 0;
                    for($p = 0; $p < $nbligne; $p++ ) {
                        echo '<div class="row clearfix">';
                        for($k = 0; $k < 3; $k++) {
                            echo '<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <div class="card">
                                        <div class="header bg-first-color">
                                            <h2  style="color: white; font-weight: bold;">
                                                '.$tabTitre[$j].' <small>'.$tabNom[$j].'</small>
                                            </h2>
                                            <ul class="header-dropdown m-r--5">
                                                <li class="dropdown">
                                                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                        <i class="material-icons">more_vert</i>
                                                    </a>
                                                    <ul class="dropdown-menu pull-right">';
                                                    if (in_array($tabIdmodule[$j], $array)) {
                                                        echo '<li><a href="'.$tabLien[$j]."?token=".$token.'" target = _blank>Ouvrir</a></li>';
                                                    }else{
                                                        echo '<li><a href="javascript:void(0)">Module non activé pour votre établissement.</a></li>';
                                                    }
                                                    echo '    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="body" align="justify">
                                            <font size="1">'.$tabLongdescriptionModule[$j].'</font>
                                        </div>
                                        <div class="footer bg-white-color text-center" style="padding: 2px;">';
                                            if (in_array($tabIdmodule[$j], $array)) {
                                                echo '<a href="'.$tabLien[$j]."?token=".$token.'" target = _blank class="btn btn_primary"
                                                style="color: white; padding: 5px;border-radius: 5px; background: '.$couleur3.';">Ouvrir</a>&nbsp&nbsp<a href="'.$tabAws[$j]."?token=".$token.'" target = _blank class="btn btn_primary"
                                                style="color: white; padding: 5px;border-radius: 5px; background: '.$couleur3.';">aws@ha</a><br />';
                                            }else{
                                                echo '<h5><input style="color: #787777; padding: 5px;border-radius: 5px; background:#f5f0f1;" type="button" value="Non Disponible"></h5>';
                                            }
                                echo    '</div>
                                    </div>
                            </div>';
                            $j++;
    
                            if($j == $nb) break;
                        }
                        echo '</div>';
                    }
                }
           ?>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('modulegs.partials.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/africawebstudent/public_html/aws/eservices/resources/views/modulegs/index_admin_p.blade.php ENDPATH**/ ?>