index.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('dev.core.using')
  2. @section('content')
  3. @include('templates.pengaturan.kuisioner.option.add')
  4. @include('templates.pengaturan.kuisioner.option.detail')
  5. @include('templates.pengaturan.kuisioner.option.edit')
  6. @include('templates.helpers.delete')
  7. @include('templates.helpers.export')
  8. @include('templates.pengaturan.kuisioner.option.dev.data')
  9. <style>
  10. #example_filter{position: absolute; right: 20px;}
  11. </style>
  12. <div class="row mt-5">
  13. <div class="col text-left" style="padding-bottom: 10px;">
  14. <?php
  15. $url = \Request::route()->getName();
  16. $getKdModule = \App\Model\Menu\Module::where('menu_path',$url)->value('kdModule');
  17. $getCreate = \App\Model\Privillage\Roleacl::where('module_id', $getKdModule)->where('role_id',Auth::user()->role_id)
  18. ->value('create_acl');
  19. ?>
  20. @if($getCreate == $getKdModule)
  21. <a href="#" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#addModal"><i class="ni ni-fat-add"></i>&nbsp;TAMBAH OPSI</a>
  22. @endif
  23. </div>
  24. <div class="col-xl-12 mb-5 mb-xl-0">
  25. <div class="card shadow" style="border:1px solid #dedede;">
  26. <div class="card-header border-0" style="background-color: #5f5f5f;">
  27. <div class="row align-items-center">
  28. <div class="col">
  29. <h3 class="mb-0" style="color: #fff;text-transform: uppercase;"><i class="ni ni-archive-2"></i>&nbsp;&nbsp;{{\App\Model\Setting\Kuisioner\Question::where('id',$id_pertanyaan)->value('pertanyaan')}}</h3>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="table-responsive">
  34. <div class="widest">
  35. @include('templates.pengaturan.kuisioner.option.table')
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. @endsection