</th>
                                <th>
                                    Action
                                </th>
                            </tr>
                            </thead>

                            <tbody>
                            <?php 
if (sizeof($groups) > 0) {
    ?>
                                <?php 
    foreach ($groups as $group) {
        ?>
                                    <?php 
        $detail = App\Helpers\UserHelper::getUserGroupRoleDetail($group->id);
        ?>
                                    <tr>
                                        <td>
                                            <?php 
        echo e($group->name_en);
        ?>

                                        </td>
                                        <td>
                                            <?php 
        echo e($detail->total_component);
        ?>

                                        </td>
                                        <td>
Beispiel #2
0
                <ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
                    <li class="sidebar-toggler-wrapper">
                        <div class="sidebar-toggler">
                        </div>
                    </li>

                    <?php 
$route_uri = Route::getCurrentRoute()->getName();
$routeNameResource = strstr($route_uri, '.', true);
$routeOther = Route::getCurrentRoute()->uri();
if (!empty($routeNameResource)) {
    $routeName = $routeNameResource;
} else {
    $routeName = $routeOther;
}
$activeModuleId = App\Helpers\UserHelper::get_module_name($routeName);
if (is_array($menus) && sizeof($menus) > 0) {
    foreach ($menus as $key1 => $component) {
        foreach ($component['modules'] as $key2 => $module) {
            ?>
                            <li class="{{ (isset($activeModuleId) && $activeModuleId==$module['id'])?'active open':''}} module">
                                <a href="javascript:;">
                                    <i class="{{ $module['module_icon'] }}"></i>
                                    <span class="title">{{ $module['module_name'] }}</span>
                                    <span class="selected"></span>
                                    <span class="arrow open"></span>
                                </a>
                                <ul class="sub-menu">
                                    <?php 
            foreach ($module['tasks'] as $task) {
                ?>