wishlist.blade.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @extends('supervisor.layouts.master')
  2. @section('content')
  3. <div class="card p-2 rounded border-0" style="background-color: #ffffff; color: #141639c4;">
  4. <div class="col-md-12">
  5. <div class="table-responsive">
  6. <table class="table table-bordered list_table" style="margin: 0px;">
  7. <thead>
  8. <tr>
  9. <th>Sl</th>
  10. <th>Name</th>
  11. <th>Email</th>
  12. <th>Invited on</th>
  13. <th>Applied</th>
  14. <th>Channel</th>
  15. <th class="text-center">Total Invited</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @if(count($refer_users) > 0)
  20. @foreach($refer_users as $key=>$row)
  21. <tr>
  22. <td style="font-size: 11px;">{{$key+1}}</td>
  23. <td style="font-size: 11px;">{{$row->first_name }} {{$row->last_name }}</td>
  24. <td style="font-size: 11px;">{{$row->email}}</td>
  25. <td style="font-size: 11px;">@if(!empty($row->invitation_date)) {{ date('d M Y h.i A', strtotime($row->invitation_date)) }} @else -- @endif</td>
  26. <td style="font-size: 11px;">
  27. @php
  28. $teacher_id =\Auth::guard('teacher')->user()->id;
  29. $submitted =\DB::table('student_proposals')->where(
  30. 'student_id',$row->id
  31. )->where(
  32. 'teacher_id',$teacher_id
  33. )->where(
  34. 'proposal_submit_status',1
  35. )->orderBy('id','DESC')->first();
  36. @endphp
  37. @if(!empty($submitted->submitted_date)) {{ date('d M Y h.i A', strtotime($submitted->submitted_date)) }} @else -- @endif
  38. </td>
  39. <td style="font-size: 11px;">
  40. @if($row->register_type==3)
  41. Q-Apply
  42. @else
  43. --
  44. @endif
  45. </td>
  46. <td class="text-center">
  47. @php
  48. $user_invited_count = \DB::table('refer_users')->where('email',$row->email)->count();
  49. @endphp
  50. @if($user_invited_count > 1)
  51. <span class="badge bg-secondary">
  52. {{ $user_invited_count }}
  53. </span>
  54. @else
  55. --
  56. @endif
  57. </td>
  58. </tr>
  59. @endforeach
  60. @else
  61. <tr>
  62. <td colspan="5" class="text-center text-danger">No data found!</td>
  63. </tr>
  64. @endif
  65. </tbody>
  66. </table>
  67. </div>
  68. </div><!--end col-->
  69. </div>
  70. @endsection
  71. @push('js')
  72. @endpush