Created
May 15, 2021 13:37
-
-
Save maqsudinamdar/604b7a81bcedd0e9a1ff59aa0f051873 to your computer and use it in GitHub Desktop.
Add bootstrap5 CSS and JS from Official Docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="accordion" id="accordionExample"> | |
@foreach($alldata as $item) | |
<div class="accordion-item"> | |
<h2 class="accordion-header" id="{{ 'heading' . $item->category_name }}"> | |
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#{{'collapse' . $item->category_name }}" aria-expanded="true" aria-controls="{{'collapse' . $item->category_name }}"> | |
$item->category_name | |
</button> | |
</h2> | |
<div id="{{'collapse' . $item->category_name }}" class="accordion-collapse collapse show" aria-labelledby="{{ 'heading' . $item->category_name }}" data-bs-parent="#accordionExample"> | |
<div class="accordion-body"> | |
<ul class="list-group list-group-flush"> | |
@foreach($item->product[0] as $key) | |
<li class="list-group-item"> {{ $key->product_name }} </li> | |
@endforeach | |
</ul> | |
</div> | |
</div> | |
</div> | |
@endforeach | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please add the following
CSS
andJS
CDN on file.