text: // remove all active menu
  $('.nav-link').removeClass('active')
  $('.nav-link').attr('aria-expanded', false)
  $('.collapse').removeClass('show')
  // sett active menu
  $('#master').addClass('active')
  $('#navbar-master').addClass('show')
  $('#lessons').addClass('active')
  
  $('.alert').delay(3500).fadeOut()
  
  $('#input-file').change(function() {
      let filename  = this.files[0].name
      $('#file-name').html(filename)
  })
  
  function validateForm(id_form="") {
      let class_validation    = $(id_form+' .rmy-validation')
      $('.alert-rmy-validation').remove()
      for(i=0; i < class_validation.length; i++) {
          console.log('sw', $(class_validation[i]).attr('type'))
          if($(class_validation[i]).val().trim() == null || $(class_validation[i]).val().trim() == '') {
              if($(class_validation[i]).attr('type') != 'radio') {
                  $('<small class="alert-rmy-validation text-danger pt-0 mt-0">Tidak boleh kosong.</small>').insertBefore($(class_validation[i]).closest('.form-group'))
                  $(class_validation[i]).val('')
                  $(class_validation[i]).focus()
                  return false
              }
          }else {
              if($(class_validation[i]).attr('type') == 'file') {
                  console.log('sas')
                  let image_type  = $(class_validation[i]).get(0).files[0].type
                  // let image_size  = $(class_validation[i]).get(0).files[0].size
                  let image_mime  = $(class_validation[i]).data('mime').split(',')
                  image_mime      = image_mime.map(function (element) {
                      return element.trim();
                  })
                  if($.inArray(image_type, image_mime) <= -1) {
                      $('<small class="alert-rmy-validation text-danger pt-0 mt-0">Tipe file tidak diizinkan, hanya tipe file excel.</small>').insertBefore($(class_validation[i]).closest('.form-group'))
                      return false
                  }
                  // if(image_size > 2500000) {
                  //     $('<small class="alert-rmy-validation text-danger pt-0 mt-0">Ukuran file terlalu besar, maksimal 2,5 MB.</small>').insertBefore($(class_validation[i]).closest('.form-group'))
                  //     return false
                  // }
              }
          }
      }
  }