update_student_proposal.blade.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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="id" value="{{$std_proposal->id}}">
  11. <input type="hidden" name="teacher_id" value="{{$teacher->id}}">
  12. <input type="hidden" name="student_id" value="{{$student->id}}">
  13. <div class="d-flex">
  14. @if($teacher->university)
  15. <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">
  16. {{-- @else
  17. <div class="inner_left mt-1" style="background-color: #141639c4; padding: 18px 0px 0px 0px; height: 47px; width: 56px; margin-top: 9px !important;">
  18. <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>
  19. </div> --}}
  20. @endif
  21. <div class="alert" style="background-color:white; padding: 3px 7px; margin-bottom: 0px;">
  22. <span style="margin: 0px;">{{$teacher->first_name}} {{$teacher->last_name}}</span></br>
  23. <span class="text-muted" style="font-weight: 500;">{{$teacher->designation}}</span></br>
  24. @if($teacher->others_department)
  25. <span class="text-muted" style="font-weight: 500;">{{$teacher->others_department}}</span>
  26. @else
  27. <span class="text-muted" style="font-weight: 500;">{{cn($teacher,'department_name.name','')}}</span>
  28. @endif
  29. <span> • </span>
  30. @if($teacher->university_name)
  31. <span class="text-muted" style="font-weight: 500;">{{$teacher->university_name}}</span>
  32. @else
  33. <span class="text-muted" style="font-weight: 500;">{{cn($teacher,'university.name','')}}</span>
  34. @endif
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="middle p-3 mt-3" style="background-color:white; border-radius:6px;">
  41. <p style="font-size: 16px; font-weight: bold; margin-bottom: 0px !important;">Please select which proposal you want to send</p>
  42. <div class="alert mb-3 propose" style="padding: 0px; margin-bottom: 0px">
  43. <div style="width:100%;">
  44. @if(count($proposal) > 0)
  45. @foreach($proposal as $row)
  46. <div class="p-2" style="border-bottom: 2px solid #eee;">
  47. <div class="custom-control custom-radio custom-control-inline">
  48. <div class="form-check mb-0">
  49. <input class="form-check-input mt-2" type="radio" name="proposal_id" value="{{$row->id}}" id="flexRadioDefault1">
  50. <label class="form-check-label" for="flexRadioDefault1" style="font-weight: 600 !important; font-size: 13px;">{{$row->title}}</label></br>
  51. <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>
  52. </div>
  53. </div>
  54. </div>
  55. @endforeach
  56. @else
  57. <div class="col md-4 mt-1">
  58. <div class="col-md-12">
  59. <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>
  60. </div>
  61. </div>
  62. @endif
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="container mt-3">
  68. <div class="col-md-12 p-3" style="background-color:white; border-radius:6px;">
  69. <p style="margin:0px; font-size: 16px; font-weight: bold;">Select propose start date</p>
  70. <div class="row">
  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="startdate" id="start date" class="form-control frm" required="" style="font-size: 13px;">
  76. <option disabled="" selected="" value="">Year</option>
  77. @foreach($years as $year)
  78. <option value="{{$year}}">{{$year}}</option>
  79. @endforeach
  80. </select>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="col-md-6">
  85. <div class="mb-1">
  86. <label class="form-label"></label>
  87. <div class="form-icon position-relative" style="margin-top: -10px;">
  88. <select name="startmonth" id="month" class="form-control frm" required="">
  89. <option disabled="" selected="" value="">Month</option>
  90. @for($i=1; $i<=12; $i++)
  91. <option value="{{ date('m', mktime(0, 0, 0, $i, 1)) }}">{{ date('F', mktime(0, 0, 0, $i, 1)) }}</option>
  92. @endfor
  93. </select>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="col-md-12 text-end">
  100. <button type="submit" class="btn btn1 mt-3 mb-3" style="padding: 3px 18px;">Submit</button>
  101. </div>
  102. </div>
  103. </form>
  104. <script>
  105. $(function(){
  106. // $('.select2').select2();
  107. $('#modal_page_footer').hide();
  108. });
  109. </script>
  110. @endsection