apply_student_proposal.blade.php 5.1 KB

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