暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

create.blade.php 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. <div class="card shadow">
  4. <div class="card-header bg-transparent">
  5. <div class="row align-items-center">
  6. <div class="col">
  7. <h6 class="text-uppercase text-muted ls-1 mb-1">{{ $sub_header }}</h6>
  8. <h2 class="mb-0">{{ $header }} Tambah</h2>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="card-body">
  13. <form action="{{ route($route.'create_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
  14. @csrf
  15. <div class="form-group">
  16. <label for="title"> Pertanyaan <span class="text-danger">*</span> </label>
  17. <input type="text" name="question" value="{{ old('question') }}" class="form-control" required id="title" >
  18. </div>
  19. <div class="form-group">
  20. <label for="deskripsi"> Gambar <span class="text-danger">*</span> </label>
  21. <input type="file" name="image" id="" class="form-control">
  22. </div>
  23. <div class="form-group">
  24. <label for="answer"> Jawaban (benar) <span class="text-danger">*</span> </label>
  25. <input type="text" name="answer[]" value="{{ old('answer[]') }}" class="form-control" required >
  26. </div>
  27. <div class="form-group">
  28. <label for="answer"> Jawaban (salah) <span class="text-danger">*</span> </label>
  29. <input type="text" name="answer[]" value="{{ old('answer[]') }}" class="form-control" required >
  30. </div>
  31. <div class="form-group">
  32. <label for="answer"> Jawaban (salah) <span class="text-danger">*</span> </label>
  33. <input type="text" name="answer[]" value="{{ old('answer[]') }}" class="form-control" required >
  34. </div>
  35. <div class="form-group">
  36. <label for="answer"> Jawaban (salah) <span class="text-danger">*</span> </label>
  37. <input type="text" name="answer[]" value="{{ old('answer[]') }}" class="form-control" required >
  38. </div>
  39. <div class="form-group">
  40. <button type="submit" class="btn btn-success">Simpan</button>
  41. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. @endsection
  47. {{-- load JS yang lu perluin, selain itu no --}}
  48. @push('js')
  49. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  50. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  51. <script src="{{ asset('assets') }}/js/custom.js"></script>
  52. <script src="{{ asset('assets') }}/vendor/datetimepicker/moment.min.js"></script>
  53. <script src="{{ asset('assets') }}/vendor/datetimepicker/tempusdominus-bootstrap-4.min.js"></script>
  54. <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css" rel="stylesheet">
  55. <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
  56. <script>
  57. $('#summernote').summernote({
  58. height: 200
  59. });
  60. </script>
  61. @endpush