turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/resources/views/donate.blade.php

36 lines
881 B
PHP
Raw Permalink Normal View History

2024-08-06 16:06:40 +00:00
@include('layout.head')
<body>
@include('layout.header')
<div class="section mb-5 donate" id="pages" style="background-image: url({{ Vite::asset('resources/images/donatebg.png') }}">
@livewire('donate')
</div>
@include('layout.footer')
@include('layout.dependency')
@include('layout.script')
<script>
const toggleButtons = document.querySelectorAll('[data-bs-toggle="collapse"]');
toggleButtons.forEach(button => {
button.addEventListener('click', () => {
const targetId = button.getAttribute('data-bs-target');
const collapseElements = document.querySelectorAll('.collapse');
collapseElements.forEach(collapse => {
if (collapse.getAttribute('id') !== targetId) {
collapse.classList.remove('show');
}
});
});
});
</script>
</body>
</html>