<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        {{--<div class="user-panel">
            <div class="pull-left image">
                <span class="fa fa-user-circle fa-2x" style="color: #ffffff;"></span>
            </div>
            <div class="pull-left info">
                <p>{{Auth::user()->full_name}}</p>
                <i class="fa fa-circle text-success"></i> Online
            </div>
        </div>--}}
        <!-- search form -->
        {{--<form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                  <i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>--}}
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            {{--<li class="header">MAIN NAVIGATION</li>--}}
            <li><a href="{{route('dashboard')}}"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a></li>
            {{--<li class="treeview">
                <a href="#">
                    <i class="fa fa-cog"></i>
                    <span>Show Sub Menu</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="#"><i class="fa fa-product-hunt"></i> Sub Menu </a></li>
                </ul>
            </li>--}}
            {{--@if(Auth::User()->hasRole('Administrator'))
            @endif--}}
            <li><a href="{{route('sales')}}"><i class="fa fa-pie-chart"></i> <span>Sales</span></a></li>
            <li><a href="{{route('rentals')}}"><i class="fa fa-key"></i> <span>Rentals</span></a></li>
            <li><a href="{{route('clients')}}"><i class="fa fa-address-book-o"></i> <span>Clients</span></a></li>

            {{--<li class="treeview">
                <a href="#">
                    <i class="fa fa-bar-chart"></i>
                    <span>Sales</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{route('sales')}}"><i class="fa fa-building-o"></i>List</a></li>
                </ul>
            </li>--}}
            {{--<li class="treeview">
                <a href="#">
                    <i class="fa fa-building"></i>
                    <span>Property</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{route('sales')}}"><i class="fa fa-building-o"></i>Sales</a></li>
                    <li><a href="{{route('quotations')}}"><i class="fa fa-tasks"></i>Quotation</a></li>
                </ul>
            </li>--}}

            <li class="treeview">
                <a href="#">
                    <i class="fa fa-percent"></i>
                    <span>Commission</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    {{--@if(Auth::User()->hasRole('Administrator'))--}}
                        <li><a href="{{route('receivables')}}"><i class="fa fa-bookmark-o"></i>Receivables</a></li>
                    {{--@endif--}}
                    {{--<li><a href="{{route('releases')}}"><i class="fa fa-check-square-o"></i>Releases</a></li>--}}
                </ul>
            </li>
            {{--@if(Auth::User()->hasRole('Administrator'))--}}
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-book"></i>
                    <span>Master List</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{route('agents')}}"><i class="fa fa-users"></i>Agents</a></li>
                    <li><a href="{{route('developers')}}"><i class="fa fa-building"></i>Land Developers</a></li>
                    <li><a href="{{route('teams')}}"><i class="fa fa-trello"></i>Teams</a></li>
                    <li><a href="{{route('projects')}}"><i class="fa fa-tasks"></i>Projects</a></li>
                    <li><a href="{{route('users')}}"><i class="fa fa-user"></i>Users</a></li>
                    {{--<li><a href="{{route('managers')}}"><i class="fa fa-user"></i>Unit Managers</a></li>--}}
                </ul>
            </li>
            {{--@endif--}}
            <li><a href="{{route('advances')}}"><i class="fa fa-trello"></i> <span>Cash Advances</span></a></li>
            <li><a href="{{route('reports.panel')}}"><i class="fa fa-search"></i> <span>Reports</span></a></li>
            {{--<li class="treeview">
                <a href="#">
                    <i class="fa fa-search"></i>
                    <span>Reports</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{{route('reports.sales.agent')}}"><i class="fa fa-bar-chart"></i>Agent Sales</a></li>
                    <li><a href="{{route('reports.sales.quarter')}}"><i class="fa fa-pie-chart"></i>Quarterly Sales</a></li>
                    <li><a href="{{route('reports.commission.vouchers')}}"><i class="fa fa-book"></i>Agent Vouchers</a></li>
                    <li><a href="{{route('reports.commission.um-vouchers')}}"><i class="fa fa-users"></i>Unit Manager Vouchers</a></li>
                    <li><a href="{{route('reports.ca.agents')}}"><i class="fa fa-money"></i>Agents C/A Payments</a></li>
                    <li><a href="{{route('reports.ca.managers')}}"><i class="fa fa-credit-card"></i>Managers C/A Payments</a></li>
                    <li><a href="{{route('reports.broker-share')}}"><i class="fa fa-university"></i>Broker Share</a></li>
                    <li><a href="{{route('reports.team-sales')}}"><i class="fa fa-users"></i>Team Sales</a></li>
                    @if(Auth::User()->hasRole('Administrator'))
                        <li><a href="{{route('reports.commission.developers')}}"><i class="fa fa-building"></i>Commission Receivables</a></li>
                        <li><a href="{{route('reports.sales.top-agents')}}"><i class="fa fa-area-chart"></i>Top Agents</a></li>
                        <li><a href="{{route('reports.commission.um-vouchers')}}"><i class="fa fa-user"></i>Unit Manager Vouchers</a></li>
                        <li><a href="{{route('reports.ca.agents')}}"><i class="fa fa-money"></i>Agents C/A Payments</a></li>
                        <li><a href="{{route('reports.ca.managers')}}"><i class="fa fa-credit-card"></i>Managers C/A Payments</a></li>
                        <li><a href="{{route('reports.broker-share')}}"><i class="fa fa-university"></i>Broker Share</a></li>
                        <li><a href="{{route('reports.team-sales')}}"><i class="fa fa-pie-chart"></i>Team Sales</a></li>
                    @endif
                </ul>
            </li>--}}
            @if(Auth::User()->hasRole('Administrator'))
                <li><a href="{{route('users')}}"><i class="fa fa-users"></i> <span>Users</span></a></li>
                {{--<li><a href="{{route('settings.view')}}"><i class="fa fa-gear"></i> <span>Settings</span></a></li>--}}
            @endif
            <li><a href="{{route('settings.view')}}"><i class="fa fa-gear"></i> <span>Settings</span></a></li>

            <li><a href="{{route('logout')}}"><i class="fa fa-sign-out"></i> <span>Logout</span></a></li>

        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
