My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. @extends('search')
  2. @section('main')
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-md-12">
  6. <div class="card">
  7. @include('inc.navbar')
  8. @include('search.index')
  9. <div class="card-header"><a href="/home">Home</a> -> {{ __('Search Results') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  10. <div class="card-body">
  11. <table class="table table-striped table-dark" id="table-programs">
  12. <!-- This piece of code is for error messages display purposes -->
  13. @include('inc.messages')
  14. <thead>
  15. <tr>
  16. <th scope="col">@sortablelink('name')</th>
  17. <th scope="col">@sortablelink('brewery')</th>
  18. <th scope="col" class="hideable">@sortablelink('type', 'Style')</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. @foreach ($results as $result)
  23. <tr>
  24. <td><a href="/beer/{{$result->beer_id}}">{{$result->name}}</a> </td>
  25. <td><a href="/brewery/{{$result->brewery_id}}">{{$result->brewery}}</a> </td>
  26. <td class="hideable">{{$result->type}} </td>
  27. </tr>
  28. @endforeach
  29. </tbody>
  30. </table>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. @endsection