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.

59 lines
1.7 KiB

3 years ago
3 years ago
3 years ago
  1. @extends('layouts.app')
  2. @section('content')
  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. <div class="card-header"><a href="/home">Home</a> -> <a href="/breweries">Brewery List</a> -> {{__('Brewery Sheet') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  9. <div class="card-body">
  10. @foreach ($breweries as $brewery)
  11. <h2>{{$brewery->name}}</h2>
  12. <table class="table table-striped table-dark" id="table-programs">
  13. <thead>
  14. <tr>
  15. <th scope="col">City\Region</th>
  16. <th scope="col">Country</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr>
  21. <td>{{$brewery->place}} </td>
  22. <td>{{$brewery->country}} </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. @endforeach
  27. <table class="table table-striped table-dark" id="table-programs">
  28. <thead>
  29. <tr><th scope="col" colspan="3"><h4>Beers</h4></th></tr>
  30. <tr>
  31. <th scope="col">Name</th>
  32. <th scope="col">Style</th>
  33. <th scope="col">ABV %</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. @foreach ($beers as $beer)
  38. <tr>
  39. <td><a href="/beer/{{$beer->beer_id}}">{{$beer->name}}</a> </td>
  40. <td>{{$beer->type}} </td>
  41. <td>{{$beer->abv}} </td>
  42. </tr>
  43. @endforeach
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. @endsection