interview.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @extends('mobile.module.layouts.content')
  2. @push('meta')
  3. <meta name="csrf-token" content="{{ csrf_token() }}">
  4. @endpush
  5. @push('css')
  6. <link href="{{ theme_asset('mobile/css/common.css') }}" rel="stylesheet">
  7. <link href="{{ theme_asset('mobile/css/jobfair_member.css') }}" rel="stylesheet">
  8. @endpush
  9. @push('js')
  10. <script src="{{ theme_asset('mobile/js/dropload.min.js') }}"></script>
  11. @endpush
  12. @section('content')
  13. <div class="panel panel-primary">
  14. <div class="panel-body">
  15. <div id="info" class="drop_content">
  16. @if($interview->isNotEmpty())
  17. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_data">
  18. <tr>
  19. <td>姓名</td>
  20. <td>职位</td>
  21. <td>发出时间</td>
  22. </tr>
  23. <tr>
  24. <td colspan="3" class="noborder"></td>
  25. </tr>
  26. @foreach($interview as $val)
  27. <tr class="data-tr">
  28. <td><a href="{{route('mobile.resumes.show',['id'=>$val->resumes->id,'type'=>1])}}">{{$val->resumes->fullname}}</a></td>
  29. <td>{{$val->putJobs->jobs->jobs_name}}</td>
  30. <td>{{substr($val->created_at,2,14)}}</td>
  31. </tr>
  32. @endforeach
  33. </table>
  34. @else
  35. <div class="list-empty">
  36. 您还没有发出面试邀请!
  37. </div>
  38. @endif
  39. </div>
  40. </div>
  41. </div>
  42. @endsection
  43. @section('script')
  44. <script>
  45. $('#logout').on('click', function () {
  46. var dialog = new QSpopout();
  47. dialog.setContent('确定退出吗?');
  48. dialog.show();
  49. dialog.getPrimaryBtn().on('click', function () {
  50. window.location.href = "{{ route('mobile.logout') }}";
  51. });
  52. });
  53. $('.delete').on('click',function(){
  54. var jobs_delete = '被删除后将无法恢复,您确定要删除选中的职位吗?';
  55. url = $(this).attr('url');
  56. var dialog = new QSpopout('职位删除');
  57. dialog.setContent(jobs_delete);
  58. dialog.show();
  59. dialog.getPrimaryBtn().on('click', function () {
  60. $.getJSON(url,function(result){
  61. console.log(result);
  62. if(result.status==1){
  63. qsToast({type: 1, context: result.msg});
  64. setTimeout(function(){
  65. window.location.reload();
  66. },2000);
  67. }else{
  68. qsToast({type: 2, context: result.msg});
  69. return false;
  70. }
  71. });
  72. });
  73. dialog.show();
  74. });
  75. </script>
  76. @endsection