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.

82 lines
3.5 KiB

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="/hops">Hop List</a> -> {{ __('Hop Card') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  9. <div class="card-body">
  10. <h2>{{$hop->name}}</h2>
  11. <section id="hop_card" class="container">
  12. <div class="row">
  13. <div class="infopanel col-sm-4">Profile</div>
  14. <div class="infopanel col-sm-8">{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$hop->profile)))))}}</div>
  15. </div>
  16. <div class="row">
  17. <div class="infopanel col-sm-4">Role</div>
  18. <div class="infopanel col-sm-8">@if($hop->bitter && $hop->aroma)Dual Purpose @elseif ($hop->bitter)Bittering @else Aroma @endif</div>
  19. </div>
  20. <div class="row">
  21. <div class="infopanel col-sm-4">Alpha Acid %</div>
  22. <div class="infopanel col-sm-8">{{$hop->alpha_acid}}</div>
  23. </div>
  24. <div class="row">
  25. <div class="infopanel col-sm-4">Beta Acid %</div>
  26. <div class="infopanel col-sm-8">{{$hop->beta_acid}}</div>
  27. </div>
  28. <div class="row">
  29. <div class="infopanel col-sm-4">Total Oils %</div>
  30. <div class="infopanel col-sm-8">{{$hop->total_oil}}</div>
  31. </div>
  32. <div class="row">
  33. <div class="infopanel col-sm-4">Cohumulone %</div>
  34. <div class="infopanel col-sm-8">{{$hop->cohumulone}}</div>
  35. </div>
  36. <div class="row">
  37. <div class="infopanel col-sm-4">Myrcene %</div>
  38. <div class="infopanel col-sm-8">{{$hop->myrcene}}</div>
  39. </div>
  40. <div class="row">
  41. <div class="infopanel col-sm-4">Humulene %</div>
  42. <div class="infopanel col-sm-8">{{$hop->humulene}}</div>
  43. </div>
  44. <div class="row">
  45. <div class="infopanel col-sm-4">Farnesene %</div>
  46. <div class="infopanel col-sm-8">{{$hop->farnesene}}</div>
  47. </div>
  48. <div class="row">
  49. <div class="infopanel col-sm-4">Caryophyllene %</div>
  50. <div class="infopanel col-sm-8">{{$hop->caryophyllene}}</div>
  51. </div>
  52. </section>
  53. <hr/>
  54. <table class="table table-striped table-dark" id="table-programs">
  55. <thead>
  56. <tr><th scope="col" colspan="2">Used in</th></tr>
  57. <tr>
  58. <th scope="col">Brewery</th>
  59. <th scope="col">Beer</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. @foreach ($hopadditions as $hops)
  64. <tr>
  65. <td><a href="/brewery/{{$hops->breweryID}}">{{$hops->brewery}}</a> </td>
  66. <td><a href="/beer/{{$hops->beer_id}}">{{$hops->beer}}</a> </td>
  67. </tr>
  68. @endforeach
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. @endsection