application.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. @extends('application.layouts.master')
  2. @section('content')
  3. <section class="bg-half-170 d-table w-100" style="background-color: #efefef; height:100vh; padding:121px 0px 5px;">
  4. <div class="container mb-2">
  5. <div class="row align-items-center p-3">
  6. <div class="col-md-12">
  7. <div class="row">
  8. <div class="col-md-10" style="width:83%;">
  9. <div class="content_header ml-0">
  10. <div class="right">
  11. <h6 style="font-weight:bold !important; margin: 0px; color: #141639c4;">MY APPLICATION</h6>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- <div class="col-md-2 text-right">
  16. <button class="submit_button" style="margin-left:2.6rem;">Add New</button>
  17. </div> -->
  18. </div>
  19. </div>
  20. <div class="col-md-12">
  21. @if(count($student_proposal) > 0 )
  22. <div class="scrolled_content_part">
  23. @foreach($student_proposal as $key=>$row)
  24. <div class="single_ad_pref_item mb-4">
  25. <div class="p-2" style="display:flex;">
  26. <div class="left" style="width:50%;">
  27. <div class="uni_details" style="display:flex;">
  28. @if(cn($row,'teacher_details.university'))
  29. <img class="img-responsive listFlag" style="border-radius: 20px; padding: 0px;height: 37px;width: 37px;" src="{{ asset('/assets/img/flags/4x3').'/'.strtolower(cn($row,'teacher_details.university.country.iso_3166_2','')).'.svg' }}" alt="Flag" data-toggle="tooltip" title="" data-placement="top">
  30. @else
  31. <div class="inner_left mt-1" style="border: 1px solid black; border-radius: 20px; padding: 6px; height: 37px; width: 37px;">
  32. <i class="fa fa fa-university ms-1"></i>
  33. </div>
  34. @endif
  35. <div class="alert" style="background-color:white; padding: 3px 7px; margin-bottom: 0px;">
  36. <strong style="font-size:13px;">{{ cn($row,'teacher_details.first_name','')}} {{ cn($row,'teacher_details.last_name','')}}</strong></br>
  37. <span style="font-size:12px; font-weight:400;"> {{cn($row,'teacher_details.designation','')}} </span>
  38. <span> • </span>
  39. @if(isset($row->teacher_details->department_name))
  40. <span style="font-size:12px; font-weight:400;">{{cn($row,'teacher_details.others_department','')}}</span>
  41. @else
  42. <span style="font-size:12px; font-weight:400;"> {{cn($row,'teacher_details.department_name.name','')}}</span>
  43. @endif
  44. <span> • </span>
  45. @if($row->teacher_details->university_name)
  46. <span style="font-size:12px; font-weight:400;"> {{cn($row,'teacher_details.university_name','')}} </span>
  47. @else
  48. <span style="font-size:12px; font-weight:400;"> {{cn($row,'teacher_details.university.name','')}} </span>
  49. @endif
  50. </div>
  51. </div>
  52. </div>
  53. <div class="text-end" style="width:50%;">
  54. <span style="font-size:12px;">Apply Reference</span><br>
  55. <span class="label_badge_radius" style="background-color: #463993; color: white; border-radius: 4px; font-size:11px !important; font-weight:800;">{{$row->student_apply_ref ?? 'N/A'}}</span>
  56. </div>
  57. </div>
  58. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  59. @if($row->proposal_submit_status ==1)
  60. <div class="left" style="width:50%;">
  61. <div class="uni_details" style="display:flex;">
  62. <div class="inner_right ms-5">
  63. <span @if(isset($row->proposal->document_file)) class="open_modal_page" style="cursor: pointer;" data-url="{{route('modal-get',['name'=>'view_student_proposal','id'=>$row->proposal->id])}}" @endif>
  64. <strong style="font-size: 13px; font-weight: 600;">{{cn($row,'proposal.title','N/A')}}</strong>
  65. </span>
  66. <br>
  67. <div style="margin-top: -2px;">
  68. <span style="font-size:12px;">{{cn($row,'proposal.proposal_ref','N/A')}}</span>
  69. <span> • </span>
  70. <span style="font-size:12px;">{{cn($row,'proposal.methology','N/A')}}</span>
  71. @php
  72. $proposal =\DB::table('proposal')->where('id',$row->proposal_id)->first();
  73. if(isset($proposal->department)){
  74. $department =model('Department')::find($proposal->department);
  75. }
  76. @endphp
  77. @if(isset($department))
  78. <span> • </span>
  79. <span style="font-size:12px;">{{$department->name ?? ''}}</span>
  80. @endif
  81. <span> • </span>
  82. <span style="font-size:12px;">{{cn($row,'proposal.status','N/A')}}</span>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. @else
  88. <div class="left" style="width:100%;">
  89. <span class="alert mt-3" role="alert" style="font-size: 12px !important; border-radius: .55rem; padding: 8px 12px; margin-top: 6px; background: #fff0d6; color: rgb(237, 14, 14); border-color: #ffebca; border-width: 3px; border-style: double;">
  90. <i class="fa fa-warning" style="font-size: 11px; margin-right: 5px; color: rgb(237, 14, 14) !important; top: 0px; position: relative;"></i>
  91. No proposal available
  92. </span>
  93. </div>
  94. @endif
  95. </div>
  96. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  97. <div class="left" style="width:50%;">
  98. <div class="uni_details" style="display:flex;">
  99. <div class="inner_right ms-5">
  100. <span style="font-size:12px;">Preferred Start Date : <br><strong style="font-size:13px;">@if(!empty($row->preferred_start_date)){{ date('M Y', strtotime($row->preferred_start_date))}} @else {{'N/A'}} @endif</strong></span><br>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="text-end" style="width:50%;">
  105. <span style="font-size:12px;">Application Status </span><br>
  106. @if($row->proposal_submit_status==1 && $row->proposal_status ==1)
  107. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">Applied</span>
  108. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==2 || $row->proposal_submit_status==1 && $row->proposal_status ==3)
  109. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">In Review</span>
  110. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==4)
  111. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">Hold</span>
  112. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==5)
  113. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">Interested</span>
  114. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==6)
  115. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">Rejected</span>
  116. @elseif($proposal =='true' || $publication =='true' || $worK_exp =='true'|| $institution =='true'|| $score =='true')
  117. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold; cursor: pointer;">Draft</span>
  118. @else
  119. <span class="label_badge_radius open_modal_page tooltips" title="Click to Submit" data-url="{{ route('modal-get',['name'=>'update_student_proposal','id'=>$row->id,'student_id'=>$row->student_id,'teacher_id'=>$row->teacher_id]) }}" data-title="Submit your Proposal" style="background-color: #f2d0a4; color: #dc3545; border-radius: 5px; font-weight: bold; cursor: pointer;">Not Yet Submitted</span>
  120. @endif
  121. </div>
  122. </div>
  123. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  124. @if($row->proposal_submit_status==1 && $row->proposal_status ==6 && $row->feedback_msg)
  125. <span class="alert mt-3" role="alert" style="font-size: 12px !important; border-radius: .55rem; padding: 8px 12px; margin-top: 6px; background: #fff0d6; color: rgb(237, 14, 14); border-color: #ffebca; border-width: 3px; border-style: double;">
  126. <i class="fa fa-warning" style="font-size: 11px; margin-right: 5px; color: rgb(237, 14, 14) !important; top: 0px; position: relative;"></i>
  127. Rejected, {{ $row->feedback_msg }}
  128. </span>
  129. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==4)
  130. <span class="alert mt-3" role="alert" style="font-size: 12px !important; border-radius: .55rem; padding: 8px 12px; margin-top: 6px; background: #fff0d6; color: rgb(237, 14, 14); border-color: #ffebca; border-width: 3px; border-style: double;">
  131. <i class="fa fa-warning" style="font-size: 11px; margin-right: 5px; color: rgb(237, 14, 14) !important; top: 0px; position: relative;"></i>
  132. {{'Hold, Further document/information needed'}}
  133. </span>
  134. @elseif($row->proposal_submit_status==1 && $row->proposal_status ==5)
  135. <span class="alert mt-3" role="alert" style="font-size: 12px !important; border-radius: .55rem; padding: 8px 12px; margin-top: 6px; background: #fff0d6; color: rgb(237, 14, 14); border-color: #ffebca; border-width: 3px; border-style: double;">
  136. <i class="fa fa-warning" style="font-size: 11px; margin-right: 5px; color: rgb(237, 14, 14) !important; top: 0px; position: relative;"></i>
  137. {{'Interested, please submit application'}}
  138. </span>
  139. @endif
  140. </div>
  141. </div>
  142. @endforeach
  143. </div>
  144. @else
  145. <div class="alert mt-2 mb-3" style="background-color: #ffff; border-color: #e9f0f3; font-size: 12px !important; color: #dc3545; border-radius: 30px; padding: 8px 15px;">
  146. <span>No Application available.</span>
  147. </div>
  148. @endif
  149. </div>
  150. </div>
  151. </div><!--end container-->
  152. </section>
  153. @endsection