@php $setting = App\Setting::first(); @endphp @if($setting->website_logo && trim($setting->website_logo)!='' && file_exists(public_path('uploads/setting_folder/'.$setting->website_logo))) @else @endif
  • Toggle menubar
@php if(Session::has('locale')){ $locale = Session::get('locale', Config::get('app.locale')); } else{ $locale = 'en'; } $notification_number =''; if(Session::has('unread_notification_number')){ $notification_number = Session::get('unread_notification_number'); } @endphp
  • @foreach (\App\Language::all() as $key => $language) {{ $language->name }} @endforeach
    @csrf
  • @php $profile = App\User::join('role_user', 'users.id', '=', 'role_user.user_id') ->join('roles', 'role_user.role_id', '=', 'roles.id') ->where('users.id', '=', Auth::user()->id) ->select('users.*', 'roles.name as role_name', 'users.id as id') ->first(); $profile_department = App\Department::where('id',$profile->department_id)->first(); if(isset($profile_department)) $profile_name = $profile->first_name.' '.$profile->last_name.' - ('.dataTranslation($profile->role_name).', '.dataTranslation($profile_department->name).' Dep.)'; else $profile_name = $profile->first_name.' '.$profile->last_name.' - ('.dataTranslation($profile->role_name).') '; @endphp @if($profile->profile_picture && trim($profile->profile_picture)!='' && file_exists(public_path('uploads/user_folder/'.$profile->profile_picture))) {{ __('Profile Picture') }} @else ... @endif   {{ $profile_name }}
    {{ __('Profile') }} {{ __('Logout') }}
    @csrf