.container-fluid .row.header-db .lspace-off .col-xs-2.col-sm-3.col-md-3.no-padding .site-logo.txt-logo-home.hidden-xs - if logged_in? and current_user.is_registration_completed? = link_to dashboard_path, data:{toggle: :tooltip, placement:'bottom',title:'Home'} do = image_tag("logo-syrch-new-s.png", height: '30', alt: Configurations::General.application_name) - else = link_to root_path do = image_tag("logo-syrch-new-s.png", height: '30', alt: Configurations::General.application_name) .small-logo.visible-xs.hidden-sm.hidden-md.hidden-lg - if logged_in? and current_user.is_registration_completed? = link_to dashboard_path, data:{toggle: :tooltip, placement:'bottom',title:'Home'} do = image_tag("logo-syrch-new-s.png", alt: Configurations::General.application_name, height:'30') - else = link_to '#' do = image_tag("logo-syrch-new-s.png", alt: Configurations::General.application_name, height:'30') .hidden-xs.col-sm-5.col-md-4.search-box.hide - if logged_in? and current_user.is_registration_completed? = form_tag users_path, method: :get, turboboost: true, id: 'search-form' do .txt-searchby = text_field_tag :query, params[Subject.model_name.human.downcase], placeholder: "Search by #{Subject.model_name.human}, #{Course.model_name.human} or #{Tutor.model_name.human}", id: 'term' button.btn-search i.fa.fa-search .col-xs-9.col-sm-4.col-md-5.pull-right.no-padding - if logged_in? .dd-signout - if current_user.is_registration_completed? .site-indicators .pull-left.mt-2.hidden-xs = link_to dashboard_path, class: 'prof-img' = image_tag current_user.image.url(:thumb), class: 'profile_img', height: "30", width: "30" .dropdown.pull-left .uname = link_to dashboard_path, data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'}, class: 'white' = current_user.name .pull-left.home-icon = link_to dashboard_path(tab: "appointments"), data:{toggle: :tooltip, placement:'bottom',title:'Appointments'}, class:'white' do | Appointments .pull-left.dd-noti .pull-left / Notifications Section Start .notifications.dropdown data-toggle="tooltip" data-placement="bottom" title="Notifications" = link_to notifications_path, data: {toggle: :dropdown, target: '#'}, id: 'dNotification' do i.fa.fa-bell class= "#{'active' unless unread_notifications_count.zero?}" alt="Notifications" - unless unread_notifications_count.zero? .indication = unread_notifications_count ul.infinitescroll.dropdown-menu.down-arrow aria-labelledby="dNotification" role="menu" = image_tag('loading.gif', alt: 'Loading ...') / Message Section Start .pull-left .messages.dropdown data-toggle="tooltip" data-placement="bottom" title="Messages" = link_to conversations_path(type: 'dropdown'), data: {toggle: :dropdown, target: '#'}, id: 'dMessage' do i.fa.fa-envelope class= "#{'active' unless unread_message_count.zero?}" alt="Messages" - unless unread_message_count.zero? .indication = unread_message_count ul.infinitescroll.dropdown-menu.down-arrow aria-labelledby="dMessage" role="menu" = image_tag('loading.gif', alt: 'Loading ...') - if logged_in? .pull-left.account-balance.hidden-xs - if current_user.is_registration_completed? = link_to new_transfer_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-dollar.dollar-color data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.withdraw-amt.white = current_user.total_balance - else i.fa.fa-dollar.dollar-color data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.withdraw-amt.white = current_user.total_balance a.pull-left.arrdown data-toggle="dropdown" href="#" i.fa.fa-caret-down ul.dropdown-menu.down-arrow-mini li = link_to dashboard_path(tab: "appointments"), data:{toggle: :tooltip, placement:'bottom',title:'Appointments'} do i.fa.fa-book.mr5 span.fs10 |Appointments - if current_user.is_registration_completed? li = link_to dashboard_path(tab: "tasks") do i.fa.fa-tasks.mr5 span.fs10 | Tasks li = link_to dashboard_path(tab: "pay") i.fa.fa-credit-card.mr5 span.fs10 | Payments - if current_user.student? and current_user.can_upgrade? and !ActsAsTenant.current_tenant.try(:prelaunch?) li = link_to upgrade_users_path(upgrade_type: 'tutor'),method: :patch, remote: true, data: {confirm: 'Please confirm your upgrade to Representative and then complete your entire profile.', title: "Confirm your Action", commit: 'Upgrade'} do i.fa.fa-star.mr5 span.fs10 |Upgrade to Representative - if Configurations::Invite.enabled? li = link_to new_invite_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-user.mr5 span.fs10 | Refer A Friend li = link_to settings_path i.fa.fa-cog.mr5 span.fs10 | My Account li = link_to logout_path, method: :delete do i.fa.fa-sign-out.mr5 span.fs10 | Logout - else .iright.hide = link_to select_user_type_path, class:'btn-signup' , data:{toggle: :modal, target:'#remote-modal'} do | Sign Up = link_to login_path, class:'btn-login', data:{toggle: :modal, target:'#remote-modal'} do | LOGIN