load_application.blade.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @if(count($students) >0)
  2. <div class="col-md-12 bg-white" style="padding:10px; height:500px;">
  3. <h4 class="text-info"></h4>
  4. <div class="table-responsive">
  5. <table class="table table-bordered list_table">
  6. <thead>
  7. <tr>
  8. <th>Sl</th>
  9. <th>Student Information</th>
  10. <th>Education</th>
  11. <th class="text-center">English Test</th>
  12. <th class="text-center">Others</th>
  13. <th>Proposal Summary</th>
  14. <th class="text-center">Status</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. @foreach($students as $key=>$row)
  19. <tr>
  20. <td style="font-size: 11px;">{{$key+1}}</td>
  21. <td>
  22. <div style="font-size: 12px; font-weight: 600; color: black; text-transform: capitalize;">
  23. <span>{{cn($row,'student_details.first_name','')}} {{cn($row,'student_details.last_name','')}}</span>
  24. </div>
  25. <div style="font-size: 11.5px;">
  26. <a href="" class="" style="color: #868e96;"><span>Ref : {{$row->student_apply_ref ?? "N/A"}} </span></a>
  27. </div>
  28. <div style="font-size: 11.5px;">
  29. <span style="color: #868e96;">Applied : {{utc_to_ltz($row->submitted_date, 'd M Y g:i A', local_tz($user))}}</span>
  30. </div>
  31. </td>
  32. <td style="font-size: 11.5px;">
  33. <div style="font-size: 11.5px; font-weight: 600; display:block;">
  34. <span style="color: black;">{{cn($row,'institutes.institution','')}}</span>
  35. </div>
  36. <div style="font-size: 11.5px;">
  37. <span style="color: black;">Passing Year : {{cn($row,'institutes.passing_year','N/A')}} </span>
  38. </div>
  39. <div class="mt-1" style="font-size: 11.5px;">
  40. <span class="label_badge_gpa">{{cn($row,'institutes.result','')}} (GPA)</span>
  41. </div>
  42. </td>
  43. <td style="font-size: 11.5px; text-align:center; color: black;">{{cn($row,'scores.test_name','N/A')}} - {{cn($row,'scores.overall_score','')}}
  44. <div style="font-size: 11.5px;">
  45. <span style="color: black;">
  46. @php
  47. $work_history_first =$row->work_experience_date()->whereNotNull('start_date')->oldest()->first();
  48. $work_history_last =$row->work_experience_date()->latest()->first();
  49. if($work_history_first && $work_history_last && $work_history_last->end_date){
  50. $diff_in_days =diff_in_days($work_history_first->start_date,$work_history_last->end_date);
  51. }elseif($work_history_first){
  52. $diff_in_days =diff_in_days($work_history_first->start_date, now());
  53. }else{
  54. $diff_in_days =0;
  55. }
  56. $years = ($diff_in_days / 365) ;
  57. $years = floor($years);
  58. $month = ($diff_in_days % 365) / 30.5;
  59. $month = floor($month);
  60. $days = ($diff_in_days % 365) % 30.5;
  61. @endphp
  62. <div class="mt-1" style="font-size: 11px; display:block;">
  63. <span class="label_badge_work"><i class="fa fa-briefcase" style="color: rgb(152, 152, 152); margin-right: 5px;"></i>{{$years}} years</span>
  64. </div>
  65. </span>
  66. </div>
  67. </td>
  68. <td style="font-size: 11px; text-align:center;">
  69. <div style="font-size: 11px; display:block;">
  70. <div style="font-size: 11px; color: black;"> Pu :
  71. @if($row->student_details->is_publication==1)
  72. <span class="label_badge_work"> yes</span>
  73. @else
  74. <span class="label_badge_no"> No</span>
  75. @endif
  76. </div>
  77. <div class="mt-1" style="font-size: 11px; color: black;"> Con :
  78. @if($row->student_details->is_attended_conference==1)
  79. <span class="label_badge_work"> yes</span>
  80. @else
  81. <span class="label_badge_no"> No</span>
  82. @endif
  83. </div>
  84. </div>
  85. </td>
  86. <td style="font-size: 11px;">
  87. @php
  88. $hashids = new \Hashids\Hashids('application', 25);
  89. @endphp
  90. <div class="inner_right">
  91. <a href="{{ url('supervisor/application/'.$hashids->encode($row->id)) }}"><strong style="font-size:11px; color:black;">{{cn($row,'proposal.title','')}}</strong></a></br>
  92. <span style="color:black;">{{cn($row,'proposal.methology','')}}</span>
  93. @php
  94. $proposal =\DB::table('proposal')->where(
  95. 'student_id',$row->student_id
  96. )->first();
  97. if(isset($proposal)){
  98. $department =\DB::table('departments')->where(
  99. 'id',$proposal->department
  100. )->first();
  101. }
  102. @endphp
  103. @if(isset($department))
  104. <span>.</span>
  105. <span style="color:black;">
  106. {{ $department->name }}
  107. </span>
  108. @endif
  109. <span>.</span>
  110. <span style="color:black;">{{cn($row,'proposal.status','')}}</span>
  111. </div>
  112. </td>
  113. <td style="font-size: 11px; text-align:center;">
  114. <div class="top_part_status">
  115. @if($row->accepted_status==1 && $row->proposal_status ==1)
  116. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Reviewing</button>
  117. @elseif($row->accepted_status==1 && $row->proposal_status ==2)
  118. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Reviewing</button>
  119. @elseif($row->accepted_status==1 && $row->proposal_status ==3)
  120. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Push</button>
  121. @elseif($row->accepted_status==1 && $row->proposal_status ==4)
  122. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Hold</button>
  123. @elseif($row->accepted_status==1 && $row->proposal_status ==5)
  124. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Interested</button>
  125. @elseif($row->accepted_status==1 && $row->proposal_status ==6)
  126. <button class="btn btn2" style="padding: 1px 10px !important; font-size: 11px;">Rejected</button>
  127. @else
  128. <button class="btn btn2 accept_status_update" data-id="{{$row->id}}" style="padding: 1px 10px !important; font-size: 11px;">Accept</button>
  129. @endif
  130. @if($row->proposal_status_date)
  131. <br>
  132. <span style="font-size:11px; font-weight: bold;">
  133. {{utc_to_ltz($row->proposal_status_date, 'd M Y g:i A', local_tz($user))}}
  134. </span>
  135. @endif
  136. </div>
  137. </td>
  138. </tr>
  139. @endforeach
  140. </tbody>
  141. </table>
  142. </div>
  143. </div><!--end col-->
  144. @else
  145. <div class="col-md-12 bg-white" style="padding:10px;">
  146. <div class="alert mt-1 mb-3" style="border-color: #e9f0f3; font-size: 12px !important; color: #dc3545; border-radius: 30px; padding: 8px 15px; text-align: center;">
  147. <span>No data available.</span>
  148. </div>
  149. </div>
  150. @endif