PHP Classes

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

Recommend this page to a friend!
  Classes of Roman Kozin   Laravel Material Dashboard Pro   src/resources/views/elements/sidebar/children.blade.php   Download  
File: src/resources/views/elements/sidebar/children.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,202 bytes
 

Contents

Class file image Download
<?php
/** @var MenuItem $item */

use KielD01\LaravelMaterialDashboardPro\Helpers\MenuItem; ?>

<div class="collapse" id="{{ $item->getMenuItemHash() }}">
    <ul class="nav">
        @foreach($item->getChildren() as $child)
            <li class="{{ $child->getClasses() }}">
                <a class="nav-link" href="{{ $child->getLink() }}"
                   @if($child->hasChildren()) data-toggle="collapse" @endif>
                    @if($child->hasIcon() && !$child->isChild())
                        {!! $child->getIcon()->buildIcon() !!}
                        <p> {{ $child->getTitle() }} @if($child->hasChildren()) <b class="caret"></b> @endif</p>
                    @else
                        <span class="sidebar-mini">{{ $child->getAbbr() }}</span>
                        <span class="sidebar-normal">
                            {{ $child->getTitle() }}
                            @if($child->hasChildren()) <b class="caret"></b> @endif
                        </span>
                    @endif
                </a>
                @includeWhen($child->hasChildren(), 'mdp::elements.sidebar.children', ['item' => $child])
            </li>
        @endforeach
    </ul>
</div>