header_min.blade.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <link href="{{ theme_asset('app/css/jucai.css') }}" rel="stylesheet">
  2. <div class="header_min @if(stripos(Route::currentRouteName(),'jobfair.show.com') !== false) jobfairheader_min @endif" id="header">
  3. <div class="header_min_top">
  4. <div id="J_header" class="itopl font_gray6 link_gray6">
  5. @if(!is_null($subsites))
  6. <a class="J-choose-subsite"><span class="current_site">{{$subsites[get_subsite_id()]['sitename']}}</span><span class="change_site">[切换分站]</span></a>
  7. @endif
  8. <span class="link_yellow">您好,欢迎来到{{subsite_config('aix.system.site.site.site_name')}}!</span>
  9. <!--@if(auth('web-member')->check())
  10. <span class="link_yellow">您好!欢迎来到{{subsite_config('aix.system.site.site.site_name')}}
  11. <a href="{{url('person/index')}}">{{auth('web-member')->user()->username}}</a> |
  12. <a href="{{route('logout')}}">退出</a>
  13. </span>
  14. @elseif(auth('web-company')->check())
  15. <span class="link_yellow">您好!欢迎来到{{subsite_config('aix.system.site.site.site_name')}}
  16. <a href="{{route('com.index')}}">{{auth('web-company')->user()->username}}</a> |
  17. <a href="{{route('logout')}}">退出</a>
  18. </span>
  19. @elseif(auth('web-organization')->check())
  20. <span class="link_yellow">您好!欢迎来到{{subsite_config('aix.system.site.site.site_name')}}
  21. <a href="{{route('org.index')}}">{{auth('web-organization')->user()->username}}</a> |
  22. <a href="{{route('logout')}}">退出</a>
  23. </span>
  24. @else
  25. <span class="link_yellow">您好!欢迎来到{{subsite_config('aix.system.site.site.site_name')}}请 <a href="{{route('login')}}">登录</a> 或 <a href="{{route('register.index')}}">免费注册</a></span>
  26. @endif-->
  27. </div>
  28. <div class="itopr font_gray9 link_gray6">
  29. <ul class="link">
  30. @if(auth('web-member')->check())
  31. <li class="link_yellow">
  32. <a href="{{url('person/index')}}" class="head_min_username" id="username_id">
  33. @php
  34. $memberService=app('App\Services\Person\MemberService');
  35. echo htmlspecialchars($memberService->getName());
  36. @endphp
  37. </a>
  38. <a href="{{ url('person/pms') }}?status=1" class="head_my_msg"> <span class="msg_count">我的消息@if($pmsNum)<i> @if($pmsNum>99)99+@else{{ $pmsNum or 0 }}@endif </i>@endif </span></a>
  39. <a href="{{route('logout')}}">退出</a>
  40. </li>
  41. @elseif(auth('web-company')->check())
  42. <li class="link_yellow">
  43. <a href="{{route('com.index')}}" class="head_min_username" title="{{ auth('web-company')->user()->companyname }}">{{auth('web-company')->user()->companyname}}</a>
  44. <a href="{{ route('com.pms') }}?new=1" class="head_my_msg"> <span class="msg_count">我的消息@if($pmsNum)<i>@if($pmsNum>99)99+@else{{ $pmsNum or 0 }}@endif</i>@endif </span></a>
  45. <a href="{{route('logout')}}">退出</a>
  46. </li>
  47. @elseif(auth('web-organization')->check())
  48. <li class="link_yellow">
  49. <a href="{{route('org.index')}}" class="head_min_username" title="{{ auth('web-organization')->user()->orgname }}">{{auth('web-organization')->user()->orgname}}</a>
  50. <a href="{{route('logout')}}">退出</a>
  51. </li>
  52. @else
  53. <li class="per"><i></i><a href="{{route('login')}}">个人登录</a><span>/</span><a href="{{route('register.person')}}" class="register_user">注册</a></li>
  54. <li>|</li>
  55. <li class="com"><i></i><a href="{{route('login.company')}}">企业登录</a><span>/</span><a href="{{route('register.company')}}" class="register_user">注册</a></li>
  56. {{-- <li>|</li>--}}
  57. {{-- <li class="com"><i></i><a href="{{route('login.org')}}">机构登录</a><span>/</span><a href="{{route('register.org')}}" class="register_user">注册</a></li>--}}
  58. @endif
  59. {{--<li>--}}
  60. {{--<a href="/mobile" class="m qr_mobile" target="_blank" rel="nofollow noopener noreferrer">手机访问--}}
  61. {{--<div>{!! get_qrcode_html(route('mobile.home'), true, 100, 0) !!}</div>--}}
  62. {{--</a>--}}
  63. {{--</li>--}}
  64. </ul>
  65. <!--<a href="#" class="service">服务声明</a>
  66. <a href="{:url_rewrite('QS_help')}" class="help" target="_blank" rel="nofollow noopener noreferrer">常见问题</a>-->
  67. </div>
  68. <div class="clear"></div>
  69. </div>
  70. </div>
  71. @if(!is_null($subsites))
  72. <script id="J-sub-dialog-content" type="text/html">
  73. <div class="sub-dialog-group">
  74. <div class="sdg-title">亲爱的用户您好:</div>
  75. <div class="sdg-split-20"></div>
  76. <div class="sdg-h-tips">请您切换到对应的分站,让我们为您提供更准确的职位信息。</div>
  77. <div class="sdg-split-30"></div>
  78. <div class="sdg-h-line"></div>
  79. <div class="sdg-split-20"></div>
  80. <div class="sdg-master-group">
  81. <div class="sdg-txt-right">切换到以下分站</div>
  82. <div class="clear"></div>
  83. </div>
  84. <div class="sdg-split-20"></div>
  85. <div class="sdg-sub-city-group">
  86. @foreach($subsites as $site)
  87. <a href="{{get_subsite_domain($site['id'])}}" class="sdg-sub-city">{{$site['sitename']}}</a>
  88. @endforeach
  89. <div class="clear"></div>
  90. </div>
  91. <div class="sdg-split-16"></div>
  92. <div class="sdg-bottom-tips">如果您在使用中遇到任何问题,请随时联系{{config('aix.system.site.site.bootom_tel')}}寻求帮助</div>
  93. <div class="sdg-split-11"></div>
  94. </div>
  95. </script>
  96. <script type="text/javascript">
  97. $('.change_site').click(function () {
  98. showSubDialog();
  99. });
  100. function showSubDialog() {
  101. var siteDialog = $(this).dialog({
  102. title: '切换分站',
  103. showFooter: false,
  104. border: false
  105. });
  106. siteDialog.setContent($('#J-sub-dialog-content').html());
  107. $('.sdg-sub-city').each(function (index, value) {
  108. if ((index + 1) % 4 == 0) {
  109. $(this).addClass('no-mr');
  110. }
  111. });
  112. }
  113. </script>
  114. @endif