ref_search_load.blade.php 2.9 KB

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