<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar" style="height: auto;">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="{{ minio_url('uploads/images/user/default-user.png') }}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{{ Auth::user()->name }}</p>
                <a href="{{ url('user/profile/edit') }}" class="btn-link">[ Edit Profile ]</a>
            </div>
        </div>

        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="header">MAIN NAVIGATION</li>
            <li class="{{ Request::is('user') ? 'active' : '' }}">
                <a href="{{ url('/user') }}">
                    <i class="fa fa-home"></i> <span>Home</span>    
                </a>
            </li>
            <li class="{{ Request::is('user/my-designs') ? 'active' : '' }}">
                <a href="{{ url('user/my-designs') }}">
                    <i class="fa fa-th-list"></i> <span>My Designs</span>
                </a>
            </li>
            <li class="treeview menu-open {{ Request::is('user/address-book', 'user/profile') ? 'active' : '' }}">
                <a href="#">
                    <i class="fa fa-cog"></i> <span>Manage My Account</span>
                    <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="{{ Request::is('user/profile') ? 'active' : '' }}">
                        <a href="{{ url('user/profile') }}"><i class="fa fa-user"></i> My Profile</a>
                    </li>
                    <li class="{{ Request::is('user/address-book', 'user/address-book/edit') ? 'active' : '' }}">
                        <a href="{{ url('user/address-book') }}"><i class="fa fa-address-book-o"></i> Address Book</a>
                    </li>
                </ul>
            </li>
            @if(Auth::user()->role != "store_owner")
            <li class="{{ Request::is('user/orders') ? 'active' : '' }}">
                <a href="{{ url('user/orders') }}">
                    <i class="fa fa-list"></i> <span>Orders</span>
                </a>
            </li>
            @endif
            @if(Auth::user()->role == "store_owner")
                <li class="{{ Request::is('user/announcement') ? 'active' : '' }}">
                    <a href="{{ url('user/announcement') }}">
                        <i class="fa fa-bullhorn"></i> <span>Announcement</span>
                    </a>
                </li>
                <li class="treeview menu-open {{ Request::is('user/store-items', 'user/store-settings', 'user/store-orders') ? 'active' : '' }}">
                    <a href="#">
                        <i class="fa fa-cog"></i> <span>Team Store</span>
                        <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu" style="">
                        <li>
                            <a href="{{ url('user/store') }}"><i class="fa fa-globe"></i> My Store</a>
                        </li>
                        <li class="{{ Request::is('user/store-items') ? 'active' : '' }}">
                            <a href="{{ url('user/store-items') }}"><i class="fa fa-th"></i> Store Items</a>
                        </li>
                        <li class="{{ Request::is('user/store-orders') ? 'active' : '' }}">
                            <a href="{{ url('user/store-orders') }}"><i class="fa fa-list"></i> Store Orders</a>
                        </li>
                        <li class="{{ Request::is('user/store-settings') ? 'active' : '' }}">
                            <a href="{{ url('user/store-settings') }}"><i class="fa fa-cogs"></i> Store Settings</a>
                        </li>
                    </ul>
                </li>
            @endif
            <li>
                <a href="{{ url('/') }}">
                    <i class="fa fa-globe"></i> <span>Go to CREW Website</span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>