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.

174 lines
5.7 KiB

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-8">
  6. <div class="card">
  7. @include('inc.navbar')
  8. <div class="card-header"><a href="/home">Home</a> -> <a href="/beers">Beer List</a> -> {{ __('Beer Sheet') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  9. <div class="card-body">
  10. <h2>{{$beer->name}}</h2>
  11. <table class="table table-striped table-dark" id="table-programs">
  12. <thead>
  13. <tr>
  14. <th scope="col">Style</th>
  15. <th scope="col">ABV %</th>
  16. <th scope="col">OG</th>
  17. <th scope="col">FG</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <tr>
  22. <td>{{$beer->type}} </td>
  23. <td>{{$beer->abv}} </td>
  24. <td>{{$beer->og}} </td>
  25. <td>{{$beer->fg}} </td>
  26. </tr>
  27. </tbody>
  28. </table>
  29. <table class="table table-striped table-dark" id="table-programs">
  30. <thead>
  31. <tr><th scope="col" colspan="3"><h4>Brewery</h4></th></tr>
  32. <tr>
  33. <th scope="col">Name</th>
  34. <th scope="col">City\Region</th>
  35. <th scope="col">Country</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. @foreach ($breweries as $brewery)
  40. <tr>
  41. <td><a href="/brewery/{{$brewery->id}}">{{$brewery->name}}</a> </td>
  42. <td>{{$brewery->place}} </td>
  43. <td>{{$brewery->country}} </td>
  44. </tr>
  45. @endforeach
  46. </tbody>
  47. <table class="table table-striped table-dark" id="table-programs">
  48. @if(! ($beer->notes) == "")
  49. <thead><th scope="col"><center><h4>Notes</h4></center></thead>
  50. <tbody> <tr><td>{{$beer->notes}}</td></tr></tbody>
  51. </table>
  52. @endif
  53. <table class="table table-striped table-dark" id="table-programs">
  54. <thead>
  55. <tr><th scope="col" colspan="3"><h4>Grain Bill ({{$beer->batch}}L Batch)</h4></th></tr>
  56. <tr>
  57. <th scope="col">Grain</th>
  58. <th scope="col">Amount</th>
  59. <th scope="col">% of total bill</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. @foreach ($grainbills as $bill)
  64. <tr>
  65. <td><a href="/grain/{{$bill->grain_id}}">{{$bill->grain_name}}</a> </td>
  66. <td>{{$bill->amount}} </td>
  67. <td>{{$bill->grain_bill}} </td>
  68. </tr>
  69. @endforeach
  70. </tbody>
  71. </table>
  72. <table class="table table-striped table-dark" id="table-programs">
  73. <thead>
  74. <tr><th scope="col" colspan="3"><h4>Mash Steps</h4></th></tr>
  75. <tr>
  76. <th scope="col">Temp °C</th>
  77. <th scope="col">Duration</th>
  78. <th scope="col">Stage</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. @foreach ($mashsteps as $mash)
  83. <tr>
  84. <td>{{$mash->temp}} </td>
  85. <td>{{$mash->duration}} </td>
  86. <td>{{$mash->stage}} </td>
  87. </tr>
  88. @endforeach
  89. @foreach ($mashsteps as $mash)
  90. @if($mash->stage == 1)
  91. <tr><td colspan="3"><center><b>Boil: {{$mash->boil}} minutes</b></center></td></tr>
  92. @endif
  93. @endforeach
  94. </tbody>
  95. </table>
  96. <table class="table table-striped table-dark" id="table-programs">
  97. <thead>
  98. <tr><th scope="col" colspan="3"><h4>Hop Additions</h4></th></tr>
  99. <tr>
  100. <th scope="col">Name</th>
  101. <th scope="col">Amount (g)</th>
  102. <th scope="col">Timing</th>
  103. </tr>
  104. </thead>
  105. <tbody>
  106. @foreach ($hopadditions as $hop)
  107. <tr>
  108. <td><a href="/hop/{{$hop->hop_id}}">{{$hop->hop_name}}</a> </td>
  109. <td>{{$hop->amount}} </td>
  110. <td>{{$hop->timing}} </td>
  111. </tr>
  112. @endforeach
  113. </tbody>
  114. </table>
  115. <table class="table table-striped table-dark" id="table-programs">
  116. <thead>
  117. <tr><th scope="col" colspan="3"><h4>Yeast</h4></th></tr>
  118. <tr>
  119. <th scope="col">Name</th>
  120. <th scope="col">Temp °C</th>
  121. <th scope="col">Duration</th>
  122. </thead>
  123. <tbody>
  124. @foreach ($yeastadditions as $yeast)
  125. <tr>
  126. <td><a href="/yeast/{{$yeast->yeast_id}}">{{$yeast->yeast_name}}</a> @if($yeast->altname)or <a href="/yeast/{{$yeast->alternative}}">{{$yeast->altname}}</a> @endif</td>
  127. <td>{{$yeast->temperature}} </td>
  128. <td>{{$yeast->duration}} </td>
  129. </tr>
  130. @endforeach
  131. </tbody>
  132. </table>
  133. @if(! $adjunctadditions->isEmpty())
  134. <table class="table table-striped table-dark" id="table-programs">
  135. <thead>
  136. <tr><th scope="col" colspan="3"><h4>Adjunct Additions</h4></th></tr>
  137. <tr>
  138. <th scope="col">Name</th>
  139. <th scope="col">Amount</th>
  140. <th scope="col">Timing</th>
  141. </tr>
  142. </thead>
  143. <tbody>
  144. @foreach ($adjunctadditions as $adjunct)
  145. <tr>
  146. <td><a href="/adjunct/{{$adjunct->id}}">{{$adjunct->adjunct_name}}</a> </td>
  147. <td>{{$adjunct->amount}} </td>
  148. <td>{{$adjunct->timing}} </td>
  149. </tr>
  150. @endforeach
  151. </tbody>
  152. </table>
  153. @endif
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. @endsection