ref_search_load.blade.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @if($teacher)
  2. <div class="alert mt-3 mb-3" style="border: 2px solid #e9f0f3 !important; width: 100%; display: -webkit-inline-box; font-size: 12px !important; font-weight:bold !important; color: black; border-radius: 6px;">
  3. <div class="col-md-12">
  4. <div class="row">
  5. <div class="col-md-10">
  6. <span style="margin: 0px;">{{$teacher->first_name}} {{$teacher->last_name}}</span></br>
  7. <span class="text-muted" style="font-weight: 500;">{{$teacher->designation}}</span></br>
  8. @if(isset($teacher->department_name))
  9. <span class="text-muted" style="font-weight: 500;">{{cn($teacher,'department_name.name','')}}</span>
  10. @else
  11. <span class="text-muted" style="font-weight: 500;">{{$teacher->others_department}}</span>
  12. @endif
  13. <span>.</span>
  14. <span class="text-muted" style="font-weight: 500;">{{$teacher->university_name}}</span>
  15. </div>
  16. <div class="col-md-2 mt-3">
  17. <span class="btn btn3 open_modal_page" data-url="{{route('modal-get',['name'=>'apply_student_proposal','id'=>$teacher->id])}}" data-title="Submit your Proposal" style="margin-left: 1.1rem;">Apply</span>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. @else
  23. <div class="alert mt-3 mb-3" style="border: 2px solid #e9f0f3 !important; width: 100%; display: -webkit-inline-box; font-size: 12px !important; font-weight:bold !important; color: black; border-radius: 6px;">
  24. <div class="col-md-12">
  25. <div class="row">
  26. <div class="col-md-12 text-center">
  27. <span class="text-danger">No data found!</span>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. @endif
  33. {{-- @include('web.layouts.modal') --}}
  34. <script>
  35. $(function(){
  36. // $('.apply_student').on('click', function(e){
  37. // e.preventDefault();
  38. // var id = $(this).data('id');
  39. // var form_data={
  40. // _token: "{{ csrf_token() }}",
  41. // id: id
  42. // }
  43. // swal(
  44. // // {
  45. // // title: "Are you sure?",
  46. // // text: "Do you want to send email!",
  47. // // type: "warning",
  48. // // showCancelButton: true,
  49. // // confirmButtonClass: "btn-success",
  50. // // cancelButtonClass: "btn-danger",
  51. // // confirmButtonText: "Yes",
  52. // // cancelButtonText: "No"
  53. // // },
  54. // function(isConfirm){
  55. // if(isConfirm){
  56. // $.post("{{ route('ajax-post', ['name'=>'send_apply_student_teacher_email']) }}", form_data, function(res){
  57. // if(res.msg) pop_up_msg(res.msg);
  58. // }).fail(function(err){
  59. // });
  60. // }
  61. // });
  62. // });
  63. });
  64. </script>