apply_student_proposal.blade.php 7.5 KB

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