.header-db .innavbar .site-logo.txt-logo-home - if logged_in? and current_user.is_registration_completed? = link_to dashboard_path, data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'} do = image_tag("logo-syrch-new-s.png", width: '117', alt: Configurations::General.application_name) - else = link_to '#' do = image_tag("logo-syrch-new-s.png", width: '117', alt: Configurations::General.application_name) span | Beta .site-search-box.pl50 .search-box - 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, Course, Tutor", id: 'term' button.btn-search i.fa.fa-search .site-indicators .pull-left.dd-noti.mt6.ml0.icon-group1 - if logged_in? and current_user.is_registration_completed? .inline = link_to dashboard_path(tab: "appointments"), data:{toggle: :tooltip, placement:'bottom',title:'Personal calendar'} i.fa.fa-calendar alt="Personal calendar" .inline = link_to invoices_path, data:{toggle: :tooltip, placement:'bottom',title:'Payments'} i.fa.fa-credit-card .inline = link_to new_invite_path, data: {toggle: 'modal', target: '#remote-modal'} i.fa.fa-user data-toggle="tooltip" data-placement='bottom' data-title='Invite Friend(s)' .dd-signout - if logged_in? and current_user.is_registration_completed? .site-indicators .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-o.lightgrey 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 .inline .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-o.lightgrey 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.ico-on.account-balance.mr10.mt3 - if current_user.is_registration_completed? = link_to new_transfer_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-dollar data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.fs10.pl3 = current_user.total_balance - else i.fa.fa-dollar data-toggle="tooltip" data-placement='bottom' data-title='Balance' span.fs10.pl3 = current_user.total_balance .pull-left.mr10 = image_tag current_user.image.url(:thumb), class: 'profile_img', height: "30", width: "30" .dropdown.pull-right.mt1 .uname.inline = link_to dashboard_path , data:{toggle: :tooltip, placement:'bottom',title:'Dashboard'} = current_user.name a.inline.arrdown data-toggle="dropdown" href="#" i.fa.fa-angle-down ul.dropdown-menu.down-arrow-mini - if current_user.is_registration_completed? li = link_to '#', id: 'help-snap', data: {email: current_user.email} do i.fa.fa-info.mr5 span.fs10 | Help li = link_to new_invite_path, data: {toggle: 'modal', target: '#remote-modal'} do i.fa.fa-user.mr5 span.fs10 | Refer A Friend - if current_user.student? li = link_to upgrade_users_path(upgrade_type: 'tutor'),method: :patch, remote: true, data: {confirm: 'Please confirm your upgrade to Tutor and then complete your entire profile.', title: "Confirm your Action", commit: 'Upgrade'} do i.fa.fa-star.mr5 span.fs10 |Upgrade to Tutor li.mt7 = link_to logout_path, method: :delete do i.fa.fa-sign-out.mr5 span.fs10 | Logout - else .iright = link_to login_path, class:'bx-login', data:{toggle: :modal, target:'#remote-modal'} do i.fa.fa-lock span.fs10.pl5 | Login = link_to signup_path, class:'bx-regis' do i.fa.fa-user span.fs10.pl5 | Sign Up