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.

62 lines
2.1 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="/yeasts">Yeast List</a> -> {{ __('Yeast Card') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  9. <div class="card-body">
  10. <h2>{{$yeast->name}}</h2>
  11. <section id="yeast_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('{','',$yeast->profile)))))}}</div>
  15. </div>
  16. <div class="row">
  17. <div class="infopanel col-sm-4">Attenuation</div>
  18. <div class="infopanel col-sm-8">{{$yeast->attenuation}}%</div>
  19. </div>
  20. <div class="row">
  21. <div class="infopanel col-sm-4">Flocculation</div>
  22. <div class="infopanel col-sm-8">{{$yeast->flocculation}}</div>
  23. </div>
  24. <div class="row">
  25. <div class="infopanel col-sm-4">Alcohol Tolerance</div>
  26. <div class="infopanel col-sm-8">{{$yeast->tolerance}}</div>
  27. </div>
  28. <div class="row">
  29. <div class="infopanel col-sm-4">Temperature Range</div>
  30. <div class="infopanel col-sm-8">{{$yeast->temp_range}}°C</div>
  31. </div>
  32. </section>
  33. <hr/>
  34. <table class="table table-striped table-dark" id="table-programs">
  35. <thead>
  36. <tr><th scope="col" colspan="2">Used in</th></tr>
  37. <tr>
  38. <th scope="col">Brewery</th>
  39. <th scope="col">Beer</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach ($yeastadditions as $yeasts)
  44. <tr>
  45. <td><a href="/brewery/{{$yeasts->breweryID}}">{{$yeasts->brewery}}</a> </td>
  46. <td><a href="/beer/{{$yeasts->beer_id}}">{{$yeasts->beer}}</a> </td>
  47. </tr>
  48. @endforeach
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. @endsection