Example #1
0
                        <li class="list-group-item">
                            <a class="menu">
                                <span class="glyphicon glyphicon-th-list"></span>&nbsp;
                                &nbsp;
                                <?php 
$opt = DB::table('tbl_option_header')->where('id', $option->header)->first();
?>
                                {{ $opt->name }}
                            </a>
                            <?php 
$o = DB::table('tbl_useroption')->where('header', $option->header)->where('userid', $user)->orderBY('optionid', 'ASC')->get();
?>
                            
                            @foreach($o as $oo)
                                <?php 
$options = App\Option::find($oo->optionid);
?>
                                <ul class="sub-menu">
                                    <li class="li-sub-menu">
                                        <a class="menu" href="{{ url($options->link) }}">
                                            <span class="glyphicon glyphicon-chevron-right"></span>&nbsp;
                                            &nbsp;
                                            {{ $options->desc }}
                                        </a>
                                    </li>
                                </ul>
                            @endforeach

                        </li>
                    @endforeach