Example #1
0
<?php

use App\MyExtention;
$profileWeb = MyExtention::profileWeb();
?>
<!--Header-->
<header class="header">
    <a href="<?php 
echo URL::to('administrator');
?>
" class="logo">
        <!-- Add the class icon to your logo image or logo icon to add the margining -->
        <?php 
echo $profileWeb[0]->nama;
?>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <a href="<?php 
echo URL::to('/');
?>
" target="_blank" class="btn btn-xs btn-danger" style="top:14px;position:relative;">
            <i class="fa fa-external-link"></i>
            View Site
Example #2
0
<?php

use App\MyExtention;
?>
<ul class="sidebar-menu">
    <?php 
$child_menu = MyExtention::childMenu();
foreach (MyExtention::parentMenu() as $row) {
    ?>
    <li class="treeview active">
        <a href="<?php 
    echo URL::to($row->url);
    ?>
">
            <i class="<?php 
    echo $row->icon;
    ?>
"></i> <span><?php 
    echo $row->nama;
    ?>
</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <?php 
    foreach ($child_menu as $r) {
        if ($r->parent_id == $row->id) {
            ?>
                        <li><a href="<?php 
            echo URL::to('administrator/m/' . $r->url);
            ?>