I am using following bootstrap menu items with My laravel application,
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-sm-3 col-md-3">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><span class="glyphicon glyphicon-folder-close">
</span> Content Management</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
<table class="table">
<tr>
<td>
<span class="glyphicon glyphicon-pencil text-primary"></span><a href="">Category</a>
</td>
</tr>
<tr>
<td>
<span class="glyphicon glyphicon-pencil text-primary"></span><a href="">Brand</a>
</td>
</tr>
<tr>
<td>
<span class="glyphicon glyphicon-pencil text-primary"></span><a href="">Model</a>
</td>
</tr>
<tr>
<td>
<span class="glyphicon glyphicon-flash text-success"></span><a href="">Province</a>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
and using this menu bar with @include('menubar) with other blade files. now I need highlight current menu item when I visit each pages. how can I do this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire