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.

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