@php
    $logo_path =  'images/'.config('app.name').'_logo.png';

    $user_image_path = getSession('user_image');
    $profile_image =  getSession('profile_image');
@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($profile_image))
                    <img src="{{ asset('images/user.png') }}" alt="profile picture"
                         class="img-circle profile_img">
                @else
                    <img src="{{getPublicFile($user_image_path)}}" 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">
                    <li class="{{ request()->routeIs('show.manage.clients') ? 'current-page' : '' }}">
                        <a href="{{ route('manage.clients') }}"><i class="fa fa-user"></i> Account Information</a>
                    </li>
                    @if(auth()->user()->is_first_login == 0)
                    <li class="{{ request()->routeIs('get.letter') ? 'current-page' : '' }}">
                        <a href="{{ route('get.letter') }}"><i class="fa fa-file-text"></i> WORK AREA</a>
                    </li>
                    @endif
                    <li class="{{ request()->routeIs('training_video.index') ? 'current-page' : '' }}">
                        <a href="{{ route('training_video.index') }}"><i class="fa fa-youtube-play"></i> Software Training</a>
                    </li>
                    <li class="{{ request()->routeIs('list.client.support') ? 'current-page' : '' }}">
                        <a href="{{ route('list.client.support') }}">
                            <i class="fa fa-user"></i>
                            Support
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
