-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontdesk): allow searching by name or keyword/category (#88)
* feat(frontdesk): allow searching by name or keyword/category * fix(frontdesk): NRE on parent table access * fix(frontdesk): keypad height with search mode buttons
- Loading branch information
Showing
3 changed files
with
188 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@props(['categories']) | ||
<div class="accordion" id="keywords"> | ||
@foreach ($categories as $category) | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header d-flex align-items-center"> | ||
<a class="flex-shrink-1 btn btn-outline-primary fs-3" href="?type=keyword&search=c::{{ $category->id }}"> | ||
🔎 | ||
</a> | ||
<button class="accordion-button collapsed w-100 fs-3" type="button" data-bs-toggle="collapse" | ||
data-bs-target="#category-{{ $loop->index }}" aria-expanded="false" | ||
aria-controls="category-{{ $loop->index }}"> | ||
{{ $category->name }} | ||
</button> | ||
</h2> | ||
<div id="category-{{ $loop->index }}" class="accordion-collapse collapse"> | ||
<div class="accordion-body"> | ||
<div class="list-group"> | ||
@foreach ($category->keywords()->get() as $keyword) | ||
<a class="list-group-item" href="?type=keyword&search=k::{{ $keyword->id }}"> | ||
🔎 {{ $keyword->name }} | ||
</a> | ||
@endforeach | ||
</div> | ||
<div class="form-text"> | ||
{{ $category->description }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach | ||
</div> |
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