@extends('admin.layouts.main')

@section('container')
    <!-- dashboard inner -->
    <div class="midde_cont">
        <div class="container-fluid">
           <div class="row column_title">
              <div class="col-md-12">
                 <div class="page_title">
                    <h2>Dashboard Input Konsultasi</h2>
                 </div>
              </div>
           </div>
        </div>
        
     </div>
     <!-- end dashboard inner -->
     <div class="container">
        <div class="row">
            <div class="col-md-12">
               <form method="post" action="/admin/pertanyaan" enctype="multipart/form-data">
                  @csrf
                     <!-- Pertanyaan input 1 -->
                     <div class="form-outline mb-4 col-10" >
                     <input class="form-check-input" type="checkbox" value="Pemerintah Desa Melaksanakan Musyawarah Perencanaan Pembangunan Desa" 
                     name="p_satu" id="flexCheckDefault"
                     <label class="form-label" for="form4Example3">
                        1. Pemerintah Desa Melaksanakan Musyawarah Perencanaan Pembangunan Desa
                     </label>
                     <div class="form-check">
                        <input class="form-check-input" type="radio" name="c_satu" id="musyawarah" value="ya">
                        <label class="form-check-label" for="flexRadioDefault1">
                           Ya
                        </label>
                        </div>
                        <div class="form-check">
                        <input class="form-check-input" type="radio" name="musyawarah" id="musyawarah" value="tidak">
                        <label class="form-check-label" for="flexRadioDefault2">
                           Tidak
                        </label>
                        </div>
                        <hr>
                     </div>
                     <!-- End -->

                     <!-- Pertanyaan input -->
                     <div class="form-outline mb-4 col-10" >
                        <label class="form-label" for="form4Example3">
                           2. Pemerintah Desa Menetapkan Peraturan Desa Tentang RKPDes dan Dokumen DU RKP
                        </label>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
                           <label class="form-check-label" for="flexRadioDefault1">
                              Ya
                           </label>
                           </div>
                           <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" checked>
                           <label class="form-check-label" for="flexRadioDefault2">
                              Tidak
                           </label>
                           </div>
                           <hr>
                     </div>
                     <!-- End -->

                     <!-- Pertanyaan input -->
                     <div class="form-outline mb-4 col-10" >
                        <label class="form-label" for="form4Example3">
                           3. Pemerintah Desa Menetapkan Perdes APBDes dan Perkades Penjabaran APBDes
                        </label>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
                           <label class="form-check-label" for="flexRadioDefault1">
                              Ya
                           </label>
                           </div>
                           <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" checked>
                           <label class="form-check-label" for="flexRadioDefault2">
                              Tidak
                           </label>
                           </div>
                           <hr>
                     </div>
                     <!-- End -->

                     <!-- Pertanyaan input 4 -->
                     <div class="form-outline mb-4 col-10" >
                        <label class="form-label" for="form4Example3">
                           4. Pemerintah Desa menyampaikan Database Realisasi berbasis Siskeudes
                        </label>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
                           <label class="form-check-label" for="flexRadioDefault1">
                           Ya
                           </label>
                        </div>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" checked>
                           <label class="form-check-label" for="flexRadioDefault2">
                           Tidak
                           </label>
                        </div>
                        <hr>
                     </div>
                     <!-- End -->

                     <!-- Pertanyaan input 5 -->
                     <div class="form-outline mb-4 col-10" >
                        <label class="form-label" for="form4Example3">
                           5. Pemerintah Desa Menetapkan Perdes Pertanggungjawaban Pelaksanaan APBDes 
                        </label>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
                           <label class="form-check-label" for="flexRadioDefault1">
                           Ya
                           </label>
                        </div>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" checked>
                           <label class="form-check-label" for="flexRadioDefault2">
                           Tidak
                           </label>
                        </div>
                        <hr>
                     </div>
                     <!-- End -->

                      <!-- Pertanyaan input 6 -->
                      <div class="form-outline mb-4 col-10" >
                        <label class="form-label" for="form4Example3">
                           6. Pemerintah Desa melakukan Publikasi APBDes dan Realisasi APBDes melalui Media
                        </label>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
                           <label class="form-check-label" for="flexRadioDefault1">
                           Ya
                           </label>
                        </div>
                        <div class="form-check">
                           <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" checked>
                           <label class="form-check-label" for="flexRadioDefault2">
                           Tidak
                           </label>
                        </div>
                        <hr>
                     </div>
                     <!-- End -->

                 



                    <div class="form-outline mb-4 col-2">
                        <button type="submit" class="btn btn-info btn-block mb-4">Simpan</button>
                    </div>
                  
                  
                    <!-- Submit button -->
                    
               </form>
            </div>
        </div>
     </div>
     <script>
      const title = document.querySelector("#judul");
      const slug = document.querySelector("#slug");

      title.addEventListener("keyup", function() {
          let preslug = judul.value;
          preslug = preslug.replace(/ /g,"-");
          slug.value = preslug.toLowerCase();
      });
     </script>
@endsection