</div><!-- /.yt-main -->

<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" crossorigin="anonymous"></script>

<script type="text/javascript">
  // Delete modal
  $(document).ready(function() {
    $('#confirm-delete').on('show.bs.modal', function(e) {
      $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href'));
    });
  });

  // Toast via status GET
  <?php
  if(isset($_GET['status'])){
    if($_GET['status'] == '1'){
      echo "document.addEventListener('DOMContentLoaded', function(){ ytShowToast('Atualizado com sucesso!'); });";
    } elseif($_GET['status'] == '2'){
      echo "document.addEventListener('DOMContentLoaded', function(){ ytShowToast('Registro excluído!'); });";
    } elseif($_GET['status'] == '3'){
      echo "document.addEventListener('DOMContentLoaded', function(){ ytShowToast('Informação geral.'); });";
    } elseif($_GET['status'] == '4'){
      echo "document.addEventListener('DOMContentLoaded', function(){ ytShowToast('Preencha todos os campos!', true); });";
    } elseif($_GET['status'] == '5'){
      echo "document.addEventListener('DOMContentLoaded', function(){ ytShowToast('Todos os usuários foram apagados!'); });";
    }
  }
  ?>
</script>

</body>
</html>