Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
97f11fe0c7
  1. 2
      resources/views/search/results.blade.php

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

@ -72,7 +72,6 @@
</table>
</div>
<div role="tabpanel" class="tab-pane fade" id="ingredients" aria-labelledby="ingredients-tab">
{{ print_r($result->grains)}}
<table class="table table-striped table-dark" id="table-programs">
<!-- This piece of code is for error messages display purposes -->
@include('inc.messages')
@ -87,6 +86,7 @@
</thead>
<tbody>
@foreach ($results as $result)
{{ print_r($result->grains)}}
<tr>
<td><a href="/beer/{{$result->beer_id}}">{{$result->name}}</a> </td>
<td class="hideable">@foreach ($result->grains as $grain) <a href="/grain/{{$grain->id}}">{{$grain->name}}</a><br/>@endforeach</td>

Loading…
Cancel
Save