apply_student_proposal.blade.php 5.3 KB

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