ar csrf_input = $('<input type="hidden" name="csrfmiddlewaretoken">');
      csrf_input.val(csrf_token);
      form.append(csrf_input);

      // Append the form to the body and submit it
      $(document.body).append(form);
      form.submit();
    });

    var activeTab = localStorage.getItem("activeTabAttendance");
    if (activeTab != null) {
      var tab = $(`[data-target="${activeTab}"]`);
      var tabContent = $(activeTab);
      $(tab).attr("class", "oh-tabs__tab oh-tabs__tab--active");
      $(ta