apply_student_proposal.blade.php 6.7 KB

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