apply_student_proposal.blade.php 6.2 KB

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