@php
    $logo_path =  'images/'.config('app.name').'_logo.png';
@endphp
<div class="col-md-3 left_col">
    <div class="left_col scroll-view">
        <div class="navbar nav_title" style="border: 0; background-color: #fff; text-align: center;">
            <a href="{{ url('/') }}" class="site_title"><img src="{{ asset($logo_path) }}"></a>
        </div>

        <div class="clearfix"></div>

        <!-- menu profile quick info -->
        <div class="profile clearfix">
            <h2 class="welcome-t">Welcome</h2>
            <div class="profile_pic">
                @if(empty(Auth::user()->photo))
                    <img src="{{ asset('images/user.png') }}" alt="profile picture"
                         class="img-circle profile_img">
                @else
                    <img src="{{ url('/') }}/public/images/{{Auth::user()->photo}}" alt="profile picture"
                         class="img-circle profile_img">
                @endif
            </div>
            <div class="profile_info">
                <h2>{{ Auth::user()->firstname }} {{ Auth::user()->lastname }}</h2>
            </div>
        </div>
        <!-- /menu profile quick info -->

        <!-- sidebar menu -->
        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            <div class="menu_section">
                <h3>Menu</h3>
                <ul class="nav side-menu">
                   @if(isShowContent('get.clients'))
                        @php
                            $is_menu_active = request()->routeIs('get.clients') || request()->routeIs('get.client.info') || request()->routeIs('client.create');
                        @endphp
                    <li class="{{ $is_menu_active ? 'current-page' : '' }}">
                        <a href="{{ route('get.clients') }}"><i class="fa fa-user"></i> Client Management</a>
                    </li>
                    @endif
                   @if(isShowContent('training_video.list'))
                    <li class="{{ request()->routeIs('training_video.list') ? 'current-page' : '' }}">
                        <a href="{{ route('training_video.list') }}">
                            <i class="fa fa-youtube-play"></i>
                            Training Video
                        </a>
                    </li>
                   @endif

                  @if(isShowContent('terms.of.service'))
                    <li class="{{ request()->routeIs('terms.of.service') ? 'current-page' : '' }}">
                        <a href="{{route('terms.of.service')}}">
                            <i class="fa fa-file" aria-hidden="true"></i>
                           Terms And Service
                        </a>
                    </li>
                    @endif
                       @if(isShowContent('employee.list'))
                         @php
                             $is_menu_active = request()->routeIs('employee.list')||request()->routeIs('create.employee')|| request()->routeIs('get.employee.info');
                         @endphp

                           <li class="{{ $is_menu_active ? 'current-page' : '' }}">
                               <a href="{{route('employee.list')}}">
                                   <i class="fa fa-user" aria-hidden="true"></i>
                                   Employee Management
                               </a>
                           </li>

                       @endif
                       @if(isShowContent('view.provider.link'))
                           <li class="{{ request()->routeIs('view.provider.link') ? 'current-page' : '' }}">
                               <a href="{{route('view.provider.link')}}">
                                   <i class="fa fa-file" aria-hidden="true"></i>
                                   Credit Report Provider
                               </a>
                           </li>
                       @endif
                       @if(isAdmin())
                       <li class="{{ request()->routeIs('list.client.support') ? 'current-page' : '' }}">
                           <a href="{{ route('list.client.support') }}">
                               <i class="fa fa-user"></i>
                               Support
                           </a>
                       </li>
                       @endif
                       @if(isSupport())
                           <li class="{{ request()->routeIs('list.iq.history') ? 'current-page' : '' }}">
                               <a href="{{ route('list.iq.history') }}">
                                   <i class="fa fa-file"></i>
                                   Iq Call Histories
                               </a>
                           </li>
                       @endif


                </ul>
            </div>
        </div>
    </div>
</div>
