Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
8a8b22a5d0
  1. 33
      resources/views/search/results.blade.php

33
resources/views/search/results.blade.php

@ -39,7 +39,38 @@
</tbody>
</table>
</div>
<div role="tabpanel" class="tab-pane fade" id="stats" aria-labelledby="stats-tab"></div>
<div role="tabpanel" class="tab-pane fade" id="stats" aria-labelledby="stats-tab">
<table class="table table-striped table-dark" id="table-programs">
<!-- This piece of code is for error messages display purposes -->
@include('inc.messages')
<thead>
<tr>
<th scope="col">@sortablelink('name', 'Beer')</th>
<th scope="col">ABV</th>
<th scope="col" class="hideable">OG</th>
<th scope="col" class="hideable">FG</th>
<th scope="col" class="hideable">IBU</th>
<th scope="col" class="hideable">EBC</th>
<th scope="col" class="hideable">SRM</th>
<th scope="col" class="hideable">pH</th>
</tr>
</thead>
<tbody>
@foreach ($results as $result)
<tr>
<td><a href="/beer/{{$result->beer_id}}">{{$result->name}}</a> </td>
<td>{{$result->abv}} </td>
<td class="hideable">{{$result->og}} </td>
<td class="hideable">{{$result->fg}} </td>
<td class="hideable">{{$result->ibu}} </td>
<td class="hideable">{{$result->ebc}} </td>
<td class="hideable">{{$result->srm}} </td>
<td class="hideable">{{$result->pH}} </td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div role="tabpanel" class="tab-pane fade" id="ingredients" aria-labelledby="ingredients-tab"></div>
<div role="tabpanel" class="tab-pane fade" id="processes" aria-labelledby="processes-tab"></div>
</div>

Loading…
Cancel
Save