PHP Classes

File: src/resources/views/elements/sidebar.blade.php

Recommend this page to a friend!
  Classes of Roman Kozin   Laravel Material Dashboard Pro   src/resources/views/elements/sidebar.blade.php   Download  
File: src/resources/views/elements/sidebar.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Laravel Material Dashboard Pro
Integrate the Material Dashboard Pro in Laravel
Author: By
Last change:
Date: 3 days ago
Size: 1,915 bytes
 

Contents

Class file image Download
<?php

use KielD01\LaravelMaterialDashboardPro\Helpers\MenuItem;

/**
 * @var MenuItem $menuItem
 */
?>

<div class="sidebar" data-color="rose" data-background-color="black" data-image="../assets/img/sidebar-1.jpg">
    <div class="logo"><a href="{{ config('mdp.core.site.url') }}" class="simple-text logo-mini">
            {{ config('mdp.core.site.abbr') }}
        </a>
        <a href="{{ config('mdp.core.site.url') }}" class="simple-text logo-normal">
            {{ config('mdp.core.site.name') }}
        </a></div>
    <div class="sidebar-wrapper">
        @includeWhen($mdp->hasUser() && config('mdp.core.user_bar.enabled', false), 'mdp::elements.sidebar.user')
        <ul class="nav">
            @foreach($mdp->getMenu() as $menuItem)
                <li class="{{ $menuItem->getClasses() }}">
                    <a class="nav-link" href="{{ $menuItem->getLink() }}"
                       @if($menuItem->hasChildren()) data-toggle="collapse" @endif>
                        @if($menuItem->hasIcon() && !$menuItem->isChild())
                            {!! $menuItem->getIcon()->buildIcon() !!}
                            <p> {{ $menuItem->getTitle() }} @if($menuItem->hasChildren()) <b class="caret"></b> @endif
                            </p>
                        @else
                            <span class="sidebar-mini">{{ $menuItem->getAbbr() }}</span>
                            <span class="sidebar-normal">
                            {{ $menuItem->getTitle() }}
                                @if($menuItem->hasChildren()) <b class="caret"></b> @endif
                            </span>
                        @endif
                    </a>
                    @includeWhen($menuItem->hasChildren(), 'mdp::elements.sidebar.children', ['item' => $menuItem])
                </li>
            @endforeach
        </ul>
    </div>
    <div class="sidebar-background"></div>
</div>