application.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. @extends('web.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. @if(count($student_proposal) > 0 )
  21. <div class="col-md-12">
  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.department_name.name','')}}</span>
  41. @else
  42. <span style="font-size:12px; font-weight:400;">{{cn($row,'teacher_details.others_department','')}}</span>
  43. @endif
  44. <span>.</span>
  45. <span style="font-size:12px; font-weight:400;"> {{cn($row,'teacher_details.university.name','')}} </span>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="text-end" style="width:50%;">
  50. <span style="font-size:12px;">Apply Reference</span><br>
  51. <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>
  52. </div>
  53. </div>
  54. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  55. <div class="left" style="width:50%;">
  56. <div class="uni_details" style="display:flex;">
  57. <div class="inner_right ms-5">
  58. <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>
  59. <strong style="font-size: 13px; font-weight: 600;">{{cn($row,'proposal.title','N/A')}}</strong>
  60. </span>
  61. <br>
  62. <div style="margin-top: -2px;">
  63. <span style="font-size:12px;">{{cn($row,'proposal.proposal_ref','N/A')}}</span>
  64. <span> • </span>
  65. <span style="font-size:12px;">{{cn($row,'proposal.methology','N/A')}}</span>
  66. @php
  67. $proposal =\DB::table('proposal')->where('id',$row->proposal_id)->first();
  68. if(isset($proposal->department)){
  69. $department =model('Department')::find($proposal->department);
  70. }
  71. @endphp
  72. @if(isset($department))
  73. <span> • </span>
  74. <span style="font-size:12px;">{{$department->name ?? ''}}</span>
  75. @endif
  76. <span> • </span>
  77. <span style="font-size:12px;">{{cn($row,'proposal.status','N/A')}}</span>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  84. <div class="left" style="width:50%;">
  85. <div class="uni_details" style="display:flex;">
  86. <div class="inner_right ms-5">
  87. <span style="font-size:12px;">Preferred Start Date : <br><strong style="font-size:13px;">@if(!empty($row->submitted_date)){{ date('M Y', strtotime($row->submitted_date))}} @else @endif</strong></span><br>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="text-end" style="width:50%;">
  92. <span style="font-size:12px;">Application Status </span><br>
  93. @if($row->proposal_submit_status==1)
  94. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold;">Applied</span>
  95. @elseif($proposal =='true' || $publication =='true' || $worK_exp =='true'|| $institution =='true'|| $score =='true')
  96. <span class="label_badge_radius" style="background-color: #d8fdd8; color: green; border-radius: 5px; font-weight: bold; cursor: pointer;">Draft</span>
  97. @else
  98. <span class="label_badge_radius open_modal_page" 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;">Submit</span>
  99. @endif
  100. </div>
  101. </div>
  102. <div class="p-2" style="display:flex; border-top: 1px solid #eee;">
  103. <div class="left">
  104. <div class="uni_details" style="display:flex;">
  105. <div class="inner_right ms-5">
  106. <span style="font-size:12px; color: red;">{{ $row->feedback_msg ?? ""}}</span><br>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. @endforeach
  113. </div>
  114. @else
  115. <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;">
  116. <span>No Application available.</span>
  117. </div>
  118. @endif
  119. </div>
  120. </div>
  121. </div><!--end container-->
  122. </section>
  123. @endsection