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.

182 lines
6.3 KiB

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