apply_student_proposal.blade.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @extends('modal_pages.base')
  2. @section('main')
  3. <form class="ajax-form" action="{{ url()->current() }}" method="POST" enctype="multipart/form-data">
  4. {{ csrf_field() }}
  5. <div class="container">
  6. <div class="col-md-12">
  7. <div class="middle p-3" style="background-color:white; border-radius:6px;">
  8. <p style="font-size: 16px; font-weight: bold; margin: 0px;">This proposal will be sent to the following supervisor</p>
  9. <div class="alert" style="padding: 0px; margin: 0px">
  10. <input type="hidden" name="teacher_id" value="{{$teacher->id}}">
  11. <input type="hidden" name="student_id" value="{{$student->id}}">
  12. <span style="margin: 0px;">{{$teacher->first_name}} {{$teacher->last_name}}</span></br>
  13. <span class="text-muted" style="font-weight: 500;">{{$teacher->designation}}</span></br>
  14. @if(isset($teacher->department_name))
  15. <span class="text-muted" style="font-weight: 500;">{{cn($teacher,'department_name.name','')}}</span>
  16. @else
  17. <span class="text-muted" style="font-weight: 500;">{{$teacher->others_department}}</span>
  18. @endif
  19. <span>.</span>
  20. <span class="text-muted" style="font-weight: 500;">{{$teacher->university_name}}</span>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="middle p-3 mt-3" style="background-color:white; border-radius:6px;">
  25. <p style="font-size: 16px; font-weight: bold; margin-bottom: 0px !important;">Please select which proposal you want to send</p>
  26. <div class="alert mb-3 propose" style="padding: 0px; margin-bottom: 0px">
  27. <div style="width:100%;">
  28. @foreach($proposal as $row)
  29. <div class="p-2" style="border-bottom: 2px solid #eee;">
  30. <div class="custom-control custom-radio custom-control-inline">
  31. <div class="form-check mb-0">
  32. <input class="form-check-input mt-2" type="radio" name="proposal_id" value="{{$row->id}}" id="flexRadioDefault1">
  33. <label class="form-check-label" for="flexRadioDefault1" style="font-weight: 400 !important; font-size: 13px;">{{$row->title}}</label></br>
  34. <span class="label_badge_radius" style="background-image: linear-gradient(90deg,rgba(46,17,83,.19),#f5f4fd); font-weight: 400 !important; font-size: 10px;">Ref. ({{ $row->proposal_ref}})</span>
  35. </div>
  36. </div>
  37. </div>
  38. @endforeach
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="container mt-3">
  44. <div class="col-md-12 p-3" style="background-color:white; border-radius:6px;">
  45. <p style="margin:0px; font-size: 16px; font-weight: bold;">Select propose start date</p>
  46. <div class="row">
  47. <div class="col-md-6">
  48. <div class="mb-1">
  49. <label class="form-label"></label>
  50. <div class="form-icon position-relative" style="margin-top: -10px;">
  51. <select name="startdate" id="start date" class="form-control frm" required="" style="font-size: 13px;">
  52. <option disabled="" selected="" value="">Year</option>
  53. @php
  54. $firstYear = (int)date('Y') - 20;
  55. $lastYear = $firstYear + 20;
  56. for($i=$firstYear;$i<=$lastYear;$i++){
  57. @endphp
  58. <option value="{{$i}}">{{$i}}</option>
  59. @php
  60. }
  61. @endphp
  62. </select>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="col-md-6">
  67. <div class="mb-1">
  68. <label class="form-label"></label>
  69. <div class="form-icon position-relative" style="margin-top: -10px;">
  70. <select name="startmonth" id="month" class="form-control frm" required="">
  71. <option disabled="" selected="" value="">Month</option>
  72. <option value="01">January</option>
  73. <option value="02">February</option>
  74. <option value="03">March</option>
  75. <option value="04">April</option>
  76. <option value="05">May</option>
  77. <option value="06">June</option>
  78. <option value="07">July</option>
  79. <option value="08">August</option>
  80. <option value="09">September</option>
  81. <option value="10">October</option>
  82. <option value="11">November</option>
  83. <option value="12">December</option>
  84. </select>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-md-12 text-end">
  91. <button type="submit" class="btn btn1 mt-3 mb-3" style="padding: 3px 18px;">Submit</button>
  92. </div>
  93. </div>
  94. </form>
  95. <script>
  96. $(function(){
  97. // $('.select2').select2();
  98. $('#modal_page_footer').hide();
  99. });
  100. </script>
  101. @endsection