kuesioner-detail.blade.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @extends('dev.core.using')
  2. @section('content')
  3. @include('templates.pelayanan.unar.core.add')
  4. @include('templates.pelayanan.unar.core.detail')
  5. @include('templates.pelayanan.unar.core.edit')
  6. @include('templates.pelayanan.unar.helpers.delete')
  7. @include('templates.helpers.export')
  8. @include('templates.helpers.import')
  9. @include('templates.helpers.filter')
  10. @include('templates.pelayanan.unar.dev.data')
  11. <div class="container-fluid" style="margin-top: 40px;">
  12. <div class="row justify-content-center">
  13. <?php $getStatus = \App\Model\Privillage\Role::where('id',Auth::user()->role_id)->value('akses'); ?>
  14. @if($getStatus != 'administator')
  15. <div class="col-sm-12">
  16. <div class="pt-4" style="margin-bottom: 20px;">
  17. <div class="card shadow" style="border:1px solid #dedede;">
  18. <div class="card-header bg-transparent">
  19. <div class="row align-items-center">
  20. <div class="col">
  21. <center>
  22. <h4 class="mb-0">{{ $kuesioner->title }}</h4>
  23. </center>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. @endif
  31. <div class="col-xl-12">
  32. <div class="card shadow form-group">
  33. <div class="card-header border-0" style="background-color: #5f5f5f;">
  34. <div class="row align-items-center">
  35. <div class="col">
  36. <h3 class="mb-0" style="color: #fff;">PERTANYAAN</h3>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="table-responsive">
  41. <table id="example" class="table table-dark table-striped align-items-center table-flush data-table ">
  42. <thead class="thead-light">
  43. <tr>
  44. <th scope="col">NO</th>
  45. <th scope="col">Pertanyaan</th>
  46. <th scope="col">Jawaban Terbanyak</th>
  47. <th scope="col">Presentase</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach($questions as $key => $question)
  52. <tr>
  53. <th>{{ ++$key }}</th>
  54. <td>{{ $question['pertanyaan'] }}</td>
  55. <td>{{ $question['answer'] }}</td>
  56. <td>{{ $question['percentage'] }}%</td>
  57. </tr>
  58. @endforeach
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. <div class="card shadow form-group">
  64. <div class="card-header border-0" style="background-color: #5f5f5f;">
  65. <div class="row align-items-center">
  66. <div class="col">
  67. <h3 class="mb-0" style="color: #fff;">ESSAY</h3>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="table-responsive">
  72. <table id="example" class="table table-dark table-striped align-items-center table-flush data-table ">
  73. <thead class="thead-light">
  74. <tr>
  75. <th scope="col">NO</th>
  76. <th scope="col">Pertanyaan</th>
  77. <th scope="col">UPT</th>
  78. <th scope="col">Jawaban Essay</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. @foreach($essais as $key => $essay)
  83. @foreach($essay_answer[$essay->id] as $key2 => $answer)
  84. <tr>
  85. <th>{{ ++$key }}</th>
  86. <td>{{ $essay->pertanyaan }}</td>
  87. <td>{{ $key2 }}</td>
  88. <td>{{ $answer }}</td>
  89. </tr>
  90. @endforeach
  91. @endforeach
  92. </tbody>
  93. </table>
  94. </div>
  95. </div>
  96. <div class="card shadow form-group">
  97. <div class="card-header border-0" style="background-color: #5f5f5f;">
  98. <div class="row align-items-center">
  99. <div class="col">
  100. <h3 class="mb-0" style="color: #fff;">LIST OPTION</h3>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="table-responsive">
  105. <table id="example" class="table table-dark table-striped align-items-center table-flush data-table ">
  106. <thead class="thead-light">
  107. <tr>
  108. <th scope="col">NO</th>
  109. <th scope="col">Pertanyaan</th>
  110. <th scope="col">Option</th>
  111. <th scope="col">Total Jawaban</th>
  112. </tr>
  113. </thead>
  114. <tbody>
  115. <?php $i = 1; ?>
  116. @foreach($options['questions'] as $key => $question)
  117. @foreach($options['option_detail'][$question] as $key2 => $answer)
  118. <tr>
  119. <th>{{ $i++ }}</th>
  120. <td>{{ $key }}</td>
  121. <td>{{ $key2 }}</td>
  122. <td>{{ $answer }}</td>
  123. </tr>
  124. @endforeach
  125. @endforeach
  126. </tbody>
  127. </table>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. @endsection