<!--Start sidebar-wrapper-->
<div id="sidebar-wrapper" class="bg-theme bg-theme2" data-simplebar="" data-simplebar-auto-hide="true">
    <div class="brand-logo">
        <img src="{{ asset('back_assets/assets/images/logo.png') }}" class="logo-icon" alt="logo icon">
        {{--        <h5 class="logo-text">PropCo CRM</h5>--}}
    </div>
    <ul class="sidebar-menu do-nicescrol">
        <li>
            <a href="/dashboard" class="waves-effect">
                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
            </a>
        </li>
        @if (auth()->user()->type == 1)
            <li>
                <a href="javascript:void(0);" class="waves-effect">
                    <i class="fa fa-cog"></i> <span>Setup</span>
                    <i class="fa fa-angle-right float-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li><a href="/states"><i class="zmdi zmdi-long-arrow-right"></i>States</a></li>
                    <li><a href="/areas"><i class="zmdi zmdi-long-arrow-right"></i>Areas</a></li>
                    <li><a href="/projects"><i class="zmdi zmdi-long-arrow-right"></i>Projects</a></li>
                    <li><a href="/developers"><i class="zmdi zmdi-long-arrow-right"></i>Developers</a></li>
                    <li><a href="/purposes"><i class="zmdi zmdi-long-arrow-right"></i>Purposes</a></li>
                    <li><a href="/unit-types"><i class="zmdi zmdi-long-arrow-right"></i>Unit Types</a></li>
                    <li><a href="/property-types"><i class="zmdi zmdi-long-arrow-right"></i>Property Types</a></li>
                    <li><a href="/features"><i class="zmdi zmdi-long-arrow-right"></i>Features / Amenities</a></li>
                    <li><a href="/completion-status"><i class="zmdi zmdi-long-arrow-right"></i>Completion Status</a></li>
                    <li><a href="/development-status"><i class="zmdi zmdi-long-arrow-right"></i>Development Status</a>
                    </li>
                    <li><a href="/sale-status"><i class="zmdi zmdi-long-arrow-right"></i>Sale Status</a></li>
                    <li><a href="/ownership-status"><i class="zmdi zmdi-long-arrow-right"></i>Ownership Status</a></li>
                    <li><a href="/rent-frequencies"><i class="zmdi zmdi-long-arrow-right"></i>Rent Frequencies</a></li>
                    <li><a href="/cheques"><i class="zmdi zmdi-long-arrow-right"></i>Cheques</a></li>
                    <li><a href="/lead-status"><i class="zmdi zmdi-long-arrow-right"></i>Lead Status</a></li>
                    <li><a href="/lead-types"><i class="zmdi zmdi-long-arrow-right"></i>Lead Types</a></li>
                    <li><a href="/lead-categories"><i class="zmdi zmdi-long-arrow-right"></i>Lead Categories</a></li>
                    <li><a href="/lead-interest-levels"><i class="zmdi zmdi-long-arrow-right"></i>Lead Interest Levels</a></li>
                    <li><a href="/lead-sources"><i class="zmdi zmdi-long-arrow-right"></i>Lead Sources</a></li>
                    <li><a href="/enquiry-sources"><i class="zmdi zmdi-long-arrow-right"></i>Enquiry Sources</a></li>
                    <li><a href="/contact-roles"><i class="zmdi zmdi-long-arrow-right"></i>Contact Roles</a></li>
                </ul>
            </li>
        @endif
        <li>
            <a href="/calling-database" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Calling Database</span>
            </a>
        </li>
        <li>
            <a href="/leads" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Leads</span>
            </a>
        </li>
        <li>
            <a href="/contacts" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Contacts</span>
            </a>
        </li>
        <li>
            <a href="/wip" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Property WIP</span>
            </a>
        </li>
        <li>
            <a href="/listings" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Listings</span>
            </a>
        </li>
        <li>
            <a href="/requirements" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Requirements</span>
            </a>
        </li>
        <li>
            <a href="/offplan" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Off Plan</span>
            </a>
        </li>
        <li>
            <a href="/appointments" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Appointments</span>
            </a>
        </li>
        <li>
            <a href="/calender" class="waves-effect">
                <i class="zmdi zmdi-layers"></i> <span>Calender</span>
            </a>
        </li>
        <li>
            <a href="/email" class="waves-effect" style="pointer-events: none">
                <i class="zmdi zmdi-layers"></i> <span>Email</span>
            </a>
        </li>
{{--        <li>--}}
{{--            <a href="/whatsapp" class="waves-effect" style="pointer-events: none">--}}
{{--                <i class="zmdi zmdi-layers"></i> <span>WhatsApp</span>--}}
{{--            </a>--}}
{{--        </li>--}}
        @if (auth()->user()->type == 1 || auth()->user()->type == 2)
            <li>
                <a href="javascript:void(0);" class="waves-effect">
                    <i class="zmdi zmdi-layers"></i> <span>Users Management</span>
                    <i class="fa fa-angle-right float-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    @if (auth()->user()->type == 1)
                        <li><a href="/roles"><i class="zmdi zmdi-long-arrow-right"></i>Roles</a></li>
                        <li><a href="/users"><i class="zmdi zmdi-long-arrow-right"></i>Agencies</a></li>
                    @endif
                    <li><a href="/agents"><i class="zmdi zmdi-long-arrow-right"></i>Agents</a></li>
                </ul>
            </li>
        @endif
    </ul>
</div>
<!--End sidebar-wrapper-->
