view.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @extends('admin.layout.index')
  2. @push('css-head')
  3. @endpush
  4. @section('content')
  5. <!-- Page header -->
  6. <div class="page-header page-header-light">
  7. <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
  8. <div class="d-flex">
  9. <div class="breadcrumb">
  10. <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
  11. <a href="{{url('/admin/courses')}}" class="breadcrumb-item"> Courses</a>
  12. <span class="breadcrumb-item active">View</span>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <!-- /page header -->
  18. <!-- Content area -->
  19. <div class="content">
  20. <div class="card">
  21. <div class="table-responsive">
  22. <table class="table">
  23. <tbody>
  24. <tr>
  25. <td class="font-weight-bold">Course Name:</td>
  26. <td>{{ $course->name }}</td>
  27. </tr>
  28. <tr>
  29. <td class="font-weight-bold">Length:</td>
  30. <td>{{ $course->length }} months</td>
  31. </tr>
  32. <tr>
  33. <td class="font-weight-bold">Tution Fee:</td>
  34. <td>{{$course->destination->currency}}{{ $course->tution_fee }}</td>
  35. </tr>
  36. <tr>
  37. <td class="font-weight-bold">Institute:</td>
  38. <td>{{ $course->institute->name }}, {{ $course->destination->name }}</td>
  39. </tr>
  40. @if(count($selected_campuses) > 0)
  41. <tr>
  42. <td class="font-weight-bold">Campuses:</td>
  43. <td>@foreach($selected_campuses as $campus) {{$campus->name}} @if(!$loop->last) , @endif @endforeach</td>
  44. </tr>
  45. @endif
  46. <tr>
  47. <td class="font-weight-bold">Level:</td>
  48. <td>{{ $course->level->name }}</td>
  49. </tr>
  50. <tr>
  51. <td class="font-weight-bold">Department:</td>
  52. <td>{{ $course->department }}</td>
  53. </tr>
  54. <tr>
  55. <td class="font-weight-bold">Intakes:</td>
  56. <td>@foreach($course->intakes as $intake) {{date("F", strtotime(date("Y") ."-". $intake->intake ."-01"))}} @if(!$loop->last) , @endif @endforeach</td>
  57. </tr>
  58. <tr>
  59. <td class="font-weight-bold">IELTS:</td>
  60. <td>{{ $course->ielts }}</td>
  61. </tr>
  62. <tr>
  63. <td class="font-weight-bold">TOEFL:</td>
  64. <td>{{ $course->toefl }}</td>
  65. </tr>
  66. <tr>
  67. <td class="font-weight-bold">PTE:</td>
  68. <td>{{ $course->pte }}</td>
  69. </tr>
  70. <tr>
  71. <td class="font-weight-bold">Duolingo:</td>
  72. <td>{{ $course->duolingo }}</td>
  73. </tr>
  74. <tr>
  75. <td class="font-weight-bold">Scolarship:</td>
  76. <td>{{ $course->scholarship }}</td>
  77. </tr>
  78. <tr>
  79. <td class="font-weight-bold">Deposit Required:</td>
  80. <td>{{ $course->deposit_required }}</td>
  81. </tr>
  82. {{-- <tr>
  83. <td class="font-weight-bold">UCAS Fee:</td>
  84. <td>
  85. @if($course->ucas_fee == 1)
  86. <span class="badge bg-success">{{ 'Yes' }}</span>
  87. @else
  88. <span class="badge bg-danger">{{ 'No' }}</span>
  89. @endif
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="font-weight-bold">Minimum GPA:</td>
  94. <td>{{ $course->min_gpa }}</td>
  95. </tr> --}}
  96. <tr>
  97. <td class="font-weight-bold">Reference:</td>
  98. <td>{{ $course->reference }}</td>
  99. </tr>
  100. <tr>
  101. <td class="font-weight-bold">SOP:</td>
  102. <td>
  103. @if($course->sop == 1)
  104. <span class="badge bg-success">{{ 'Yes' }}</span>
  105. @else
  106. <span class="badge bg-danger">{{ 'No' }}</span>
  107. @endif
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="font-weight-bold">CV:</td>
  112. <td>
  113. @if($course->cv == 1)
  114. <span class="badge bg-success">{{ 'Yes' }}</span>
  115. @else
  116. <span class="badge bg-danger">{{ 'No' }}</span>
  117. @endif
  118. </td>
  119. </tr>
  120. <tr>
  121. <td class="font-weight-bold">Keywords:</td>
  122. <td>@foreach($course->tags as $tag) {{$tag->keyword}} @if(!$loop->last) , @endif @endforeach</td>
  123. </tr>
  124. <tr>
  125. <td class="font-weight-bold">Entry Requirements:</td>
  126. <td>{!! $course->entry_requirement !!}</td>
  127. </tr>
  128. <tr>
  129. <td class="font-weight-bold">Created at:</td>
  130. <td>{{date('F j, y h:i a', strtotime($course->created_at))}}</td>
  131. </tr>
  132. <tr>
  133. <td class="font-weight-bold">Updated at:</td>
  134. <td>{{date('F j, y h:i a', strtotime($course->updated_at))}}</td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. </div>
  139. </div>
  140. </div>
  141. <!-- /content area -->
  142. @endsection
  143. @push('scripts')
  144. @endpush