apply_student_proposal.blade.php 7.7 KB

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